org.objectweb.jonathan.apis.protocols
Class ProtocolInfo

java.lang.Object
  extended by org.objectweb.jonathan.apis.protocols.ProtocolInfo

public class ProtocolInfo
extends java.lang.Object

Tree-like structure to hold the protocol stack info at configuration time. This will be used in the Binder to instanciate server side protocol graphs.


Constructor Summary
ProtocolInfo(Protocol current)
          Create a leaf ProtocolInfo node.
ProtocolInfo(Protocol current, ProtocolInfo[] lower)
          Create a non-leaf ProtocolInfo node.
 
Method Summary
 Context getHints()
           
 ProtocolInfo[] getLower()
          Get the lower nodes.
 Protocol getProtocol()
          Get the protocol id of this node.
 void setHints(Context hints)
          Set the hints that may help things to happen smoothly (e.g. configure the port in TCP/IP, ...).
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProtocolInfo

public ProtocolInfo(Protocol current)
Create a leaf ProtocolInfo node.

Parameters:
current - the protocol id of this node.

ProtocolInfo

public ProtocolInfo(Protocol current,
                    ProtocolInfo[] lower)
Create a non-leaf ProtocolInfo node.

Parameters:
current - protocol id of this node.
lower - the lower nodes.
Method Detail

setHints

public void setHints(Context hints)
Set the hints that may help things to happen smoothly (e.g. configure the port in TCP/IP, ...).

Parameters:
hints - the new hints.

getLower

public ProtocolInfo[] getLower()
Get the lower nodes.

Returns:
the lower nodes.

getProtocol

public Protocol getProtocol()
Get the protocol id of this node.

Returns:
the protocol id of this node.

getHints

public Context getHints()

toString

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


Copyright © 2008 OW2 Consortium. All Rights Reserved.