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(String name, String value)voidaddRequestHeader(org.apache.commons.httpclient.Header header)voidaddRequestHeaders(org.apache.commons.httpclient.Header[] headers)StringgetContentType()StringgetMethod()ObjectgetRequestBody()Returns the Request Body, for use by theRemoteConnectorServicewhich created thisorg.apache.commons.httpclient.Header[]getRequestHeaders()StringgetURL()voidsetContentType(String contentType)Sets the Content Type to send for the requestvoidsetRequestBody(byte[] body)voidsetRequestBody(InputStream body)voidsetRequestBody(String body)voidsetRequestBody(org.apache.commons.httpclient.methods.RequestEntity body)
-
-
-
Method Detail
-
getURL
String getURL()
- Returns:
- the URL this request is for
-
getMethod
String getMethod()
- Returns:
- the HTTP Method this request will execute (eg POST, GET)
-
getContentType
String getContentType()
- Returns:
- The Content Type of the request
-
setContentType
void setContentType(String contentType)
Sets the Content Type to send for the request
-
getRequestBody
Object getRequestBody()
Returns the Request Body, for use by theRemoteConnectorServicewhich created this
-
setRequestBody
void setRequestBody(String body)
-
setRequestBody
void setRequestBody(byte[] body)
-
setRequestBody
void setRequestBody(InputStream body)
-
setRequestBody
void setRequestBody(org.apache.commons.httpclient.methods.RequestEntity body)
-
getRequestHeaders
org.apache.commons.httpclient.Header[] getRequestHeaders()
-
addRequestHeader
void addRequestHeader(org.apache.commons.httpclient.Header header)
-
addRequestHeaders
void addRequestHeaders(org.apache.commons.httpclient.Header[] headers)
-
-