|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xmlrpc.XmlRpcWorker
public class XmlRpcWorker
Tie together the XmlRequestProcessor and XmlResponseProcessor to handle a request serially in a single thread.
XmlRpcServer| Field Summary | |
|---|---|
protected XmlRpcHandlerMapping |
handlerMapping
|
protected XmlRpcRequestProcessor |
requestProcessor
|
protected XmlRpcResponseProcessor |
responseProcessor
|
| Constructor Summary | |
|---|---|
XmlRpcWorker(XmlRpcHandlerMapping handlerMapping)
Create a new instance that will use the specified mapping. |
|
| Method Summary | |
|---|---|
protected XmlRpcContext |
defaultContext(java.lang.String user,
java.lang.String password)
Factory method to return a default context object for the execute() method. |
byte[] |
execute(java.io.InputStream is,
java.lang.String user,
java.lang.String password)
Decode, process and encode the response or exception for an XML-RPC request. |
byte[] |
execute(java.io.InputStream is,
XmlRpcContext context)
Decode, process and encode the response or exception for an XML-RPC request. |
protected static java.lang.Object |
invokeHandler(java.lang.Object handler,
XmlRpcServerRequest request,
XmlRpcContext context)
Pass the specified request to the handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XmlRpcRequestProcessor requestProcessor
protected XmlRpcResponseProcessor responseProcessor
protected XmlRpcHandlerMapping handlerMapping
| Constructor Detail |
|---|
public XmlRpcWorker(XmlRpcHandlerMapping handlerMapping)
| Method Detail |
|---|
protected static java.lang.Object invokeHandler(java.lang.Object handler,
XmlRpcServerRequest request,
XmlRpcContext context)
throws java.lang.Exception
XmlRpcHandler or
AuthenticatedXmlRpcHandler.
handler - the handler to call.request - the request information to use.context - the context information to use.
java.lang.ClassCastException - if the handler is not of an appropriate type.
java.lang.NullPointerException - if the handler is null.
java.lang.Exception - if the handler throws an exception.
public byte[] execute(java.io.InputStream is,
java.lang.String user,
java.lang.String password)
public byte[] execute(java.io.InputStream is,
XmlRpcContext context)
is - the InputStream to read the request from.context - the context for the request (may be null).
ParseFailed - if the request could not be parsed.
AuthenticationFailed - if the handler for the
specific method required authentication and insufficient credentials were
supplied.
protected XmlRpcContext defaultContext(java.lang.String user,
java.lang.String password)
user - the username of the user making the request.password - the password of the user making the request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||