net.sourceforge.jwap
Class PostRequest
java.lang.Object
|
+--net.sourceforge.jwap.Request
|
+--net.sourceforge.jwap.PostRequest
- public class PostRequest
- extends Request
Use this class for executing a WSP POST request.
- Author:
- Michel Marti
- See Also:
WAPClient
Constructor Summary |
PostRequest(java.lang.String URL)
Construct a new WSP POST request |
Method Summary |
long |
getContentLength()
Returns the length of the request-body |
java.lang.String |
getContentType()
Returns the content-type |
byte[] |
getRequestBody()
Returns the request body for this WSP POST request |
void |
setContentType(java.lang.String contentType)
Set the content-type |
void |
setRequestBody(byte[] requestBody)
Set the request body for this WSP POST request |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostRequest
public PostRequest(java.lang.String URL)
- Construct a new WSP POST request
- Parameters:
URL
- the URL to request
setRequestBody
public void setRequestBody(byte[] requestBody)
- Set the request body for this WSP POST request
getRequestBody
public byte[] getRequestBody()
- Returns the request body for this WSP POST request
setContentType
public void setContentType(java.lang.String contentType)
- Set the content-type
getContentType
public java.lang.String getContentType()
- Returns the content-type
getContentLength
public long getContentLength()
- Returns the length of the request-body