|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.examples.clienttoolkit.UsingSessionsExample
This example shows how the client toolkit can specify session requirements, determine what session a request was joined to and access the session request status property.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
private static java.lang.String |
RESOURCE_NAME
Name of data service resource used for this example. |
private static java.lang.String |
SERVICE_HANDLE
Handle used in the client toolkit examples. |
| Constructor Summary | |
UsingSessionsExample()
|
|
| Method Summary | |
private static Session |
createNewSession(DataService service)
Sends an empty request to a data service resource instructing the creation of a new session with default settings. |
private static void |
joinExistingSession(DataService service,
Session session)
Sends a request to a data service resource to join a particular session. |
private static void |
joinImplictSession(DataService service)
Sends a request which joins an implicit session then displays the identity of the session from the response. |
static void |
main(java.lang.String[] args)
|
private static void |
terminateSession(DataService service,
Session session)
Sends a request to a data service resource instructing it to terminate a specific 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 static final java.lang.String SERVICE_HANDLE
private static final java.lang.String RESOURCE_NAME
| Constructor Detail |
public UsingSessionsExample()
| Method Detail |
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
private static void joinImplictSession(DataService service)
throws java.lang.Exception
service - a data service configured to access a particular data service
resource
java.lang.Exception - if anything goes wrong
private static Session createNewSession(DataService service)
throws java.lang.Exception
service - a data service configured to access a particular data service
resource
Session object
java.lang.Exception - if anything goes wrong
private static void joinExistingSession(DataService service,
Session session)
throws java.lang.Exception
service - a data service configured to access a particular data service
resourcesession - the session for the request to be joined to
java.lang.Exception - if anything goes wrong
private static void terminateSession(DataService service,
Session session)
throws java.lang.Exception
service - a data service configured to access a particular data service
resourcesession - the session for the request to be joined to
java.lang.Exception - if anything goes wrong
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||