org.apache.geronimo.network.protocol
Class AcceptableProtocolStack
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.Vector
java.util.Stack
org.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
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 |
AcceptableProtocolStack
public AcceptableProtocolStack()
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.