public class RpcLoggingInternalServer extends InternalServer
Modifier and Type | Field and Description |
---|---|
private java.io.PrintStream |
out_ |
Constructor and Description |
---|
RpcLoggingInternalServer(HttpServer server,
java.lang.String path,
java.io.PrintStream out)
Constructor based on a given HTTP server.
|
RpcLoggingInternalServer(java.io.PrintStream out)
Constructs a server running with default characteristics
on any free port.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
handleCall(SampXmlRpcHandler handler,
java.lang.String methodName,
java.util.List paramList,
HttpServer.Request request)
Actually passes the XML-RPC method name and parameter list to one
of the registered servers for processing.
|
addHandler, getEndpoint, getHttpServer, getXmlRpcResponse, removeHandler
public RpcLoggingInternalServer(HttpServer server, java.lang.String path, java.io.PrintStream out) throws java.io.IOException
server
- server for processing HTTP requestspath
- path part of server endpoint (starts with "/");out
- output stream for loggingjava.io.IOException
public RpcLoggingInternalServer(java.io.PrintStream out) throws java.io.IOException
out
- output stream for loggingjava.io.IOException
protected java.lang.Object handleCall(SampXmlRpcHandler handler, java.lang.String methodName, java.util.List paramList, HttpServer.Request request) throws java.lang.Exception
InternalServer
handleCall
in class InternalServer
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 originatedjava.lang.Exception