com.actimind.actiwate.http
Class PostRequest
java.lang.Object
com.actimind.actiwate.http.HttpRequest
com.actimind.actiwate.http.PostRequest
- All Implemented Interfaces:
- com.actimind.actiwate.log.Loggable
- Direct Known Subclasses:
- MultipartPostRequest
- public class PostRequest
- extends HttpRequest
Implements the HTTP POST method request.
|
Constructor Summary |
PostRequest(java.lang.String URL)
Constructs the request with the specified URL. |
PostRequest(java.lang.String URL,
java.lang.String charset)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PostRequest
public PostRequest(java.lang.String URL)
- Constructs the request with the specified URL. URL must be encoded.
- Parameters:
URL - either an absolute or relative URL
PostRequest
public PostRequest(java.lang.String URL,
java.lang.String charset)
createHttpMethod
public org.apache.commons.httpclient.HttpMethod createHttpMethod()
- Specified by:
createHttpMethod in class HttpRequest
getMethod
public java.lang.String getMethod()
- Specified by:
getMethod in class HttpRequest
toLog
public void toLog(com.actimind.actiwate.log.LogWriter writer)
addParameter
public void addParameter(java.lang.String paramName,
java.lang.String paramValue)
- Adds a new parameter to be used in the POST request body.
- Parameters:
paramName - The parameter name to add.paramValue - The parameter value to add
- Throws:
java.lang.IllegalArgumentException - if either argument is null
addParameter
protected void addParameter(PostRequest.Parameter param)
getParameters
protected java.util.List getParameters()
getParameterValue
public java.lang.String getParameterValue(java.lang.String paramName)
setRequestBody
public void setRequestBody(byte[] requestBody)
getRequestBody
public byte[] getRequestBody()
Copyright © 2007 Actimind, Inc. All Rights Reserved.