|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.wsclient.session.impl.WSClientSession
public class WSClientSession
Wraps a Proxy context for sessions
Field Summary | |
---|---|
protected boolean |
m_busy
|
protected com.webmethods.caf.wsclient.session.impl.WSClientSession.CookieInterceptor |
m_cookieInterceptor
|
protected boolean |
m_expired
|
Constructor Summary | |
---|---|
WSClientSession(IWSClientSessionPool clientSessionPool,
AuthCredentials authCredentials,
String hostURL,
String id)
Create a new session instance. |
Method Summary | |
---|---|
AuthCredentials |
getAuthCredentials()
Get the AuthCredentials used by the session to authenicate web service requests. |
String |
getHostURL()
Get the configured endPoint for this session (and ProxyContext) |
String |
getID()
The unique ID that describes this session |
ProxyContext |
getProxyContext()
Get the context created for this Session. |
ClientCookie[] |
getSessionCookies()
Get any the ClientCookie[] associated with this session |
boolean |
isBusy()
Is this session currently servicing a web service request |
boolean |
isExpired()
Has this session been flagged for expiration |
static boolean |
notEmptyString(String str)
|
void |
setAuthCredentials(AuthCredentials authCredentials)
Set the AuthCredentials of the session |
void |
setBusy(boolean newVal)
Mark this session as busy and not available to handle another request |
void |
setExpired(boolean newVal)
Mark this session as expired |
void |
setSessionCookies(ClientCookie[] sessionCookies)
Set the session's client cookies |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean m_expired
protected boolean m_busy
protected com.webmethods.caf.wsclient.session.impl.WSClientSession.CookieInterceptor m_cookieInterceptor
Constructor Detail |
---|
public WSClientSession(IWSClientSessionPool clientSessionPool, AuthCredentials authCredentials, String hostURL, String id)
clientSessionPool
- the IWSClientSessionPool
that manages this poolauthCredentials
- the AuthCredentials
used to authenticate this session with web service providerhostURL
- the web service endpoint URL as a stringid
- the session ID to assign to this sessionMethod Detail |
---|
public String getID()
IWSClientSession
getID
in interface IWSClientSession
public String getHostURL()
IWSClientSession
getHostURL
in interface IWSClientSession
public ProxyContext getProxyContext()
IWSClientSession
getProxyContext
in interface IWSClientSession
public boolean isExpired()
IWSClientSession
isExpired
in interface IWSClientSession
public boolean isBusy()
IWSClientSession
isBusy
in interface IWSClientSession
public void setBusy(boolean newVal)
IWSClientSession
setBusy
in interface IWSClientSession
newVal
- true if the session is busypublic void setAuthCredentials(AuthCredentials authCredentials)
IWSClientSession
setAuthCredentials
in interface IWSClientSession
public AuthCredentials getAuthCredentials()
IWSClientSession
AuthCredentials
used by the session to authenicate web service requests.
getAuthCredentials
in interface IWSClientSession
public void setExpired(boolean newVal)
IWSClientSession
setExpired
in interface IWSClientSession
newVal
- true if this session is no longer validpublic static boolean notEmptyString(String str)
public ClientCookie[] getSessionCookies()
IWSClientSession
getSessionCookies
in interface IWSClientSession
public void setSessionCookies(ClientCookie[] sessionCookies)
IWSClientSession
setSessionCookies
in interface IWSClientSession
sessionCookies
- - an array of ClientCookie objects
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |