uk.org.ogsadai.client.toolkit.sessions
Interface Session

All Known Implementing Classes:
SessionImpl

public interface Session

The client-side representation of a service-side session. This interface provides access to the unique identifier of the session as well as any resource properties that are associated with the session.

Author:
The OGSA-DAI Project Team

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.
 

Method Detail

getSessionID

public SessionID getSessionID()
Returns the identity of the session that the request was joined to.

Returns:
a SessionID

getStatus

public RequestStatus getStatus()
                        throws ServiceCommsException,
                               ResourceUnknownException,
                               ServerException,
                               UnknownPropertyException,
                               DataFormatException,
                               AuthorisationException
Gets the status of the current request for the session.

Returns:
the status of the current request for the session.
Throws:
UnknownPropertyException - If the resource has no property for the status of the current request for the session.
ResourceUnknownException - If the resource to which the session belongs is unknown to the service.
AuthorisationException - If the client is not authorised to access this information.
ServerException - If there was an error server-side.
DataFormatException - If the structure of the status information from the service cannot be parsed by the client toolkit.
ServiceCommsException - If there was an error communicating with the service.