Class ConnectorSession
java.lang.Object
org.springframework.extensions.webscripts.connector.ConnectorSession
- All Implemented Interfaces:
Serializable
Container for Connector "session state". Session state consists
of headers, cookies and parameters that need to be bound onto
the connector with subsequent connections.
This class essentially allows for the mimic of Browser-like
functionality in terms of subsequent Connectors reusing state
from previous Connector responses.
- Author:
- muzquiano
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a header.String[]Returns the cookie names.Gets the endpoint id.getParameter(String key) Gets a parameter.String[]Returns the parameter keys.voidSets a given header.voidsetParameter(String key, String value) Sets a given parameter.
-
Constructor Details
-
ConnectorSession
Instantiates a new connector session.- Parameters:
endpointId- the endpoint id
-
-
Method Details
-
getEndpointId
Gets the endpoint id.- Returns:
- the endpoint id
-
getParameter
Gets a parameter.- Parameters:
key- the key- Returns:
- the parameter
-
setParameter
Sets a given parameter.- Parameters:
key- the keyvalue- the value
-
getParameterKeys
Returns the parameter keys.- Returns:
- array of parameter keys
-
getCookie
Gets a header.- Parameters:
name- the name- Returns:
- the header
-
setCookie
Sets a given header.- Parameters:
name- the namevalue- the header
-
getCookieNames
Returns the cookie names.- Returns:
- array of cookie names
-