Interface IWSClientSession
- All Known Implementing Classes:
WSClientSession
public interface IWSClientSession
An interface that holds the minimum information
for the IWSClientSessionManager to manage a session
-
Method Summary
Modifier and TypeMethodDescriptionGet theAuthCredentials
used by the session to authenicate web service requests.Get the configured endPoint for this session (and ProxyContext)getID()
The unique ID that describes this sessionelectric.glue.context.ProxyContext
Get the context created for this Session.Retirve the session cookies as a mapelectric.http.cookies.ClientCookie[]
Get any the ClientCookie[] associated with this sessionboolean
isBusy()
Is this session currently servicing a web service requestboolean
Has this session been flagged for expirationvoid
setAuthCredentials
(AuthCredentials authCredentials) Set the AuthCredentials of the sessionvoid
setBusy
(boolean busy) Mark this session as busy and not available to handle another requestvoid
setExpired
(boolean expired) Mark this session as expiredvoid
setSessionCookieMap
(Map<String, String> cookies) set the cookiesvoid
setSessionCookies
(electric.http.cookies.ClientCookie[] m_sessionCookies) Set the session's client cookies
-
Method Details
-
getID
String getID()The unique ID that describes this session -
getProxyContext
electric.glue.context.ProxyContext getProxyContext()Get the context created for this Session. Every time this is called, it will create a new proxy context -
setAuthCredentials
Set the AuthCredentials of the session -
getAuthCredentials
AuthCredentials getAuthCredentials()Get theAuthCredentials
used by the session to authenicate web service requests. -
getHostURL
String getHostURL()Get the configured endPoint for this session (and ProxyContext)- Returns:
- the endpoint URL of the web service to invoke
-
isExpired
boolean isExpired()Has this session been flagged for expiration- Returns:
- true if the session has expired
-
setExpired
void setExpired(boolean expired) Mark this session as expired- Parameters:
expired
- true if this session is no longer valid
-
isBusy
boolean isBusy()Is this session currently servicing a web service request- Returns:
- true if the session is busy and is not available to handle another request
-
setBusy
void setBusy(boolean busy) Mark this session as busy and not available to handle another request- Parameters:
busy
- true if the session is busy
-
getSessionCookies
electric.http.cookies.ClientCookie[] getSessionCookies()Get any the ClientCookie[] associated with this session- Returns:
- ClientCookie[] or null
-
setSessionCookies
void setSessionCookies(electric.http.cookies.ClientCookie[] m_sessionCookies) Set the session's client cookies- Parameters:
m_sessionCookies
- - an array of ClientCookie objects
-
setSessionCookieMap
set the cookies- Parameters:
cookies
- as a map of strings
-
getSessionCookieMap
Retirve the session cookies as a map- Returns:
- map of cookies
-