public final class XINSCallConfig extends CallConfig
This class is not thread safe
Constructor and Description |
---|
XINSCallConfig()
Constructs a new
XINSCallConfig object. |
Modifier and Type | Method and Description |
---|---|
String |
describe()
Describes this configuration.
|
boolean |
getFollowRedirect()
Returns the action performed when a redirect is returned from the server.
|
HttpClient |
getHttpClient()
Gets the HttpClient to use to call the URL.
|
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 |
setHttpClient(HttpClient httpClient)
Sets the HttpClient to use to call the URL.
|
void |
setHTTPMethod(HTTPMethod method)
Sets the HTTP method associated with this configuration.
|
isFailOverAllowed, setFailOverAllowed, toString
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 HttpClient getHttpClient()
null.
public void setHttpClient(HttpClient httpClient)
null
the default HttpClient will be used.httpClient
- the http client, can be null.
public String describe()
describe
in class CallConfig
null
, should never be empty and should never start or
end with whitespace characters.See http://www.xins.org/.