public class ContextResourceClientFactory extends Object
Constructor and Description |
---|
ContextResourceClientFactory() |
Modifier and Type | Method and Description |
---|---|
org.restlet.data.Form |
getCustomRequestHeaders() |
ResponseHandler |
getErrorHandler() |
org.restlet.data.ClientInfo |
getInfo() |
ContextResourceClient |
newClient(org.restlet.data.Reference reference) |
<T> T |
readResponse(org.restlet.Response response,
Class<T> queryResult) |
void |
registerRequestWriter(RequestWriter writer) |
void |
registerResponseReader(ResponseReader reader) |
void |
setAcceptedLanguages(org.restlet.data.Language... acceptedLanguages) |
void |
setAcceptedMediaTypes(org.restlet.data.MediaType... acceptedMediaTypes) |
void |
setAgent(String agent) |
void |
setErrorHandler(ResponseHandler errorHandler) |
void |
writeRequest(org.restlet.Request request,
Object queryRequest) |
public ContextResourceClient newClient(org.restlet.data.Reference reference)
public void setAgent(String agent)
public org.restlet.data.Form getCustomRequestHeaders()
public void setAcceptedLanguages(org.restlet.data.Language... acceptedLanguages)
public void setAcceptedMediaTypes(org.restlet.data.MediaType... acceptedMediaTypes)
public org.restlet.data.ClientInfo getInfo()
public void setErrorHandler(ResponseHandler errorHandler)
public ResponseHandler getErrorHandler()
public <T> T readResponse(org.restlet.Response response, Class<T> queryResult)
public void writeRequest(org.restlet.Request request, Object queryRequest)
public void registerResponseReader(ResponseReader reader)
public void registerRequestWriter(RequestWriter writer)