return ftw;
}
private Future<?> voidHandle(final ClientRequest request) {
setProperties(request);
final FutureClientResponseListener<?> ftw = new FutureClientResponseListener() {
protected Object get(ClientResponse response) {
if (response.getStatus() >= 300)
throw new UniformInterfaceException(response,
request.getPropertyAsFeature(ClientConfig.PROPERTY_BUFFER_RESPONSE_ENTITY_ON_EXCEPTION, true));
response.close();
return null;
}
};
ftw.setCancelableFuture(handle(request, ftw));
return ftw;
}