Class CommonsXmlRpcTargetImpl
- java.lang.Object
-
- jetbrains.buildServer.xmlrpc.AbstractXmlRpcTarget
-
- 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, XmlRpcTarget.XmlRpcCredentialsProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected URL
myServerRpcURL
protected org.apache.commons.httpclient.HttpState
myState
-
Fields inherited from interface jetbrains.buildServer.xmlrpc.XmlRpcTarget
EMPTY_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description CommonsXmlRpcTargetImpl(String serverURL, String userAgent, int connectionTimeout, boolean keepAlive)
CommonsXmlRpcTargetImpl(CommonsXmlRpcTargetImpl source, int connectionTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disposeConnections()
This method must be called to dispose possible pending keep-alive connectionsorg.apache.xmlrpc.XmlRpcClient
getClient()
protected MyXmlRpcTransport
getOrCreateTransport()
void
resetTransport()
void
setAdditionalHeadersProvider(Supplier<Map<String,String>> additionalHeadersProvider)
void
setCredentialsProvider(XmlRpcTarget.XmlRpcCredentialsProvider provider)
void
setNodeIdHolder(NodeIdHolder nodeIdHolder)
void
setProxy(String proxyHost, int proxyPort)
Sets proxy host and portvoid
setProxyCredentials(String username, String password)
Sets proxy credentials for basic proxy authenticationvoid
setProxyCredentials(String domain, String username, String password)
Sets proxy credentials for NTLM proxy authenticationvoid
setRetryHandler(org.apache.commons.httpclient.HttpMethodRetryHandler handler)
Sets retry handler for failed operationsvoid
setTrustStore(KeyStore trustStore)
Sets trust store with trusted ssl certificates.-
Methods inherited from class jetbrains.buildServer.xmlrpc.AbstractXmlRpcTarget
call, call, callWithCancelable, describeMe, dispose, equals, getServerURL, getUserAgent, hashCode, toString
-
-
-
-
Field Detail
-
myServerRpcURL
protected final URL myServerRpcURL
-
myState
protected org.apache.commons.httpclient.HttpState myState
-
-
Constructor Detail
-
CommonsXmlRpcTargetImpl
public CommonsXmlRpcTargetImpl(CommonsXmlRpcTargetImpl source, int connectionTimeout) throws MalformedURLException
- Throws:
MalformedURLException
-
CommonsXmlRpcTargetImpl
public CommonsXmlRpcTargetImpl(String serverURL, String userAgent, int connectionTimeout, boolean keepAlive) throws MalformedURLException
- Throws:
MalformedURLException
-
-
Method Detail
-
setNodeIdHolder
public void setNodeIdHolder(@NotNull NodeIdHolder nodeIdHolder)
-
setAdditionalHeadersProvider
public void setAdditionalHeadersProvider(@NotNull Supplier<Map<String,String>> additionalHeadersProvider)
-
getClient
public org.apache.xmlrpc.XmlRpcClient getClient()
- Specified by:
getClient
in classAbstractXmlRpcTarget
-
getOrCreateTransport
protected MyXmlRpcTransport 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 interfaceXmlRpcTarget
- Overrides:
disposeConnections
in classAbstractXmlRpcTarget
- See Also:
XmlRpcTarget.dispose()
-
setCredentialsProvider
public void setCredentialsProvider(XmlRpcTarget.XmlRpcCredentialsProvider provider)
-
setProxy
public void setProxy(String proxyHost, int proxyPort)
Sets proxy host and port- Parameters:
proxyHost
- hostproxyPort
- port
-
setProxyCredentials
public void setProxyCredentials(String username, String password)
Sets proxy credentials for basic proxy authentication- Parameters:
username
- usernamepassword
- password
-
setProxyCredentials
public void setProxyCredentials(String domain, String username, String password)
Sets proxy credentials for NTLM proxy authentication- Parameters:
domain
- NT domainusername
- usernamepassword
- password
-
setRetryHandler
public void setRetryHandler(org.apache.commons.httpclient.HttpMethodRetryHandler handler)
Sets retry handler for failed operations- Parameters:
handler
- - retry handler
-
setTrustStore
public void setTrustStore(KeyStore trustStore)
Sets trust store with trusted ssl certificates.- Parameters:
trustStore
- trust store
-
resetTransport
public void resetTransport()
-
-