Interface RemoteConnectorRequest
-
- All Known Implementing Classes:
RemoteConnectorRequestImpl
public interface RemoteConnectorRequestHelper wrapper around a Remote Request, to be performed by theRemoteConnectorService. To have one of these created for you, useRemoteConnectorService.buildRequest(String, String)- Since:
- 4.0.2
- Author:
- Nick Burch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddRequestHeader(java.lang.String name, java.lang.String value)voidaddRequestHeader(org.apache.commons.httpclient.Header header)voidaddRequestHeaders(org.apache.commons.httpclient.Header[] headers)java.lang.StringgetContentType()java.lang.StringgetMethod()java.lang.ObjectgetRequestBody()Returns the Request Body, for use by theRemoteConnectorServicewhich created thisorg.apache.commons.httpclient.Header[]getRequestHeaders()java.lang.StringgetURL()voidsetContentType(java.lang.String contentType)Sets the Content Type to send for the requestvoidsetRequestBody(byte[] body)voidsetRequestBody(java.io.InputStream body)voidsetRequestBody(java.lang.String body)voidsetRequestBody(org.apache.commons.httpclient.methods.RequestEntity body)
-
-
-
Method Detail
-
getURL
java.lang.String getURL()
- Returns:
- the URL this request is for
-
getMethod
java.lang.String getMethod()
- Returns:
- the HTTP Method this request will execute (eg POST, GET)
-
getContentType
java.lang.String getContentType()
- Returns:
- The Content Type of the request
-
setContentType
void setContentType(java.lang.String contentType)
Sets the Content Type to send for the request
-
getRequestBody
java.lang.Object getRequestBody()
Returns the Request Body, for use by theRemoteConnectorServicewhich created this
-
setRequestBody
void setRequestBody(java.lang.String body)
-
setRequestBody
void setRequestBody(byte[] body)
-
setRequestBody
void setRequestBody(java.io.InputStream body)
-
setRequestBody
void setRequestBody(org.apache.commons.httpclient.methods.RequestEntity body)
-
getRequestHeaders
org.apache.commons.httpclient.Header[] getRequestHeaders()
-
addRequestHeader
void addRequestHeader(java.lang.String name, java.lang.String value)
-
addRequestHeader
void addRequestHeader(org.apache.commons.httpclient.Header header)
-
addRequestHeaders
void addRequestHeaders(org.apache.commons.httpclient.Header[] headers)
-
-