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 URLmyServerRpcURLprotected org.apache.commons.httpclient.HttpStatemyState-
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 voiddisposeConnections()This method must be called to dispose possible pending keep-alive connectionsorg.apache.xmlrpc.XmlRpcClientgetClient()protected MyXmlRpcTransportgetOrCreateTransport()voidresetTransport()voidsetAdditionalHeadersProvider(Supplier<Map<String,String>> additionalHeadersProvider)voidsetCredentialsProvider(XmlRpcTarget.XmlRpcCredentialsProvider provider)voidsetNodeIdHolder(NodeIdHolder nodeIdHolder)voidsetProxy(String proxyHost, int proxyPort)Sets proxy host and portvoidsetProxyCredentials(String username, String password)Sets proxy credentials for basic proxy authenticationvoidsetProxyCredentials(String domain, String username, String password)Sets proxy credentials for NTLM proxy authenticationvoidsetRetryHandler(org.apache.commons.httpclient.HttpMethodRetryHandler handler)Sets retry handler for failed operationsvoidsetTrustStore(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:
getClientin classAbstractXmlRpcTarget
-
getOrCreateTransport
protected MyXmlRpcTransport getOrCreateTransport()
-
disposeConnections
public void disposeConnections()
Description copied from interface:XmlRpcTargetThis method must be called to dispose possible pending keep-alive connections- Specified by:
disposeConnectionsin interfaceXmlRpcTarget- Overrides:
disposeConnectionsin 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()
-
-