public class RemoteConnectorRequestImpl extends Object implements RemoteConnectorRequest
RemoteConnectorService.| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER_CONTENT_TYPE |
| Constructor and Description |
|---|
RemoteConnectorRequestImpl(String url,
Class<? extends org.apache.commons.httpclient.HttpMethodBase> method) |
RemoteConnectorRequestImpl(String url,
String methodName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestHeader(org.apache.commons.httpclient.Header header) |
void |
addRequestHeader(String name,
String value) |
void |
addRequestHeaders(org.apache.commons.httpclient.Header[] headers) |
protected static org.apache.commons.httpclient.HttpMethodBase |
buildHttpClientMethod(String url,
Class<? extends org.apache.commons.httpclient.HttpMethodBase> method) |
protected static org.apache.commons.httpclient.HttpMethodBase |
buildHttpClientMethod(String url,
String method) |
String |
getContentType() |
String |
getMethod() |
org.apache.commons.httpclient.HttpMethodBase |
getMethodInstance() |
org.apache.commons.httpclient.methods.RequestEntity |
getRequestBody()
Returns the Request Body, for use by the
RemoteConnectorService
which created this |
org.apache.commons.httpclient.Header[] |
getRequestHeaders() |
String |
getURL() |
void |
setContentType(String contentType)
Sets the Content Type to send for the request
|
void |
setRequestBody(byte[] body) |
void |
setRequestBody(InputStream body) |
void |
setRequestBody(org.apache.commons.httpclient.methods.RequestEntity body) |
void |
setRequestBody(String body) |
public static final String HEADER_CONTENT_TYPE
protected static org.apache.commons.httpclient.HttpMethodBase buildHttpClientMethod(String url, String method)
protected static org.apache.commons.httpclient.HttpMethodBase buildHttpClientMethod(String url, Class<? extends org.apache.commons.httpclient.HttpMethodBase> method)
public String getURL()
getURL in interface RemoteConnectorRequestpublic String getMethod()
getMethod in interface RemoteConnectorRequestpublic org.apache.commons.httpclient.HttpMethodBase getMethodInstance()
public String getContentType()
getContentType in interface RemoteConnectorRequestpublic void setContentType(String contentType)
RemoteConnectorRequestsetContentType in interface RemoteConnectorRequestpublic org.apache.commons.httpclient.methods.RequestEntity getRequestBody()
RemoteConnectorRequestRemoteConnectorService
which created thisgetRequestBody in interface RemoteConnectorRequestpublic void setRequestBody(String body)
setRequestBody in interface RemoteConnectorRequestpublic void setRequestBody(byte[] body)
setRequestBody in interface RemoteConnectorRequestpublic void setRequestBody(InputStream body)
setRequestBody in interface RemoteConnectorRequestpublic void setRequestBody(org.apache.commons.httpclient.methods.RequestEntity body)
setRequestBody in interface RemoteConnectorRequestpublic org.apache.commons.httpclient.Header[] getRequestHeaders()
getRequestHeaders in interface RemoteConnectorRequestpublic void addRequestHeader(org.apache.commons.httpclient.Header header)
addRequestHeader in interface RemoteConnectorRequestpublic void addRequestHeader(String name, String value)
addRequestHeader in interface RemoteConnectorRequestpublic void addRequestHeaders(org.apache.commons.httpclient.Header[] headers)
addRequestHeaders in interface RemoteConnectorRequestCopyright © 2005–2018 Alfresco Software. All rights reserved.