|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.common.service.CallConfig org.xins.client.XINSCallConfig
Call configuration for the XINS service caller. The HTTP method can be configured. By default it is set to POST.
This class is not thread safe
Constructor Summary | |
XINSCallConfig()
Constructs a new XINSCallConfig object. |
Method Summary | |
String |
describe()
Describes this configuration. |
boolean |
getFollowRedirect()
Returns the action performed when a redirect is returned from the server. |
HTTPMethod |
getHTTPMethod()
Returns the HTTP method associated with this configuration. |
void |
setFollowRedirect(boolean follow)
Sets the action to perform if a redirect is returned from the server. |
void |
setHTTPMethod(HTTPMethod method)
Sets the HTTP method associated with this configuration. |
Methods inherited from class org.xins.common.service.CallConfig |
isFailOverAllowed, setFailOverAllowed, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XINSCallConfig()
XINSCallConfig
object.
Method Detail |
public HTTPMethod getHTTPMethod()
null
.public void setHTTPMethod(HTTPMethod method) throws IllegalArgumentException
method
- the HTTP method to be associated with this configuration, cannot be
null
.
IllegalArgumentException
- if method == null
.public boolean getFollowRedirect()
true
if it should call the redirected link,
false
if it should fail.public void setFollowRedirect(boolean follow)
follow
- true
if it should call the redirected link,
false
if it should fail.public String describe()
describe
in class CallConfig
null
, should never be empty and should never start or
end with whitespace characters.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |