org.springframework.extensions.webscripts.connector
Class ConnectorContext

java.lang.Object
  extended by org.springframework.extensions.webscripts.connector.ConnectorContext

public final class ConnectorContext
extends Object

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.

Author:
Uzquiano

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

ConnectorContext

public ConnectorContext()
Instantiates a new connector context.


ConnectorContext

public ConnectorContext(Map<String,String> parameters,
                        Map<String,String> headers)
Instantiates a new connector context.

Parameters:
parameters - the parameters
headers - the headers

ConnectorContext

public ConnectorContext(HttpMethod method)
Instantiates a new connector context.

Parameters:
method - the HTTP method

ConnectorContext

public ConnectorContext(HttpMethod method,
                        Map<String,String> parameters,
                        Map<String,String> headers)
Instantiates a new connector context.

Parameters:
method - the HTTP method
parameters - the parameters
headers - the headers
Method Detail

getParameters

public Map<String,String> getParameters()
Gets the parameters.

Returns:
the parameters

getHeaders

public Map<String,String> getHeaders()
Gets the headers.

Returns:
the headers

getContentType

public String getContentType()
Gets the content type.

Returns:
the content type

setContentType

public void setContentType(String contentType)
Sets the content type.

Parameters:
contentType - the new content type

getMethod

public HttpMethod getMethod()
Gets the method.

Returns:
the method

setMethod

public void setMethod(HttpMethod method)
Sets the method.

Parameters:
method - the new method


Copyright © 2009 SpringSource, Inc. All Rights Reserved.