ByteArrayOutputStream ostream, istream;
}
private class LocalServer extends XmlRpcStreamServer {
public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
XmlRpcServer server = ((XmlRpcLocalClientConfig) pRequest.getConfig()).getXmlRpcServer();
return server.execute(pRequest);
}
protected InputStream newInputStream(XmlRpcStreamRequestConfig pConfig, Object pConnection) throws IOException {
LocalStreamConnection lsc = (LocalStreamConnection) pConnection;
return new ByteArrayInputStream(lsc.ostream.toByteArray());
}