|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xins.common.service.CallConfig
org.xins.common.http.HTTPCallConfig
Call configuration for the HTTP service caller. The HTTP method and the User-Agent string can be configured. By default the HTTP method is POST and the no User-Agent string is set.
This class is not thread safe.
| Constructor Summary | |
HTTPCallConfig()
Constructs a new HTTPCallConfig object. |
|
| Method Summary | |
String |
describe()
Describes this configuration. |
HTTPMethod |
getMethod()
Returns the HTTP method associated with this configuration. |
String |
getUserAgent()
Returns the HTTP user agent associated with the HTTP call. |
void |
setMethod(HTTPMethod method)
Sets the HTTP method associated with this configuration. |
void |
setUserAgent(String agent)
Sets the user agent associated with the HTTP call. |
| 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 HTTPCallConfig()
HTTPCallConfig object.
| Method Detail |
public HTTPMethod getMethod()
null.
public void setMethod(HTTPMethod method)
throws IllegalArgumentException
method - the HTTP method to be associated with this configuration, cannot be
null.
IllegalArgumentException - if method == null.public void setUserAgent(String agent)
agent - the HTTP user agent, or null if no user-agent header
should be sent.public String getUserAgent()
null no user agent has been
specified.public String describe()
describe in class CallConfignull, 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 | ||||||||||