All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.impl.adaptor.udp.AdaptorServerImpl

java.lang.Object
   |
   +----com.sun.jaw.impl.adaptor.generic.AdaptorServer
           |
           +----com.sun.jaw.impl.adaptor.comm.AdaptorServerImpl
                   |
                   +----com.sun.jaw.impl.adaptor.udp.AdaptorServerImpl

public class AdaptorServerImpl
extends AdaptorServerImpl
This class implements the server part of the HTTP/UDP adaptor.

This class inherits most of its behaviour. It performs only UDP-specific tasks:

  • it creates, reads, writes and closes the UDP sockets,
  • it defines the default port of the adaptor: 8083.
  • To receive data packets, the HTTP/UDP adaptor uses a buffer whose size can be configured using the property bufferSize (default value is 10240). Packets which does not fit in buffer are rejected. Increasing bufferSize allows to exchange bigger packets. However the underlying networking system may impose a limit on the size of UDP packets. Packets bigger than this limit will rejected too, no matter the value of bufferSize.

    See Also:
    AdaptorClient

    Constructor Index

     o AdaptorServerImpl()
    Initializes this AdaptorServerImpl with the default port (8083).
     o AdaptorServerImpl(int)
    Initializes this AdaptorServerImpl with the specified port.

    Method Index

     o getBufferSize()
    Returns the buffer size of this AdaptorServerImpl.
     o getProtocol()
    Returns the name of the protocol (udp).
     o setBufferSize(Integer)
    Set the buffer size of this AdaptorServerImpl (default 10240).

    Constructors

     o AdaptorServerImpl
     public AdaptorServerImpl()
    
    Initializes this AdaptorServerImpl with the default port (8083).

     o AdaptorServerImpl
     public AdaptorServerImpl(int p)
    
    Initializes this AdaptorServerImpl with the specified port.

    Methods

     o getProtocol
     public String getProtocol()
    
    Returns the name of the protocol (udp).

    Returns:
    the string "udp".
    Overrides:
    getProtocol in class AdaptorServer
     o getBufferSize
     public Integer getBufferSize()
    
    Returns the buffer size of this AdaptorServerImpl.

     o setBufferSize
     public void setBufferSize(Integer s)
    
    Set the buffer size of this AdaptorServerImpl (default 10240).


    All Packages  Class Hierarchy  This Package  Previous  Next  Index