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 RemoteConnectorRequest
public String getMethod()
getMethod
in interface RemoteConnectorRequest
public org.apache.commons.httpclient.HttpMethodBase getMethodInstance()
public String getContentType()
getContentType
in interface RemoteConnectorRequest
public void setContentType(String contentType)
RemoteConnectorRequest
setContentType
in interface RemoteConnectorRequest
public org.apache.commons.httpclient.methods.RequestEntity getRequestBody()
RemoteConnectorRequest
RemoteConnectorService
which created thisgetRequestBody
in interface RemoteConnectorRequest
public void setRequestBody(String body)
setRequestBody
in interface RemoteConnectorRequest
public void setRequestBody(byte[] body)
setRequestBody
in interface RemoteConnectorRequest
public void setRequestBody(InputStream body)
setRequestBody
in interface RemoteConnectorRequest
public void setRequestBody(org.apache.commons.httpclient.methods.RequestEntity body)
setRequestBody
in interface RemoteConnectorRequest
public org.apache.commons.httpclient.Header[] getRequestHeaders()
getRequestHeaders
in interface RemoteConnectorRequest
public void addRequestHeader(org.apache.commons.httpclient.Header header)
addRequestHeader
in interface RemoteConnectorRequest
public void addRequestHeader(String name, String value)
addRequestHeader
in interface RemoteConnectorRequest
public void addRequestHeaders(org.apache.commons.httpclient.Header[] headers)
addRequestHeaders
in interface RemoteConnectorRequest
Copyright © 2005–2017 Alfresco Software. All rights reserved.