public class UdpRpcDatagramHandler extends DatagramSessionHandler
Receives RPC requests via a datagram and passes the request to the registered RPC server.
| Constructor and Description |
|---|
UdpRpcDatagramHandler(java.lang.String name,
java.lang.String protocol,
RpcProcessor rpcServer,
NetworkServer server,
java.net.InetAddress addr,
int port,
int maxSize)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected RpcProcessor |
getRpcProcessor()
Return the RPC server used to process the requests
|
protected boolean |
processDatagram(java.net.DatagramPacket pkt)
Process the RPC datagram
|
allocateBuffer, clearShutdown, closeSessionHandler, getBindAddres, getDatagramSocket, getHandlerName, getMaximumDatagramSize, getNextSessionId, getPort, getProtocolName, hasBindAddress, hasDebug, hasShutdown, initializeSessionHandler, run, sendDatagram, setDebug, setMaximumDatagramSize, setPortpublic UdpRpcDatagramHandler(java.lang.String name,
java.lang.String protocol,
RpcProcessor rpcServer,
NetworkServer server,
java.net.InetAddress addr,
int port,
int maxSize)
name - Stringprotocol - StringrpcServer - RpcProcessorserver - NetworkServeraddr - InetAddressport - intmaxSize - intprotected final RpcProcessor getRpcProcessor()
protected boolean processDatagram(java.net.DatagramPacket pkt)
throws java.io.IOException
processDatagram in class DatagramSessionHandlerpkt - DatagramPacketjava.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.