Package org.apache.wink.client.handlers

Interface Summary
ClientHandler Interface that all client handlers must implement
ConnectionHandler Interface for specifying that a handler is the connection handler and is the last handler on the handler chain
HandlerContext The handler context is used by handlers to call the next handler on the chain.
InputStreamAdapter Interface for adapting the input stream
OutputStreamAdapter Interface for adapting the output stream
 

Class Summary
AbstractAuthSecurityHandler  
BasicAuthSecurityHandler SecurityHandler for a client to perform http basic auth:

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");

ProxyAuthSecurityHandler SecurityHandler for a client to perform http proxy auth:

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");

 



Copyright © 2009-2010 The Apache Software Foundation. All Rights Reserved.