Class RpcLoggingInternalServer
java.lang.Object
org.astrogrid.samp.xmlrpc.internal.InternalServer
org.astrogrid.samp.xmlrpc.internal.RpcLoggingInternalServer
- All Implemented Interfaces:
SampXmlRpcServer
InternalServer subclass which additionally logs all XML-RPC calls/responses
to an output stream.
- Since:
- 2 Dec 2008
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a server running with default characteristics on any free port.RpcLoggingInternalServer
(HttpServer server, String path, PrintStream out) Constructor based on a given HTTP server. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
handleCall
(SampXmlRpcHandler handler, String methodName, List paramList, HttpServer.Request request) Actually passes the XML-RPC method name and parameter list to one of the registered servers for processing.Methods inherited from class org.astrogrid.samp.xmlrpc.internal.InternalServer
addHandler, getEndpoint, getFaultBytes, getHttpServer, getResultBytes, getXmlRpcResponse, removeHandler
-
Constructor Details
-
RpcLoggingInternalServer
Constructor based on a given HTTP server. It is the caller's responsibility to configure and start the HttpServer.- Parameters:
server
- server for processing HTTP requestspath
- path part of server endpoint (starts with "/");out
- output stream for logging- Throws:
IOException
-
RpcLoggingInternalServer
Constructs a server running with default characteristics on any free port. The server is started as a daemon thread.- Parameters:
out
- output stream for logging- Throws:
IOException
-
-
Method Details
-
handleCall
protected Object handleCall(SampXmlRpcHandler handler, String methodName, List paramList, HttpServer.Request request) throws Exception Description copied from class:InternalServer
Actually passes the XML-RPC method name and parameter list to one of the registered servers for processing.- Overrides:
handleCall
in classInternalServer
- Parameters:
handler
- handler which has declared it can handle the named methodmethodName
- XML-RPC method nameparamList
- list of parameters to XML-RPC callrequest
- HTTP request from which this call originated- Throws:
Exception
-