uk.org.ogsadai.client.toolkit.sessions
Class TerminateSession

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.sessions.TerminateSession
All Implemented Interfaces:
SessionRequirements

public class TerminateSession
extends java.lang.Object
implements SessionRequirements

A SessionRequirement to specify that a request should join an existing session, then terminate that session after the request has finished processing.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private  SessionID mID
          The ID of the existing session to join.
 
Constructor Summary
TerminateSession(Session session)
          Creates a session requirement to join then terminate the specified session.
TerminateSession(SessionID id)
          Creates a session requirement to join then terminate the specified session.
TerminateSession(java.lang.String id)
          Creates a session requirement to join then terminate the specified session.
 
Method Summary
 java.lang.String generateXML()
          Generates the XML string representation of the session requirements for including within a perform document request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

mID

private final SessionID mID
The ID of the existing session to join.

Constructor Detail

TerminateSession

public TerminateSession(SessionID id)
Creates a session requirement to join then terminate the specified session.

Parameters:
id - the session to join then terminate

TerminateSession

public TerminateSession(Session session)
Creates a session requirement to join then terminate the specified session.

Parameters:
session - the session to join then terminate

TerminateSession

public TerminateSession(java.lang.String id)
Creates a session requirement to join then terminate the specified session.

Parameters:
id - the session identifier string to join then terminate
Method Detail

generateXML

public java.lang.String generateXML()
Description copied from interface: SessionRequirements
Generates the XML string representation of the session requirements for including within a perform document request.

Specified by:
generateXML in interface SessionRequirements
Returns:
a string of XML data