|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.connector.ConnectorContext
public final class ConnectorContext
Describes invocation context that the connector should consider when creating the connection to the remote service. Invocation context consists of HTTP request state such as fixed parameters and headers.
Constructor Summary | |
---|---|
ConnectorContext()
Instantiates a new connector context. |
|
ConnectorContext(HttpMethod method)
Instantiates a new connector context. |
|
ConnectorContext(HttpMethod method,
Map<String,String> parameters,
Map<String,String> headers)
Instantiates a new connector context. |
|
ConnectorContext(Map<String,String> parameters,
Map<String,String> headers)
Instantiates a new connector context. |
Method Summary | |
---|---|
String |
getContentType()
Gets the content type. |
Map<String,String> |
getHeaders()
Gets the headers. |
HttpMethod |
getMethod()
Gets the method. |
Map<String,String> |
getParameters()
Gets the parameters. |
void |
setContentType(String contentType)
Sets the content type. |
void |
setMethod(HttpMethod method)
Sets the method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectorContext()
public ConnectorContext(Map<String,String> parameters, Map<String,String> headers)
parameters
- the parametersheaders
- the headerspublic ConnectorContext(HttpMethod method)
method
- the HTTP methodpublic ConnectorContext(HttpMethod method, Map<String,String> parameters, Map<String,String> headers)
method
- the HTTP methodparameters
- the parametersheaders
- the headersMethod Detail |
---|
public Map<String,String> getParameters()
public Map<String,String> getHeaders()
public String getContentType()
public void setContentType(String contentType)
contentType
- the new content typepublic HttpMethod getMethod()
public void setMethod(HttpMethod method)
method
- the new method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |