deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.enterprise.control
Class RPCFactory

java.lang.Object
  extended by org.deegree.enterprise.control.RPCFactory

public class RPCFactory
extends Object

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

Version:
$Revision: 18195 $ $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $

Constructor Summary
RPCFactory()
           
 
Method Summary
static RPCMethodCall createRPCMethodCall(Document doc)
          Creates an instance of RPCMethodCall from the given XML document.
static RPCMethodCall createRPCMethodCall(Reader reader)
          Creates an instance of RPCMethodCall from an XML document that can be accessed through the passed Reader.
static RPCMethodResponse createRPCMethodResponse(Document doc)
          Creates an instance of RPCMethodResponse from the given XML document.
static RPCMethodResponse createRPCMethodResponse(Reader reader)
          Creates an instance of RPCMethodResponse from an XML document that can be accessed through the passed Reader.
static RPCMethodResponse createRPCMethodResponse(RPCParameter[] par)
          Creates an RPCMethodResponse from the given parameters.
 
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(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(Document doc)
                                         throws RPCException
Creates an instance of RPCMethodCall from the given XML document.

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

createRPCMethodResponse

public static RPCMethodResponse createRPCMethodResponse(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(Document doc)
                                                 throws RPCException
Creates an instance of RPCMethodResponse from the given XML document.

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

createRPCMethodResponse

public static RPCMethodResponse createRPCMethodResponse(RPCParameter[] par)
Creates an RPCMethodResponse from the given parameters.

Parameters:
par -
Returns:
corresponding RPCMethodResponse object

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org