| org.apache.turbine.services.xmlrpc.XmlRpcService
All known Subclasses: org.apache.turbine.services.xmlrpc.TurbineXmlRpcService,
Method Summary | |
void | acceptClient(String address) Add an IP address to the list of accepted clients. | void | denyClient(String address) Add an IP address to the list of denied clients. | Object | executeAuthenticatedRpc(URL url, String username, String password, String methodName, Vector params) Execute a remote procedure call taht requires
authentication.
Parameters: url - A URL. Parameters: username - The username to authenticate with Parameters: password - The password to authenticate with Parameters: methodName - A String with the method name. Parameters: params - A Vector with the parameters. | Object | executeRpc(URL url, String methodName, Vector params) Execute a remote procedure call.
Parameters: url - A URL. Parameters: methodName - A String with the method name. Parameters: params - A Vector with the parameters. | void | get(String serverURL, String sourceLocationProperty, String sourceFileName, String destinationLocationProperty, String destinationFileName) Method to allow a client to send a file to a server. | void | get(String serverURL, String username, String password, String sourceLocationProperty, String sourceFileName, String destinationLocationProperty, String destinationFileName) | byte[] | handleRequest(InputStream is) Handle an XML-RPC request using the encapsulated server.
You can use this method to handle a request from within
a Turbine screen.
Parameters: is - the stream to read request data from. | byte[] | handleRequest(InputStream is, String user, String password) Handle an XML-RPC request using the encapsulated server with user
authentication.
You can use this method to handle a request from within
a Turbine screen.
Note that the handlers need to implement AuthenticatedXmlRpcHandler
interface to access the authentication infomration.
Parameters: is - the stream to read request data from. Parameters: user - the user that is making the request. Parameters: password - the password given by user. | void | registerHandler(String handlerName, Object handler) Register an object as a handler for the XmlRpc Server part. | void | registerHandler(Object handler) Register an object as a the default handler for
the XmlRpc Server part. | void | remove(String serverURL, String sourceLocationProperty, String sourceFileName) | void | remove(String serverURL, String username, String password, String sourceLocationProperty, String sourceFileName) | void | send(String serverURL, String sourceLocationProperty, String sourceFileName, String destinationLocationProperty, String destinationFileName) Method to allow a client to send a file to a server. | void | send(String serverURL, String username, String password, String sourceLocationProperty, String sourceFileName, String destinationLocationProperty, String destinationFileName) | void | setParanoid(boolean state) Switch client filtering on/off. | void | unregisterHandler(String handlerName) Unregister a handler. |
SERVICE_NAME | String SERVICE_NAME(Code) | | TurbineXmlRpcService.
|
executeAuthenticatedRpc | Object executeAuthenticatedRpc(URL url, String username, String password, String methodName, Vector params) throws TurbineException(Code) | | Execute a remote procedure call taht requires
authentication.
Parameters: url - A URL. Parameters: username - The username to authenticate with Parameters: password - The password to authenticate with Parameters: methodName - A String with the method name. Parameters: params - A Vector with the parameters. An Object. exception: TurbineException - |
executeRpc | Object executeRpc(URL url, String methodName, Vector params) throws TurbineException(Code) | | Execute a remote procedure call.
Parameters: url - A URL. Parameters: methodName - A String with the method name. Parameters: params - A Vector with the parameters. An Object. exception: TurbineException - |
get | void get(String serverURL, String sourceLocationProperty, String sourceFileName, String destinationLocationProperty, String destinationFileName) throws TurbineException(Code) | | Method to allow a client to send a file to a server.
Parameters: serverURL - Parameters: sourceLocationProperty - Parameters: sourceFileName - Parameters: destinationLocationProperty - Parameters: destinationFileName - throws: TurbineException - |
get | void get(String serverURL, String username, String password, String sourceLocationProperty, String sourceFileName, String destinationLocationProperty, String destinationFileName) throws TurbineException(Code) | | Method to allow a client to send a file to a server that
requires authentication
Parameters: serverURL - Parameters: username - Parameters: password - Parameters: sourceLocationProperty - Parameters: sourceFileName - Parameters: destinationLocationProperty - Parameters: destinationFileName - throws: TurbineException - |
handleRequest | byte[] handleRequest(InputStream is)(Code) | | Handle an XML-RPC request using the encapsulated server.
You can use this method to handle a request from within
a Turbine screen.
Parameters: is - the stream to read request data from. the response body that needs to be sent to the client. |
handleRequest | byte[] handleRequest(InputStream is, String user, String password)(Code) | | Handle an XML-RPC request using the encapsulated server with user
authentication.
You can use this method to handle a request from within
a Turbine screen.
Note that the handlers need to implement AuthenticatedXmlRpcHandler
interface to access the authentication infomration.
Parameters: is - the stream to read request data from. Parameters: user - the user that is making the request. Parameters: password - the password given by user. the response body that needs to be sent to the client. |
registerHandler | void registerHandler(String handlerName, Object handler)(Code) | | Register an object as a handler for the XmlRpc Server part.
Parameters: handlerName - The name under which we wantto register the service Parameters: handler - The handler object |
registerHandler | void registerHandler(Object handler)(Code) | | Register an object as a the default handler for
the XmlRpc Server part.
Parameters: handler - The handler object |
remove | void remove(String serverURL, String sourceLocationProperty, String sourceFileName) throws TurbineException(Code) | | Method to allow a client to remove a file from
the server
Parameters: serverURL - Parameters: sourceLocationProperty - Parameters: sourceFileName - throws: TurbineException - |
remove | void remove(String serverURL, String username, String password, String sourceLocationProperty, String sourceFileName) throws TurbineException(Code) | | Method to allow a client to remove a file from
a server that requires authentication
Parameters: serverURL - Parameters: username - Parameters: password - Parameters: sourceLocationProperty - Parameters: sourceFileName - throws: TurbineException - |
send | void send(String serverURL, String sourceLocationProperty, String sourceFileName, String destinationLocationProperty, String destinationFileName) throws TurbineException(Code) | | Method to allow a client to send a file to a server.
Parameters: serverURL - Parameters: sourceLocationProperty - Parameters: sourceFileName - Parameters: destinationLocationProperty - Parameters: destinationFileName - throws: TurbineException - |
send | void send(String serverURL, String username, String password, String sourceLocationProperty, String sourceFileName, String destinationLocationProperty, String destinationFileName) throws TurbineException(Code) | | Method to allow a client to send a file to a server that
requires authentication
Parameters: serverURL - Parameters: username - Parameters: password - Parameters: sourceLocationProperty - Parameters: sourceFileName - Parameters: destinationLocationProperty - Parameters: destinationFileName - throws: TurbineException - |
unregisterHandler | void unregisterHandler(String handlerName)(Code) | | Unregister a handler.
Parameters: handlerName - The name of the handler to unregister. |
|
|