org.apache.geronimo.network.protocol
Class AcceptableProtocolStack

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.AcceptableProtocolStack
All Implemented Interfaces:
AcceptableProtocol, Cloneable, Collection, List, Protocol, RandomAccess, Serializable, ServerSocketAcceptorListener
Direct Known Subclasses:
ControlServerProtocolStack

public class AcceptableProtocolStack
extends Stack
implements AcceptableProtocol

Version:
$Revision: 1.4 $ $Date: 2004/08/01 13:03:37 $
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
AcceptableProtocolStack()
           
 
Method Summary
 void accept(SocketChannel socketChannel)
           
 void clearLinks()
           
 Protocol cloneProtocol()
           
 void drain()
           
 void flush()
           
 long getCreated()
           
 Protocol getDownProtocol()
           
 long getLastUsed()
           
 Protocol getUpProtocol()
           
 boolean isDone()
           
 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

AcceptableProtocolStack

public AcceptableProtocolStack()
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

accept

public void accept(SocketChannel socketChannel)
Specified by:
accept in interface ServerSocketAcceptorListener

isDone

public boolean isDone()
Specified by:
isDone in interface AcceptableProtocol

getCreated

public long getCreated()
Specified by:
getCreated in interface AcceptableProtocol

getLastUsed

public long getLastUsed()
Specified by:
getLastUsed in interface AcceptableProtocol


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