|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
InputStreamAdapter to adapt the response input stream
OutputStreamAdapter to adapt the request output stream
Usage:
ClientConfig config = new ClientConfig();
BasicAuthSecurityHandler basicAuthSecHandler = new BasicAuthSecurityHandler();
basicAuthSecHandler.setUserName("username");
basicAuthSecHandler.setPassword("password");
config.handlers(basicAuthSecurityHandler);
// create the rest client instance
RestClient client = new RestClient(config);
// create the resource instance to interact with Resource
resource = client.resource("https://localhost:8080/path/to/resource");
Resource.Resource.ClientRequest of the invocation
ClientResponse of the invocation
UriBuilder associated with this resource.
Usage:
ClientConfig config = new ClientConfig();
ProxyAuthSecurityHandler proxyAuthSecHandler = new ProxyAuthSecurityHandler();
proxyAuthSecHandler.setUserName("username");
proxyAuthSecHandler.setPassword("password");
config.handlers(proxyAuthSecurityHandler);
// create the rest client instance
RestClient client = new RestClient(config);
// create the resource instance to interact with Resource
resource = client.resource("http://localhost:8080/path/to/resource");
Resource instance
Resource instance
Resource instance
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||