|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.sal.core.net.HttpClientRequestFactory
public class HttpClientRequestFactory
Does NOT support json/xml oject marshalling. Use the atlassian-rest implementation of
RequestFactory instead.
| Field Summary | |
|---|---|
static int |
DEFAULT_CONNECTION_TIMEOUT
The default time allowed for establishing a connection |
static int |
DEFAULT_SOCKET_TIMEOUT
The default time to wait without retrieving data from the remote connection |
| Constructor Summary | |
|---|---|
HttpClientRequestFactory(CertificateFactory certificateFactory,
UserManager userManager)
|
|
| Method Summary | |
|---|---|
protected void |
configureConnectionParameters(org.apache.commons.httpclient.HttpClient httpClient)
Applies a set of parameters to a client |
protected void |
configureProxy(org.apache.commons.httpclient.HttpClient client,
String remoteUrl)
|
HttpClientRequest |
createRequest(Request.MethodType methodType,
String url)
Creates a request of given Request.MethodType to given url |
protected org.apache.commons.httpclient.HttpClient |
getHttpClient(String url)
|
boolean |
supportsHeader()
Indicates whether the requests can support headers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_SOCKET_TIMEOUT
public static final int DEFAULT_CONNECTION_TIMEOUT
| Constructor Detail |
|---|
public HttpClientRequestFactory(CertificateFactory certificateFactory,
UserManager userManager)
| Method Detail |
|---|
public HttpClientRequest createRequest(Request.MethodType methodType,
String url)
RequestFactoryRequest.MethodType to given url
createRequest in interface RequestFactory<HttpClientRequest>methodType - The HTTP method typeurl - The url to request
protected org.apache.commons.httpclient.HttpClient getHttpClient(String url)
url - The URL
protected void configureConnectionParameters(org.apache.commons.httpclient.HttpClient httpClient)
httpClient - the client to which parameters are applied
protected void configureProxy(org.apache.commons.httpclient.HttpClient client,
String remoteUrl)
client - The client to configure the proxy ofremoteUrl - The remote URLpublic boolean supportsHeader()
RequestFactory
supportsHeader in interface RequestFactory<HttpClientRequest>Request.setHeader(String, String),
Request.addHeader(String, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||