| java.lang.Object org.apache.turbine.services.xmlrpc.TurbineXmlRpc
Method Summary | |
public static void | acceptClient(String address) Add an IP address to the list of accepted clients. | public static void | denyClient(String address) Add an IP address to the list of denied clients. | public static 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 try and authenticate with Parameters: password - The password to try and authenticate with Parameters: methodName - A String with the method name. Parameters: params - A Vector with the parameters. | public static 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. | public static void | get(String serverURL, String sourceLocationProperty, String sourceFileName, String destinationLocationProperty, String destinationFileName) Method to allow a client to get a file from a server. | public static void | get(String serverURL, String username, String password, String sourceLocationProperty, String sourceFileName, String destinationLocationProperty, String destinationFileName) | public static XmlRpcService | getService() Returns system's configured implementation of
XmlRpcService . | public static 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. | public static 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. | public static void | registerHandler(String handlerName, Object handler) Register an object as a handler for the XmlRpc Server part. | public static void | registerHandler(Object handler) Register an object as a the default handler for
the XmlRpc Server part. | public static void | remove(String serverURL, String sourceLocationProperty, String sourceFileName) | public static void | remove(String serverURL, String username, String password, String sourceLocationProperty, String sourceFileName) | public static void | send(String serverURL, String sourceLocationProperty, String sourceFileName, String destinationLocationProperty, String destinationFileName) Method to allow a client to send a file to a server. | public static void | send(String serverURL, String username, String password, String sourceLocationProperty, String sourceFileName, String destinationLocationProperty, String destinationFileName) | public static void | setParanoid(boolean state) Switch client filtering on/off. | public static void | unregisterHandler(String handlerName) Unregister a handler. |
executeAuthenticatedRpc | public static 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 try and authenticate with Parameters: password - The password to try and authenticate with Parameters: methodName - A String with the method name. Parameters: params - A Vector with the parameters. An Object. exception: TurbineException - |
executeRpc | public static 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 | public static void get(String serverURL, String sourceLocationProperty, String sourceFileName, String destinationLocationProperty, String destinationFileName) throws TurbineException(Code) | | Method to allow a client to get a file from a server.
Parameters: serverURL - Parameters: sourceLocationProperty - Parameters: sourceFileName - Parameters: destinationLocationProperty - Parameters: destinationFileName - |
get | public static 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 get a file to a server that
requires authentication
Parameters: serverURL - Parameters: username - Parameters: password - Parameters: sourceLocationProperty - Parameters: sourceFileName - Parameters: destinationLocationProperty - Parameters: destinationFileName - |
handleRequest | public static 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 | public static 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 | public static 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 | public static void registerHandler(Object handler)(Code) | | Register an object as a the default handler for
the XmlRpc Server part.
Parameters: handler - The handler object |
remove | public static 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 - |
remove | public static 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 - |
send | public static 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 - |
send | public static 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 - |
unregisterHandler | public static void unregisterHandler(String handlerName)(Code) | | Unregister a handler.
Parameters: handlerName - The name of the handler to unregister. |
|
|