jetbrains.buildServer.xmlrpc.impl
Class CommonsXmlRpcTargetImpl

java.lang.Object
  extended by jetbrains.buildServer.xmlrpc.AbstractXmlRpcTarget
      extended by jetbrains.buildServer.xmlrpc.impl.CommonsXmlRpcTargetImpl
All Implemented Interfaces:
XmlRpcTarget

public class CommonsXmlRpcTargetImpl
extends AbstractXmlRpcTarget

Author:
KIR

Nested Class Summary
 
Nested classes/interfaces inherited from interface jetbrains.buildServer.xmlrpc.XmlRpcTarget
XmlRpcTarget.Cancelable, XmlRpcTarget.ProcessCanceledException
 
Field Summary
protected  java.net.URL myServerRpcURL
           
protected  org.apache.commons.httpclient.HttpState myState
           
 
Fields inherited from interface jetbrains.buildServer.xmlrpc.XmlRpcTarget
EMPTY_PARAMETERS
 
Constructor Summary
CommonsXmlRpcTargetImpl(java.lang.String serverURL, java.lang.String userAgent, int connectionTimeout, boolean keepAlive)
           
 
Method Summary
 void disposeConnections()
          this method must be called to dispose possible pending keep-alive connections
 org.apache.xmlrpc.XmlRpcClient getClient()
           
protected  org.apache.xmlrpc.XmlRpcTransport getOrCreateTransport()
           
 void setProxy(java.lang.String proxyHost, int proxyPort)
          Sets proxy host and port
 void setProxyCredentials(java.lang.String username, java.lang.String password)
          Sets proxy credentials for basic proxy authentication
 void setProxyCredentials(java.lang.String domain, java.lang.String username, java.lang.String password)
          Sets proxy credentials for NTLM proxy authentication
 void setRetryHandler(org.apache.commons.httpclient.HttpMethodRetryHandler handler)
          Sets retry handler for failed operations
 
Methods inherited from class jetbrains.buildServer.xmlrpc.AbstractXmlRpcTarget
call, call, callWithCancelable, describeMe, equals, getServerURL, getUserAgent, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

myServerRpcURL

protected final java.net.URL myServerRpcURL

myState

protected org.apache.commons.httpclient.HttpState myState
Constructor Detail

CommonsXmlRpcTargetImpl

public CommonsXmlRpcTargetImpl(java.lang.String serverURL,
                               java.lang.String userAgent,
                               int connectionTimeout,
                               boolean keepAlive)
                        throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException
Method Detail

getClient

public org.apache.xmlrpc.XmlRpcClient getClient()
Specified by:
getClient in class AbstractXmlRpcTarget

getOrCreateTransport

protected org.apache.xmlrpc.XmlRpcTransport getOrCreateTransport()

disposeConnections

public void disposeConnections()
Description copied from interface: XmlRpcTarget
this method must be called to dispose possible pending keep-alive connections

Specified by:
disposeConnections in interface XmlRpcTarget
Overrides:
disposeConnections in class AbstractXmlRpcTarget

setProxy

public void setProxy(java.lang.String proxyHost,
                     int proxyPort)
Sets proxy host and port

Parameters:
proxyHost - host
proxyPort - port

setProxyCredentials

public void setProxyCredentials(java.lang.String username,
                                java.lang.String password)
Sets proxy credentials for basic proxy authentication

Parameters:
username - username
password - password

setProxyCredentials

public void setProxyCredentials(java.lang.String domain,
                                java.lang.String username,
                                java.lang.String password)
Sets proxy credentials for NTLM proxy authentication

Parameters:
domain - NT domain
username - username
password - password

setRetryHandler

public void setRetryHandler(org.apache.commons.httpclient.HttpMethodRetryHandler handler)
Sets retry handler for failed operations

Parameters:
handler - - retry handler