CADI.Server.Session
Class Channel

java.lang.Object
  extended by CADI.Server.Session.Channel

public class Channel
extends java.lang.Object

This class is used to save the channel properties.

For further information about JPIP channels, see ISO/IEC 15444-9 section B.2

Version:
1.0 2007/10/26
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
private  java.lang.String cap
          Definition in ClientCapPrefField.cap.
private  java.lang.String cid
          Definition in ChannelField.cid.
private  java.lang.String csf
          Definition in ClientCapPrefField.csf.
private  java.lang.String pref
          Definition in ClientCapPrefField.pref.
private  java.lang.String transport
          Indicates the transport protocol.
 
Constructor Summary
Channel(java.lang.String transport)
          Constructor.
 
Method Summary
private  java.lang.String generateCid()
          Generates a unique channel identifier.
 java.lang.String getCap()
          Returns the cap attribute.
 java.lang.String getCid()
          Returns the cid attribute.
 java.lang.String getCsf()
          Returns the csf attribute.
 java.lang.String getPref()
          Returns the pref attribute.
 void list(java.io.PrintStream out)
          Prints this Channel out to the specified output stream.
 void setCap(java.lang.String cap)
          Sets the cap attribute.
 void setCsf(java.lang.String csf)
          Sets the csf attribute.
 void setPref(java.lang.String pref)
          Sets the pref attribute.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cid

private java.lang.String cid
Definition in ChannelField.cid.


transport

private java.lang.String transport
Indicates the transport protocol.

NOTICE: Only the http transport is available.


cap

private java.lang.String cap
Definition in ClientCapPrefField.cap.


pref

private java.lang.String pref
Definition in ClientCapPrefField.pref.


csf

private java.lang.String csf
Definition in ClientCapPrefField.csf.

Constructor Detail

Channel

public Channel(java.lang.String transport)
Constructor.

Parameters:
transport - see transport.
Method Detail

getCap

public java.lang.String getCap()
Returns the cap attribute.

Returns:
the cap attribute.

setCap

public void setCap(java.lang.String cap)
Sets the cap attribute.

Parameters:
cap - the cap to be set.

getCid

public java.lang.String getCid()
Returns the cid attribute.

Returns:
the cid attribute.

getCsf

public java.lang.String getCsf()
Returns the csf attribute.

Returns:
the csf attribute.

setCsf

public void setCsf(java.lang.String csf)
Sets the csf attribute.

Parameters:
csf - the csf to be set.

getPref

public java.lang.String getPref()
Returns the pref attribute.

Returns:
the pref attribute.

setPref

public void setPref(java.lang.String pref)
Sets the pref attribute.

Parameters:
pref - the pref to be set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

list

public void list(java.io.PrintStream out)
Prints this Channel out to the specified output stream. This method is useful for debugging.

Parameters:
out - an output stream.

generateCid

private java.lang.String generateCid()
Generates a unique channel identifier. The unique identifier generation is base on the current time, it is a time-stamp.

NOTICE: this method must be improved adding the Rijndael (or another one), client information, etc. to improve the security.

Returns:
the unique channel identifier.


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)