public class XmlLoggingInternalServer extends InternalServer
Modifier and Type | Class and Description |
---|---|
private class |
XmlLoggingInternalServer.LoggingResponse |
Modifier and Type | Field and Description |
---|---|
private java.io.PrintStream |
out_ |
Constructor and Description |
---|
XmlLoggingInternalServer(HttpServer server,
java.lang.String path,
java.io.PrintStream out)
Constructor based on a given HTTP server.
|
XmlLoggingInternalServer(java.io.PrintStream out)
Constructs a server running with default characteristics
on any free port.
|
Modifier and Type | Method and Description |
---|---|
protected HttpServer.Response |
getXmlRpcResponse(HttpServer.Request request)
Returns the HTTP response object given an incoming XML-RPC POST request.
|
addHandler, getEndpoint, getHttpServer, handleCall, removeHandler
public XmlLoggingInternalServer(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 logggingjava.io.IOException
public XmlLoggingInternalServer(java.io.PrintStream out) throws java.io.IOException
out
- output stream for logggingjava.io.IOException
protected HttpServer.Response getXmlRpcResponse(HttpServer.Request request)
InternalServer
getXmlRpcResponse
in class InternalServer
request
- POSTed HTTP request