org.apache.geronimo.network.protocol
Class DatagramProtocol

java.lang.Object
  extended byorg.apache.geronimo.network.protocol.DatagramProtocol
All Implemented Interfaces:
Cloneable, Protocol, SelectionEventListner

public class DatagramProtocol
extends Object
implements Protocol, SelectionEventListner

Version:
$Revision: 1.7 $ $Date: 2004/08/01 13:03:42 $

Constructor Summary
DatagramProtocol()
           
 
Method Summary
 void clearLinks()
           
 Protocol cloneProtocol()
           
 void close()
           
 void drain()
           
 void flush()
           
 URI getConnectURI()
           
 SocketAddress getDestinationInterface()
           
 Protocol getDownProtocol()
           
 SelectorManager getSelectorManager()
           
 SocketAddress getSourceAddress()
           
 Protocol getUpProtocol()
           
 void selectionEvent(SelectorManager.Event event)
          When the SelectorKey is triggered, the service method will be called on the attachment.
 void sendDown(DownPacket packet)
           
 void sendUp(UpPacket packet)
           
 void setDestinationInterface(InetSocketAddress destinationInterface)
           
 void setDownProtocol(Protocol down)
           
 void setSelectorManager(SelectorManager selectorManager)
           
 void setSourceAddress(InetSocketAddress sourceAddress)
           
 void setup()
           
 void setUpProtocol(Protocol up)
           
 void teardown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatagramProtocol

public DatagramProtocol()
Method Detail

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

getConnectURI

public URI getConnectURI()

getSourceAddress

public SocketAddress getSourceAddress()

setSourceAddress

public void setSourceAddress(InetSocketAddress sourceAddress)

getDestinationInterface

public SocketAddress getDestinationInterface()

setDestinationInterface

public void setDestinationInterface(InetSocketAddress destinationInterface)

getSelectorManager

public SelectorManager getSelectorManager()

setSelectorManager

public void setSelectorManager(SelectorManager selectorManager)

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

selectionEvent

public void selectionEvent(SelectorManager.Event event)
Description copied from interface: SelectionEventListner
When the SelectorKey is triggered, the service method will be called on the attachment.

Specified by:
selectionEvent in interface SelectionEventListner

close

public void close()


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