public class UdpRpcDatagramHandler extends DatagramSessionHandler
Receives RPC requests via a datagram and passes the request to the registered RPC server.
Constructor and Description |
---|
UdpRpcDatagramHandler(String name,
String protocol,
RpcProcessor rpcServer,
NetworkServer server,
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(DatagramPacket pkt)
Process the RPC datagram
|
allocateBuffer, clearShutdown, closeSessionHandler, getBindAddres, getDatagramSocket, getHandlerName, getMaximumDatagramSize, getNextSessionId, getPort, getProtocolName, hasBindAddress, hasDebug, hasShutdown, initializeSessionHandler, run, sendDatagram, setDebug, setMaximumDatagramSize, setPort
public UdpRpcDatagramHandler(String name, String protocol, RpcProcessor rpcServer, NetworkServer server, InetAddress addr, int port, int maxSize)
name
- Stringprotocol
- StringrpcServer
- RpcProcessorserver
- NetworkServeraddr
- InetAddressport
- intmaxSize
- intprotected final RpcProcessor getRpcProcessor()
protected boolean processDatagram(DatagramPacket pkt) throws IOException
processDatagram
in class DatagramSessionHandler
pkt
- DatagramPacketIOException
Copyright © 2005–2018 Alfresco Software. All rights reserved.