org.fcrepo.server.storage.service
Class ServiceMapper

java.lang.Object
  extended by org.fcrepo.server.storage.service.ServiceMapper

public class ServiceMapper
extends Object

Controller class for parsing the various kinds of inline metadata datastreams found in service objects. The intent of this class is to initiate parsing of these datastreams so that information about a service can be instantiated in Fedora.

Version:
$Id$
Author:
Sandy Payette

Constructor Summary
ServiceMapper(String behaviorObjectPID)
           
 
Method Summary
 DeploymentDSBindSpec getDSInputSpec(InputSource dsInputSpecSource)
           
 MethodDefOperationBind[] getMethodDefBindings(InputSource wsdlSource, InputSource methodMapSource)
          getMethodDefBindings: creates an array of operation bindings in the form of an array of Fedora MethodDefOperationBind objects.
 MethodDef[] getMethodDefs(InputSource methodMapSource)
          getMethodDefs: creates an array of abstract method definitions in the form of an array of Fedora MethodDef objects.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceMapper

public ServiceMapper(String behaviorObjectPID)
Method Detail

main

public static void main(String[] args)

getMethodDefs

public MethodDef[] getMethodDefs(InputSource methodMapSource)
                          throws ObjectIntegrityException,
                                 RepositoryConfigurationException,
                                 GeneralException
getMethodDefs: creates an array of abstract method definitions in the form of an array of Fedora MethodDef objects. The creation of a MethodDef object requires information from a Fedora Method Map.

Parameters:
methodMapSource - : Fedora Method Map definition for methods
Returns:
MethodDef[] : an array of abstract method definitions
Throws:
ObjectIntegrityException
RepositoryConfigurationException
GeneralException

getMethodDefBindings

public MethodDefOperationBind[] getMethodDefBindings(InputSource wsdlSource,
                                                     InputSource methodMapSource)
                                              throws ObjectIntegrityException,
                                                     RepositoryConfigurationException,
                                                     GeneralException
getMethodDefBindings: creates an array of operation bindings in the form of an array of Fedora MethodDefOperationBind objects. The creation of a MethodDefOperationBind object requires information from a WSDL service definition and a related Fedora Method Map. The Fedora Method Map is merged with the WSDL to provide a Fedora-specific view of the WSDL.

Parameters:
wsdlSource - : WSDL service definition for methods
methodMapSource - : Fedora Method Map definition for methods
Returns:
MethodDefOperationBind[] : an array of method bindings
Throws:
ObjectIntegrityException
RepositoryConfigurationException
GeneralException

getDSInputSpec

public DeploymentDSBindSpec getDSInputSpec(InputSource dsInputSpecSource)
                                    throws ObjectIntegrityException,
                                           RepositoryConfigurationException,
                                           GeneralException
Throws:
ObjectIntegrityException
RepositoryConfigurationException
GeneralException


Copyright © 2011 DuraSpace. All Rights Reserved.