java.io.Serializablepublic class ClientProxyFeature
extends java.lang.Object
implements java.io.Serializable
 The WebServiceFeature is used to set proxy information for the per-connection
 proxy feature. It is designed for sevice client.
 It can be used when getting Port or reseting proxy for an existing Port.
 
 Here are two typical usages on the Feature:
 Case 1: Getting port with the ClientProxyFeature
 
 
    Service myService = ... //get the Service
    
    //set proxy info to the ClientProxyFeature
    ClientProxyFeature cpf = new ClientProxyFeature();
    cpf.setProxyHost("localhost");
    cpf.setProxyPort(8888);
    cpf.setProxyUserName("proxyu");
    cpf.setProxyPassword("proxyp");
    
    //get the port with the Feature
    MyPort port = myService.getPort(cpf);
    
    //invoke operations with the port, it will using the proxy setting
    ...
 
 
 Case 2: Reseting port with the ClientProxyFeature
     MyPort port = ... // the port is get with or without ClientProxyFeature
     
     ClientProxyFeature cpf = ... // set proxy info
     cpf.setProxyPort(8888);
     
     //attach the feature to port
     cpf.attachsPort(port);
     
     //invoke operations
     ...
     
     
     //upate the feature with new proxy port
     cpf.setProxyPort(9999);
     
     //reset the port with new proxy info
     cpf.attachsPort(port);
     
     //invoke operations with new proxy
     ...
     
 
 
     ClientProxyFeature cpf = ... // set proxy info
     cpf.setProxyPort(-1);
     
     cpf.attachsPort(port);
  
 Note: This feature could be used in Service Creation, but it need wait 
 JAX-WS 2.2 fully supported.
 | Modifier and Type | Field | Description | 
|---|---|---|
| static java.lang.String | ID | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | attachsPort(java.lang.Object port) | Attachs current ClientProxyFeature to an existing port (override the old proxy
 info) | 
| java.lang.String | getID() | |
| java.lang.String | getProxyHost() | |
| java.lang.String | getProxyPassword() | |
| int | getProxyPort() | |
| java.lang.String | getProxyUserName() | |
| java.net.Proxy.Type | getType() | |
| boolean | isIgnoreSystemNonProxyHosts() | |
| boolean | isUsedInPort() | |
| boolean | isUseSunHttpHandler() | |
| void | setIgnoreSystemNonProxyHosts(boolean ignoreSystemNonProxyHosts) | To allow the current proxy defined in the feature to ignore the 
 system property -Dhttp.nonProxyHosts | 
| void | setProxyHost(java.lang.String proxyHost) | |
| void | setProxyPassword(java.lang.String proxyPassword) | |
| void | setProxyPort(int proxyPort) | |
| void | setProxyUserName(java.lang.String proxyUserName) | |
| void | setType(java.net.Proxy.Type type) | Set Proxy Type. | 
| void | setUseSunHttpHandler(boolean useSunHttpHandler) | 
public static final java.lang.String ID
public java.lang.String getProxyHost()
public void setProxyHost(java.lang.String proxyHost)
public java.lang.String getProxyPassword()
public void setProxyPassword(java.lang.String proxyPassword)
public int getProxyPort()
public void setProxyPort(int proxyPort)
public java.lang.String getProxyUserName()
public void setProxyUserName(java.lang.String proxyUserName)
public java.net.Proxy.Type getType()
public void setType(java.net.Proxy.Type type)
type - public java.lang.String getID()
public boolean isUsedInPort()
public boolean isUseSunHttpHandler()
public void setUseSunHttpHandler(boolean useSunHttpHandler)
public void attachsPort(java.lang.Object port)
port - public void setIgnoreSystemNonProxyHosts(boolean ignoreSystemNonProxyHosts)
public boolean isIgnoreSystemNonProxyHosts()