public class SessionTarget
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,JPIPChannel> |
channels
Contains the channels which are associated to this logical target.
|
protected java.lang.String |
returnType
Definition in
ServerControlField.type |
protected java.lang.String |
tid
Definition in
TargetField.tid |
Constructor and Description |
---|
SessionTarget()
Constructor.
|
SessionTarget(java.lang.String tid)
Constructor.
|
SessionTarget(java.lang.String tid,
java.lang.String returnType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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. |
JPIPChannel |
getChannel(java.lang.String cid) |
java.lang.String |
getCid()
Returns a CID belonging to the session target.
|
java.util.Set<java.lang.String> |
getCids()
Returns an one-dimensional array containing the available CIDs.
|
java.lang.String |
getReturnType() |
java.lang.String |
getTid()
Deprecated.
this method has been replaced by the
getTID() . |
java.lang.String |
getTID()
Returns the
tid . |
void |
list(java.io.PrintStream out)
Prints this Session out to the specified output stream.
|
java.lang.String |
newChannel() |
java.lang.String |
newChannel(java.lang.String transport) |
int |
numOfChannels()
Returns the number of opened channels.
|
void |
remove()
Removes all the attributes.
|
protected void |
setTID(java.lang.String tid) |
java.lang.String |
toString() |
protected java.lang.String tid
TargetField.tid
protected java.lang.String returnType
ServerControlField.type
protected java.util.Map<java.lang.String,JPIPChannel> channels
public SessionTarget()
public SessionTarget(java.lang.String tid)
tid
- public SessionTarget(java.lang.String tid, java.lang.String returnType)
tid
- definition in tid
.returnType
- definition in returnType
transport
- definition in JPIPResponseFields.transport
.public java.lang.String newChannel()
public java.lang.String newChannel(java.lang.String transport)
transport
- public JPIPChannel getChannel(java.lang.String cid)
cid
- public java.lang.String getCid()
public java.util.Set<java.lang.String> getCids()
public final java.lang.String getTid()
getTID()
.tid
.tid
.public java.lang.String getReturnType()
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.Object
public void list(java.io.PrintStream out)
out
- an output stream.protected final void setTID(java.lang.String tid)
tid
-
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)