Package org.apache.xmlrpc.webserver
Class RequestData
java.lang.Object
org.apache.xmlrpc.XmlRpcConfigImpl
org.apache.xmlrpc.common.XmlRpcHttpRequestConfigImpl
org.apache.xmlrpc.webserver.RequestData
- All Implemented Interfaces:
XmlRpcHttpConfig,XmlRpcHttpRequestConfig,XmlRpcStreamConfig,XmlRpcStreamRequestConfig,XmlRpcConfig,XmlRpcRequestConfig
Web servers extension of
XmlRpcHttpRequestConfig,
which allows to store additional per request data.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Connectionprivate intprivate Stringprivate booleanprivate Stringprivate booleanFields inherited from interface org.apache.xmlrpc.common.XmlRpcStreamConfig
UTF8_ENCODING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the connection, which is serving the request.intReturns the requests content length.Returns the requests HTTP version.Returns the request method.booleanReturns, whether a byte array for buffering the output is required.booleanReturns, whether HTTP keepAlive is enabled for this connection.booleanReturns, whether the request was executed successfull.voidsetContentLength(int pContentLength) Sets the requests content length.voidsetHttpVersion(String pHttpVersion) Sets the requests HTTP version.voidsetKeepAlive(boolean pKeepAlive) Sets, whether HTTP keepAlive is enabled for this connection.voidSets the request method.voidsetSuccess(boolean pSuccess) Sets, whether the request was executed successfull.Methods inherited from class org.apache.xmlrpc.common.XmlRpcHttpRequestConfigImpl
getBasicPassword, getBasicUserName, getConnectionTimeout, getReplyTimeout, isEnabledForExceptions, isGzipCompressing, isGzipRequesting, setBasicPassword, setBasicUserName, setConnectionTimeout, setEnabledForExceptions, setGzipCompressing, setGzipRequesting, setReplyTimeoutMethods inherited from class org.apache.xmlrpc.XmlRpcConfigImpl
getBasicEncoding, getEncoding, getTimeZone, isContentLengthOptional, isEnabledForExtensions, setBasicEncoding, setContentLengthOptional, setEnabledForExtensions, setEncoding, setTimeZoneMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.xmlrpc.XmlRpcConfig
getTimeZone, isEnabledForExtensionsMethods inherited from interface org.apache.xmlrpc.common.XmlRpcHttpConfig
getBasicEncoding, isContentLengthOptionalMethods inherited from interface org.apache.xmlrpc.common.XmlRpcStreamConfig
getEncoding
-
Field Details
-
connection
-
keepAlive
private boolean keepAlive -
method
-
httpVersion
-
contentLength
private int contentLength -
success
private boolean success
-
-
Constructor Details
-
RequestData
Creates a new instance.- Parameters:
pConnection- The connection, which is serving the request.
-
-
Method Details
-
getConnection
Returns the connection, which is serving the request.- Returns:
- The request connection.
-
isKeepAlive
public boolean isKeepAlive()Returns, whether HTTP keepAlive is enabled for this connection.- Returns:
- True, if keepAlive is enabled, false otherwise.
-
setKeepAlive
public void setKeepAlive(boolean pKeepAlive) Sets, whether HTTP keepAlive is enabled for this connection.- Parameters:
pKeepAlive- True, if keepAlive is enabled, false otherwise.
-
getHttpVersion
Returns the requests HTTP version.- Returns:
- HTTP version, for example "1.0"
-
setHttpVersion
Sets the requests HTTP version.- Parameters:
pHttpVersion- HTTP version, for example "1.0"
-
getContentLength
public int getContentLength()Returns the requests content length.- Returns:
- Content length, if known, or -1, if unknown.
-
setContentLength
public void setContentLength(int pContentLength) Sets the requests content length.- Parameters:
pContentLength- Content length, if known, or -1, if unknown.
-
isByteArrayRequired
public boolean isByteArrayRequired()Returns, whether a byte array for buffering the output is required.- Returns:
- True, if the byte array is required, false otherwise.
-
getMethod
Returns the request method.- Returns:
- The request method, should be "POST".
-
setMethod
Sets the request method.- Parameters:
pMethod- The request method, should be "POST".
-
isSuccess
public boolean isSuccess()Returns, whether the request was executed successfull.- Returns:
- True for success, false, if an error occurred.
-
setSuccess
public void setSuccess(boolean pSuccess) Sets, whether the request was executed successfull.- Parameters:
pSuccess- True for success, false, if an error occurred.
-