com.atlassian.sal.core.net
Class HttpClientRequestFactory
java.lang.Object
com.atlassian.sal.core.net.HttpClientRequestFactory
- All Implemented Interfaces:
- NonMarshallingRequestFactory<HttpClientRequest>, RequestFactory<HttpClientRequest>
public class HttpClientRequestFactory
- extends Object
- implements NonMarshallingRequestFactory<HttpClientRequest>
Does NOT support json/xml oject marshalling. Use the atlassian-rest implementation of
RequestFactory instead.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SOCKET_TIMEOUT
public static final int DEFAULT_SOCKET_TIMEOUT
- The default time to wait without retrieving data from the remote connection
DEFAULT_CONNECTION_TIMEOUT
public static final int DEFAULT_CONNECTION_TIMEOUT
- The default time allowed for establishing a connection
HttpClientRequestFactory
public HttpClientRequestFactory(CertificateFactory certificateFactory,
UserManager userManager)
createRequest
public HttpClientRequest createRequest(Request.MethodType methodType,
String url)
- Specified by:
createRequest in interface RequestFactory<HttpClientRequest>
getHttpClient
protected org.apache.commons.httpclient.HttpClient getHttpClient(String url)
- Parameters:
url - The URL
- Returns:
- The HTTP client
configureConnectionParameters
protected void configureConnectionParameters(org.apache.commons.httpclient.HttpClient httpClient)
- Applies a set of parameters to a client
- Parameters:
httpClient - the client to which parameters are applied
configureProxy
protected void configureProxy(org.apache.commons.httpclient.HttpClient client,
String remoteUrl)
- Parameters:
client - The client to configure the proxy ofremoteUrl - The remote URL
supportsHeader
public boolean supportsHeader()
- Specified by:
supportsHeader in interface RequestFactory<HttpClientRequest>
Copyright © 2011 Atlassian. All Rights Reserved.