|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlrpc.XmlRpcConfigImpl org.apache.xmlrpc.common.XmlRpcHttpRequestConfigImpl
public class XmlRpcHttpRequestConfigImpl
Default implementation of a request configuration.
Field Summary |
---|
Fields inherited from interface org.apache.xmlrpc.common.XmlRpcStreamConfig |
---|
UTF8_ENCODING |
Constructor Summary | |
---|---|
XmlRpcHttpRequestConfigImpl()
|
Method Summary | |
---|---|
java.lang.String |
getBasicPassword()
Returns the password being used for basic HTTP authentication. |
java.lang.String |
getBasicUserName()
Returns the user name being used for basic HTTP authentication. |
int |
getConnectionTimeout()
Returns the connection timeout in milliseconds. |
int |
getReplyTimeout()
Return the reply timeout in milliseconds. |
boolean |
isEnabledForExceptions()
Returns, whether the response should contain a "faultCause" element in case of errors. |
boolean |
isGzipCompressing()
Returns, whether the request stream is being compressed. |
boolean |
isGzipRequesting()
Returns, whether compression is requested for the response stream. |
void |
setBasicPassword(java.lang.String pPassword)
Sets the password for basic authentication. |
void |
setBasicUserName(java.lang.String pUser)
Sets the user name for basic authentication. |
void |
setConnectionTimeout(int pTimeout)
Set the connection timeout in milliseconds. |
void |
setEnabledForExceptions(boolean pEnabledForExceptions)
Sets, whether the response should contain a "faultCause" element in case of errors. |
void |
setGzipCompressing(boolean pCompressing)
Sets, whether gzip compression is being used for transmitting the request. |
void |
setGzipRequesting(boolean pRequesting)
Sets, whether gzip compression is requested for the response. |
void |
setReplyTimeout(int pTimeout)
Set the reply timeout in milliseconds. |
Methods inherited from class org.apache.xmlrpc.XmlRpcConfigImpl |
---|
getBasicEncoding, getEncoding, getTimeZone, isContentLengthOptional, isEnabledForExtensions, setBasicEncoding, setContentLengthOptional, setEnabledForExtensions, setEncoding, setTimeZone |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.xmlrpc.common.XmlRpcHttpConfig |
---|
getBasicEncoding, isContentLengthOptional |
Methods inherited from interface org.apache.xmlrpc.common.XmlRpcStreamConfig |
---|
getEncoding |
Methods inherited from interface org.apache.xmlrpc.XmlRpcConfig |
---|
getTimeZone, isEnabledForExtensions |
Constructor Detail |
---|
public XmlRpcHttpRequestConfigImpl()
Method Detail |
---|
public void setGzipCompressing(boolean pCompressing)
pCompressing
- True for enabling gzip compression,
false otherwise.setGzipRequesting(boolean)
public boolean isGzipCompressing()
XmlRpcStreamRequestConfig
isGzipCompressing
in interface XmlRpcStreamRequestConfig
XmlRpcStreamRequestConfig.isGzipRequesting()
public void setGzipRequesting(boolean pRequesting)
pRequesting
- True for requesting gzip compression,
false otherwise.setGzipCompressing(boolean)
public boolean isGzipRequesting()
XmlRpcStreamRequestConfig
XmlRpcStreamRequestConfig.isGzipCompressing()
is activated. Also note, that the
server may still decide to send uncompressed data.
isGzipRequesting
in interface XmlRpcStreamRequestConfig
XmlRpcStreamRequestConfig.isGzipCompressing()
public void setBasicUserName(java.lang.String pUser)
pUser
- The user name.public java.lang.String getBasicUserName()
XmlRpcHttpRequestConfig
getBasicUserName
in interface XmlRpcHttpRequestConfig
public void setBasicPassword(java.lang.String pPassword)
pPassword
- The password.public java.lang.String getBasicPassword()
XmlRpcHttpRequestConfig
getBasicPassword
in interface XmlRpcHttpRequestConfig
public void setConnectionTimeout(int pTimeout)
XmlRpcCommonsTransportFactory
,
and XmlRpcSun15HttpTransportFactory
.
On the other hand, transport
factories which are known not to use this value:
XmlRpcSunHttpTransportFactory
,
XmlRpcSun14HttpTransportFactory
,
XmlRpcLiteHttpTransportFactory
, and
XmlRpcLite14HttpTransport
.
pTimeout
- connection timeout, 0 to disable itpublic int getConnectionTimeout()
XmlRpcHttpRequestConfig
XmlRpcCommonsTransportFactory
,
and XmlRpcSun15HttpTransportFactory
.
On the other hand, transport
factories which are known not to use this value:
XmlRpcSunHttpTransportFactory
,
XmlRpcSun14HttpTransportFactory
,
XmlRpcLiteHttpTransportFactory
,
and XmlRpcLite14HttpTransport
.
getConnectionTimeout
in interface XmlRpcHttpRequestConfig
public void setReplyTimeout(int pTimeout)
XmlRpcCommonsTransportFactory
,
and XmlRpcSun15HttpTransportFactory
.
On the other hand, transport
factories which are known not to use this value:
XmlRpcSunHttpTransportFactory
,
XmlRpcSun14HttpTransportFactory
,
XmlRpcLiteHttpTransportFactory
,
and XmlRpcLite14HttpTransport
.
pTimeout
- reply timeout, 0 to disable itpublic int getReplyTimeout()
XmlRpcHttpRequestConfig
XmlRpcCommonsTransportFactory
,
and XmlRpcSun15HttpTransportFactory
.
On the other hand, transport
factories which are known not to use this value:
XmlRpcSunHttpTransportFactory
,
XmlRpcSun14HttpTransportFactory
,
XmlRpcLiteHttpTransportFactory
,
and XmlRpcLite14HttpTransport
.
getReplyTimeout
in interface XmlRpcHttpRequestConfig
public void setEnabledForExceptions(boolean pEnabledForExceptions)
public boolean isEnabledForExceptions()
XmlRpcStreamRequestConfig
isEnabledForExceptions
in interface XmlRpcStreamRequestConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |