Interface RemoteConnectorRequest
- All Known Implementing Classes:
RemoteConnectorRequestImpl
public interface RemoteConnectorRequest
Helper wrapper around a Remote Request, to be performed by the
RemoteConnectorService. To have one of these created for you, use RemoteConnectorService.buildRequest(String, String)- Since:
- 4.0.2
- Author:
- Nick Burch
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequestHeader(String name, String value) voidaddRequestHeader(org.apache.commons.httpclient.Header header) voidaddRequestHeaders(org.apache.commons.httpclient.Header[] headers) Returns the Request Body, for use by theRemoteConnectorServicewhich created thisorg.apache.commons.httpclient.Header[]getURL()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 Details
-
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
Sets the Content Type to send for the request -
getRequestBody
Object getRequestBody()Returns the Request Body, for use by theRemoteConnectorServicewhich created this -
setRequestBody
-
setRequestBody
void setRequestBody(byte[] body) -
setRequestBody
-
setRequestBody
void setRequestBody(org.apache.commons.httpclient.methods.RequestEntity body) -
getRequestHeaders
org.apache.commons.httpclient.Header[] getRequestHeaders() -
addRequestHeader
-
addRequestHeader
void addRequestHeader(org.apache.commons.httpclient.Header header) -
addRequestHeaders
void addRequestHeaders(org.apache.commons.httpclient.Header[] headers)
-