|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.connector.ConnectorSession
public class ConnectorSession
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.
Constructor Summary | |
---|---|
ConnectorSession(String endpointId)
Instantiates a new connector session. |
Method Summary | |
---|---|
String |
getCookie(String name)
Gets a header. |
String[] |
getCookieNames()
Returns the cookie names. |
String |
getEndpointId()
Gets the endpoint id. |
String |
getParameter(String key)
Gets a parameter. |
String[] |
getParameterKeys()
Returns the parameter keys. |
void |
setCookie(String name,
String value)
Sets a given header. |
void |
setParameter(String key,
String value)
Sets a given parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectorSession(String endpointId)
endpointId
- the endpoint idMethod Detail |
---|
public String getEndpointId()
public String getParameter(String key)
key
- the key
public void setParameter(String key, String value)
key
- the keyvalue
- the valuepublic String[] getParameterKeys()
public String getCookie(String name)
name
- the name
public void setCookie(String name, String value)
name
- the namevalue
- the headerpublic String[] getCookieNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |