|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Server.Session.SessionTarget
public class SessionTarget
This class is used to save information about a logical target that belongs to a session.
| Field Summary | |
|---|---|
private ServerCache |
cache
Saves the server cache model of this logical target for all channels. |
private java.util.ArrayList<Channel> |
channels
Contains the list of channels that are associated to this logical target. |
private java.lang.String |
tid
Definition in TargetField.tid |
| Constructor Summary | |
|---|---|
SessionTarget()
Constructor. |
|
| Method Summary | |
|---|---|
void |
closeChannel(java.lang.String cid)
Closes a channel. |
boolean |
contains(java.lang.String cid)
Checks if the channel cid belongs to this session target. |
java.lang.String |
createSessionTarget(java.lang.String transport)
Creates a channel. |
ServerCache |
getCache()
Returns the cache object. |
java.lang.String |
getTid()
Returns the tid. |
void |
list(java.io.PrintStream out)
Prints this Session out to the specified output stream. |
int |
numOfChannels()
Returns the number of opened channels. |
void |
remove()
Removes all the attributes. |
void |
setCache(ServerCache cache)
Sets the server cache. |
void |
setTid(java.lang.String tid)
Sets the target identifier. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String tid
TargetField.tid
private ServerCache cache
private java.util.ArrayList<Channel> channels
| Constructor Detail |
|---|
public SessionTarget()
| Method Detail |
|---|
public java.lang.String createSessionTarget(java.lang.String transport)
transport - definition in JPIPResponseFields.transport.
public void setTid(java.lang.String tid)
tid only can be set once; so
if this method is called and the tid has been set, an
exception is thrown.
tid - the target identifier.public java.lang.String getTid()
tid.
tid.public void setCache(ServerCache cache)
cache - the servr cache.public ServerCache getCache()
public boolean contains(java.lang.String cid)
cid belongs to this session target.
cid - the unique channel identifier.
true if the channel belongs to this session target.
Otherwise, returns false.public void closeChannel(java.lang.String cid)
cid - the unique channel identifier.public int numOfChannels()
public void remove()
public java.lang.String toString()
toString in class java.lang.Objectpublic void list(java.io.PrintStream out)
out - an output stream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||