uk.org.ogsadai.sessions
Class SessionStreamID

java.lang.Object
  |
  +--uk.org.ogsadai.sessions.SessionStreamID

public class SessionStreamID
extends java.lang.Object

A compound identifier for identifying an external input or output belonging to a particular session.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private  SessionID mSessionID
          The ID of the session containing the stream
private  java.lang.String mStreamID
          The stream identified
static java.lang.String SEPARATOR
          The seperator for the components of the compound identifier.
 
Constructor Summary
SessionStreamID(SessionID sessionID, java.lang.String streamID)
          Create a new session stream identifier for the specified stream of the specified session.
SessionStreamID(Session session, java.lang.String streamID)
          Create a new session stream identifier for the specified stream of the specified session.
SessionStreamID(java.lang.String compoundID)
          Create a new session stream identifier from the specified compound identifier.
 
Method Summary
 java.lang.String getCompoundID()
          Gets the session stream compound identifier containing both the session ID and stream ID.
 SessionID getSessionID()
          Gets the ID for the session containing the stream.
 java.lang.String getStreamID()
          Gets the stream identifier.
 java.lang.String toString()
          Gets the session stream compound identifier containing both the session ID and stream ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

mSessionID

private SessionID mSessionID
The ID of the session containing the stream


mStreamID

private java.lang.String mStreamID
The stream identified


SEPARATOR

public static final java.lang.String SEPARATOR
The seperator for the components of the compound identifier.

See Also:
Constant Field Values
Constructor Detail

SessionStreamID

public SessionStreamID(SessionID sessionID,
                       java.lang.String streamID)
Create a new session stream identifier for the specified stream of the specified session.

Parameters:
sessionID - The session identifier.
streamID - The stream identifier.

SessionStreamID

public SessionStreamID(Session session,
                       java.lang.String streamID)
Create a new session stream identifier for the specified stream of the specified session.

Parameters:
session - The session.
streamID - The stream identifier.

SessionStreamID

public SessionStreamID(java.lang.String compoundID)
Create a new session stream identifier from the specified compound identifier.

Parameters:
compoundID - Compound identifier containing the sessionID and streamID.
Method Detail

getSessionID

public SessionID getSessionID()
Gets the ID for the session containing the stream.

Returns:
session ID.

getStreamID

public java.lang.String getStreamID()
Gets the stream identifier.

Returns:
stream identifier.

getCompoundID

public java.lang.String getCompoundID()
Gets the session stream compound identifier containing both the session ID and stream ID.

Returns:
compound identifier of form SESSION-ID:STREAM-ID.

toString

public java.lang.String toString()
Gets the session stream compound identifier containing both the session ID and stream ID.

Overrides:
toString in class java.lang.Object
Returns:
compound identifier as a string.