org.apache.directory.server.protocol.shared.transport
Class UdpTransport

java.lang.Object
  extended by org.apache.directory.server.protocol.shared.transport.AbstractTransport
      extended by org.apache.directory.server.protocol.shared.transport.UdpTransport
All Implemented Interfaces:
Transport

public class UdpTransport
extends AbstractTransport

Version:
$Rev$, $Date$
Author:
Apache Directory Project
XBean

Field Summary
 
Fields inherited from class org.apache.directory.server.protocol.shared.transport.AbstractTransport
acceptor, DEFAULT_BACKLOG_NB, DEFAULT_NB_THREADS, LOCAL_HOST
 
Constructor Summary
UdpTransport()
          Creates an instance of the UdpTransport class
UdpTransport(int udpPort)
          Creates an instance of the UdpTransport class on localhost
UdpTransport(java.lang.String address, int udpPort)
          Creates an instance of the UdpTransport class
 
Method Summary
 org.apache.mina.transport.socket.DatagramAcceptor getAcceptor()
          
 void init()
          Initialize the Acceptor if needed
 java.lang.String toString()
           
 
Methods inherited from class org.apache.directory.server.protocol.shared.transport.AbstractTransport
enableSSL, getAddress, getBackLog, getEnableSSL, getNbThreads, getPort, isSSLEnabled, setAddress, setBackLog, setEnableSSL, setNbThreads, setPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UdpTransport

public UdpTransport()
Creates an instance of the UdpTransport class


UdpTransport

public UdpTransport(int udpPort)
Creates an instance of the UdpTransport class on localhost

Parameters:
udpPort - The port

UdpTransport

public UdpTransport(java.lang.String address,
                    int udpPort)
Creates an instance of the UdpTransport class

Parameters:
address - The address
udpPort - The port
Method Detail

init

public void init()
Initialize the Acceptor if needed

Specified by:
init in interface Transport
Specified by:
init in class AbstractTransport

getAcceptor

public org.apache.mina.transport.socket.DatagramAcceptor getAcceptor()
Description copied from class: AbstractTransport

Specified by:
getAcceptor in interface Transport
Specified by:
getAcceptor in class AbstractTransport
Returns:
The associated DatagramAcceptor

toString

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


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