@Override public void setProperty(String name, Object value) { clientResponse.getProperties().put(name, value); }
@Override public void setProperty(String name, Object value) { clientResponse.getProperties().put(name, value); }
@Override public Object getProperty(String name) { return clientResponse.getProperties().get(name); }
@Override public Object getProperty(String name) { return clientResponse.getProperties().get(name); }
/** * Get the client. * * @return the client. */ public Client getClient() { return (Client)getProperties().get(Client.class.getName()); }
/** * Get the client. * * @return the client. */ public Client getClient() { return (Client)getProperties().get(Client.class.getName()); }
@Override public ClientResponse handle(final ClientRequest request) throws ClientHandlerException { Map<String, Object> effectiveProperties = new HashMap<String, Object>(properties); effectiveProperties.put(Client.class.getName(), this); effectiveProperties.putAll(request.getProperties()); request.setProperties(effectiveProperties); final ClientResponse response = getHeadHandler().handle(request); response.getProperties().put(Client.class.getName(), this); return response; }
@Override public ClientResponse handle(final ClientRequest request) throws ClientHandlerException { Map<String, Object> effectiveProperties = new HashMap<String, Object>(properties); effectiveProperties.put(Client.class.getName(), this); effectiveProperties.putAll(request.getProperties()); request.setProperties(effectiveProperties); final ClientResponse response = getHeadHandler().handle(request); response.getProperties().put(Client.class.getName(), this); return response; }