org.apache.geronimo.network.protocol
Class ProtocolStack

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended byjava.util.Stack
                  extended byorg.apache.geronimo.network.protocol.ProtocolStack
All Implemented Interfaces:
Cloneable, Collection, List, Protocol, RandomAccess, Serializable
Direct Known Subclasses:
ControlClientProtocolStack, ControlServerProtocolWaiter

public class ProtocolStack
extends Stack
implements Protocol

Version:
$Revision: 1.5 $ $Date: 2004/08/01 13:03:43 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ProtocolStack()
           
 
Method Summary
 void clearLinks()
           
 Protocol cloneProtocol()
           
 void drain()
           
 void flush()
           
 Protocol getDownProtocol()
           
 Protocol getUpProtocol()
           
 Object pop()
           
 Object push(Object object)
           
 void sendDown(DownPacket packet)
           
 void sendUp(UpPacket packet)
           
 void setDownProtocol(Protocol down)
           
 void setup()
           
 void setUpProtocol(Protocol up)
           
 void teardown()
           
 
Methods inherited from class java.util.Stack
empty, peek, search
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

ProtocolStack

public ProtocolStack()
Method Detail

push

public Object push(Object object)

pop

public Object pop()

getUpProtocol

public Protocol getUpProtocol()
Specified by:
getUpProtocol in interface Protocol

setUpProtocol

public void setUpProtocol(Protocol up)
Specified by:
setUpProtocol in interface Protocol

getDownProtocol

public Protocol getDownProtocol()
Specified by:
getDownProtocol in interface Protocol

setDownProtocol

public void setDownProtocol(Protocol down)
Specified by:
setDownProtocol in interface Protocol

clearLinks

public void clearLinks()
Specified by:
clearLinks in interface Protocol

cloneProtocol

public Protocol cloneProtocol()
                       throws CloneNotSupportedException
Specified by:
cloneProtocol in interface Protocol
Throws:
CloneNotSupportedException

setup

public void setup()
           throws ProtocolException
Specified by:
setup in interface Protocol
Throws:
ProtocolException

drain

public void drain()
           throws ProtocolException
Specified by:
drain in interface Protocol
Throws:
ProtocolException

teardown

public void teardown()
              throws ProtocolException
Specified by:
teardown in interface Protocol
Throws:
ProtocolException

sendUp

public void sendUp(UpPacket packet)
            throws ProtocolException
Specified by:
sendUp in interface Protocol
Throws:
ProtocolException

sendDown

public void sendDown(DownPacket packet)
              throws ProtocolException
Specified by:
sendDown in interface Protocol
Throws:
ProtocolException

flush

public void flush()
           throws ProtocolException
Specified by:
flush in interface Protocol
Throws:
ProtocolException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.