public class RequestData extends XmlRpcHttpRequestConfigImpl
XmlRpcHttpRequestConfig,
which allows to store additional per request data.UTF8_ENCODING| Constructor and Description |
|---|
RequestData(Connection pConnection)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getBasicPassword, getBasicUserName, getConnectionTimeout, getReplyTimeout, isEnabledForExceptions, isGzipCompressing, isGzipRequesting, setBasicPassword, setBasicUserName, setConnectionTimeout, setEnabledForExceptions, setGzipCompressing, setGzipRequesting, setReplyTimeoutgetBasicEncoding, getEncoding, getTimeZone, isContentLengthOptional, isEnabledForExtensions, setBasicEncoding, setContentLengthOptional, setEnabledForExtensions, setEncoding, setTimeZoneclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBasicEncoding, isContentLengthOptionalgetEncodinggetTimeZone, isEnabledForExtensionspublic RequestData(Connection pConnection)
pConnection - The connection, which is serving the request.public Connection getConnection()
public boolean isKeepAlive()
public void setKeepAlive(boolean pKeepAlive)
pKeepAlive - True, if keepAlive is enabled, false otherwise.public String getHttpVersion()
public void setHttpVersion(String pHttpVersion)
pHttpVersion - HTTP version, for example "1.0"public int getContentLength()
public void setContentLength(int pContentLength)
pContentLength - Content length, if known, or -1, if unknown.public boolean isByteArrayRequired()
public String getMethod()
public void setMethod(String pMethod)
pMethod - The request method, should be "POST".public boolean isSuccess()
public void setSuccess(boolean pSuccess)
pSuccess - True for success, false, if an error occurred.Copyright © 2001–2025 The Apache Software Foundation. All rights reserved.