Class MyXmlRpcTransport
- java.lang.Object
-
- jetbrains.buildServer.xmlrpc.impl.MyXmlRpcTransport
-
- All Implemented Interfaces:
org.apache.xmlrpc.XmlRpcTransport
public class MyXmlRpcTransport extends Object implements org.apache.xmlrpc.XmlRpcTransport
User: kir We use own implementation, derived from CommonsXmlRpcTransport to disable retrying of failed operations by setting HttpMethodParams.RETRY_HANDLER parameter.
-
-
Field Summary
Fields Modifier and Type Field Description static String
METHOD_NAME_HEADER
static String
UNKNOWN_NODE_ID
-
Constructor Summary
Constructors Constructor Description MyXmlRpcTransport(URL url, String userAgent, org.apache.commons.httpclient.HttpClient client, org.apache.commons.httpclient.HttpMethodRetryHandler retryHandler, XmlRpcTarget.XmlRpcCredentialsProvider credentialsProvider, boolean keepAlive, NodeIdHolder nodeIdHolder, Supplier<Map<String,String>> additionalHeadersProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginClientRequest(org.apache.xmlrpc.XmlRpcClientRequest request)
This method is assumed to be called before callingsendXmlRpc(byte[])
void
disposeConnections()
void
endClientRequest()
void
forgetRedirectUrls()
String
getLastResponseBodyAsString()
InputStream
sendXmlRpc(byte[] request)
-
-
-
Field Detail
-
METHOD_NAME_HEADER
public static final String METHOD_NAME_HEADER
- See Also:
- Constant Field Values
-
UNKNOWN_NODE_ID
public static final String UNKNOWN_NODE_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MyXmlRpcTransport
public MyXmlRpcTransport(URL url, String userAgent, org.apache.commons.httpclient.HttpClient client, org.apache.commons.httpclient.HttpMethodRetryHandler retryHandler, XmlRpcTarget.XmlRpcCredentialsProvider credentialsProvider, boolean keepAlive, @Nullable NodeIdHolder nodeIdHolder, @Nullable Supplier<Map<String,String>> additionalHeadersProvider)
-
-
Method Detail
-
endClientRequest
public void endClientRequest()
- Specified by:
endClientRequest
in interfaceorg.apache.xmlrpc.XmlRpcTransport
-
getLastResponseBodyAsString
public String getLastResponseBodyAsString()
-
beginClientRequest
public void beginClientRequest(org.apache.xmlrpc.XmlRpcClientRequest request)
This method is assumed to be called before callingsendXmlRpc(byte[])
-
sendXmlRpc
public InputStream sendXmlRpc(byte[] request) throws IOException, org.apache.xmlrpc.XmlRpcClientException
- Specified by:
sendXmlRpc
in interfaceorg.apache.xmlrpc.XmlRpcTransport
- Throws:
IOException
org.apache.xmlrpc.XmlRpcClientException
-
forgetRedirectUrls
public void forgetRedirectUrls()
-
disposeConnections
public void disposeConnections()
-
-