org.apache.xmlrpc.webserver
public class RequestData extends XmlRpcHttpRequestConfigImpl
Constructor Summary | |
---|---|
RequestData(Connection pConnection) Creates a new instance. |
Method Summary | |
---|---|
Connection | getConnection() Returns the connection, which is serving the request. |
int | getContentLength() Returns the requests content length. |
String | getHttpVersion() Returns the requests HTTP version. |
String | getMethod() Returns the request method. |
boolean | isByteArrayRequired() Returns, whether a byte array for buffering the output is
required. |
boolean | isKeepAlive() Returns, whether HTTP keepAlive is enabled for this
connection. |
boolean | isSuccess() Returns, whether the request was executed successfull. |
void | setContentLength(int pContentLength) Sets the requests content length. |
void | setHttpVersion(String pHttpVersion) Sets the requests HTTP version. |
void | setKeepAlive(boolean pKeepAlive) Sets, whether HTTP keepAlive is enabled for this
connection. |
void | setMethod(String pMethod) Sets the request method. |
void | setSuccess(boolean pSuccess) Sets, whether the request was executed successfull. |
Parameters: pConnection The connection, which is serving the request.
Returns: The request connection.
Returns: Content length, if known, or -1, if unknown.
Returns: HTTP version, for example "1.0"
Returns: The request method, should be "POST".
Returns: True, if the byte array is required, false otherwise.
Returns: True, if keepAlive is enabled, false otherwise.
Returns: True for success, false, if an error occurred.
Parameters: pContentLength Content length, if known, or -1, if unknown.
Parameters: pHttpVersion HTTP version, for example "1.0"
Parameters: pKeepAlive True, if keepAlive is enabled, false otherwise.
Parameters: pMethod The request method, should be "POST".
Parameters: pSuccess True for success, false, if an error occurred.