|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.client.toolkit.sessions.SessionImpl
A client-side session object contructed from a response document returned from a data service.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement. |
private DataService |
mDataService
The data service that the session belongs to. |
private SessionID |
mSessionID
The identifier for the session. |
| Constructor Summary | |
SessionImpl(DataService dataService,
org.w3c.dom.Document response)
Creates a new session object from the session
element of a response document. |
|
| Method Summary | |
SessionID |
getSessionID()
Returns the identity of the session that the request was joined to. |
RequestStatus |
getStatus()
Gets the status of the current request for the session. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private SessionID mSessionID
private DataService mDataService
| Constructor Detail |
public SessionImpl(DataService dataService,
org.w3c.dom.Document response)
throws DataFormatException
session
element of a response document.
dataService - the data service that the session belongs toresponse - the response document
java.lang.IllegalArgumentException - if dataService is null or
response is null.
DataFormatException - if response does not contain a
session element.| Method Detail |
public SessionID getSessionID()
Session
getSessionID in interface SessionSessionID
public RequestStatus getStatus()
throws AuthorisationException,
ResourceUnknownException,
UnknownPropertyException,
DataFormatException,
ServerException,
ServiceCommsException
Session
getStatus in interface SessionServerException - If there was an error server-side.
UnknownPropertyException - If the resource has no property for the status of the
current request for the session.
AuthorisationException - If the client is not authorised to access this
information.
ResourceUnknownException - If the resource to which the session belongs is unknown to
the service.
ServiceCommsException - If there was an error communicating with the service.
DataFormatException - If the structure of the status information from the service
cannot be parsed by the client toolkit.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||