com.oakgrovesystems.reactor.client
Class XMLReactorProxy

java.lang.Object
  |
  +--com.oakgrovesystems.reactor.client.AbstractReactorProxy
        |
        +--com.oakgrovesystems.reactor.client.XMLReactorProxy
All Implemented Interfaces:
ReactorProxy

public class XMLReactorProxy
extends AbstractReactorProxy

XMLReactorProxy is a convenience class that programmers can use to make requests to Reactor server. This class uses XML to talk to Reactor server via http.


Field Summary
protected  java.net.URL url
          URL of front desk of Reactor server
 
Fields inherited from class com.oakgrovesystems.reactor.client.AbstractReactorProxy
authToken
 
Constructor Summary
XMLReactorProxy()
          Creates a new proxy
XMLReactorProxy(java.lang.String authToken)
          Creates a new proxy and sets the authentication token.
XMLReactorProxy(java.net.URL url)
          Creates a new server and sets the url.
XMLReactorProxy(java.net.URL url, java.lang.String authToken)
          Creates a new proxy and sets the url and authentication token.
 
Method Summary
 com.oakgrovesystems.reactor.ReactorResponse sendRequest(com.oakgrovesystems.reactor.requests.ReactorRequest request)
          Sends the request to Reactor server using XML and HTTP.
 void setURL(java.net.URL url)
          Sets the url.
 
Methods inherited from class com.oakgrovesystems.reactor.client.AbstractReactorProxy
addStatusToProcess, addStatusToProcess, addStatusToProcess, cloneInstance, cloneInstance, cloneInstance, cloneInstance, cloneInstance, cloneInstance, createObjects, createObjects, delete, delete, delete, delete, get, get, get, get, getAuthToken, handleRequest, lock, lock, lock, lock, lock, lock, lock, lock, login, logout, query, removeStatusFromProcess, removeStatusFromProcess, removeStatusFromProcess, setACLOnObject, setACLOnObject, setAuthToken, setObjects, setObjects, startProcess, startProcess, startProcess, stopProcess, stopProcess, stopProcess, unlock, unlock, unlock, unlock, unlock, unlock, unlock, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

protected java.net.URL url
URL of front desk of Reactor server

Constructor Detail

XMLReactorProxy

public XMLReactorProxy()
Creates a new proxy


XMLReactorProxy

public XMLReactorProxy(java.net.URL url)
Creates a new server and sets the url.

Parameters:
url - the URL of FrontDesk servlet of Reactor server.

XMLReactorProxy

public XMLReactorProxy(java.lang.String authToken)
Creates a new proxy and sets the authentication token. This authentication token will be used as a credential for making requests to Reactor server.

Parameters:
authToken - The authentication token that will be used as credential for making requests.

XMLReactorProxy

public XMLReactorProxy(java.net.URL url,
                       java.lang.String authToken)
Creates a new proxy and sets the url and authentication token.

Parameters:
url - the URL of FrontDesk servlet of Reactor server.
authToken - The authentication token that will be used as credential for making requests.
Method Detail

setURL

public void setURL(java.net.URL url)
Sets the url. Proxy will use this url to talk to Reactor server


sendRequest

public com.oakgrovesystems.reactor.ReactorResponse sendRequest(com.oakgrovesystems.reactor.requests.ReactorRequest request)
                                                        throws ReactorProxyException
Sends the request to Reactor server using XML and HTTP.

Specified by:
sendRequest in class AbstractReactorProxy
Parameters:
request - The request to be sent to the server.
Returns:
the response from the server.
Throws:
ReactorProxyException - If parameter request is null or error occurs while talking to server.


Copyright (c) 1999-2004 Oak Grove Systems. All Rights Reserved.