org.deegree_impl.enterprise.control
Class RPCFactory

java.lang.Object
  extended byorg.deegree_impl.enterprise.control.RPCFactory

public class RPCFactory
extends java.lang.Object

Factory class for creating RPC methodCall and methodResponse objects from their XML representation

Version:
$Revision: 1.6 $ $Date: 2004/03/01 07:45:47 $
Author:
Andreas Poth

Constructor Summary
RPCFactory()
           
 
Method Summary
private static RPCParameter[] createArray(org.w3c.dom.Element array)
          creates an ArrayList object from the passed Element
private static RPCFault createRPCFault(org.w3c.dom.Element fault)
          creates an RPCFault object from the passed Element
private static RPCMember createRPCMember(org.w3c.dom.Element member)
          creates a RPC struture member object from the passed Element
static RPCMethodCall createRPCMethodCall(org.w3c.dom.Document doc)
          creates an instance of RPCMethodCall from the XML document passed
static RPCMethodCall createRPCMethodCall(java.io.Reader reader)
          creates an instance of RPCMethodCall from an XML document that can be accessed through the passed Reader
static RPCMethodResponse createRPCMethodResponse(org.w3c.dom.Document doc)
          creates an instance of RPCMethodResponse from the XML document passed
static RPCMethodResponse createRPCMethodResponse(java.io.Reader reader)
          creates an instance of RPCMethodResponse from an XML document that can be accessed through the passed Reader
static RPCMethodResponse createRPCMethodResponse(RPCParameter[] par)
           
private static RPCParameter createRPCParam(org.w3c.dom.Element param)
          creates a RPCParameter from its XML representation
private static RPCStruct createRPCStruct(org.w3c.dom.Element struct)
          creates a RPC struture object from the passed Element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RPCFactory

public RPCFactory()
Method Detail

createRPCMethodCall

public static RPCMethodCall createRPCMethodCall(java.io.Reader reader)
                                         throws RPCException
creates an instance of RPCMethodCall from an XML document that can be accessed through the passed Reader

Parameters:
reader - reader to access an XML document
Returns:
an RPCMethodCall
Throws:
RPCException

createRPCMethodCall

public static RPCMethodCall createRPCMethodCall(org.w3c.dom.Document doc)
                                         throws RPCException
creates an instance of RPCMethodCall from the XML document passed

Parameters:
doc - XML document containing a RPC method call
Returns:
an RPCMethodCall
Throws:
RPCException

createRPCMethodResponse

public static RPCMethodResponse createRPCMethodResponse(java.io.Reader reader)
                                                 throws RPCException
creates an instance of RPCMethodResponse from an XML document that can be accessed through the passed Reader

Parameters:
reader - reader to access an XML document
Returns:
created RPCMethodResponse
Throws:
RPCException

createRPCMethodResponse

public static RPCMethodResponse createRPCMethodResponse(org.w3c.dom.Document doc)
                                                 throws RPCException
creates an instance of RPCMethodResponse from the XML document passed

Parameters:
doc - XML document containing a RPC method call
Returns:
created RPCMethodResponse
Throws:
RPCException

createRPCMethodResponse

public static RPCMethodResponse createRPCMethodResponse(RPCParameter[] par)
                                                 throws RPCException
Throws:
RPCException

createRPCParam

private static RPCParameter createRPCParam(org.w3c.dom.Element param)
                                    throws RPCException
creates a RPCParameter from its XML representation

Parameters:
param - element containing a RPC param
Returns:
created RPCParameter
Throws:
RPCException

createRPCStruct

private static RPCStruct createRPCStruct(org.w3c.dom.Element struct)
                                  throws RPCException
creates a RPC struture object from the passed Element

Parameters:
struct - element containing a RPC struct
Returns:
created RPCStruct
Throws:
RPCException

createRPCMember

private static RPCMember createRPCMember(org.w3c.dom.Element member)
                                  throws RPCException
creates a RPC struture member object from the passed Element

Parameters:
member - element containing a RPC member
Returns:
created RPCMember
Throws:
RPCException

createArray

private static RPCParameter[] createArray(org.w3c.dom.Element array)
                                   throws RPCException
creates an ArrayList object from the passed Element

Parameters:
array -
Returns:
created ArrayList
Throws:
RPCException

createRPCFault

private static RPCFault createRPCFault(org.w3c.dom.Element fault)
                                throws RPCException
creates an RPCFault object from the passed Element

Parameters:
fault - fault element
Returns:
created RPCFault
Throws:
RPCException