org.jafer.sru.bridge
Class SRUtoSRWBridge

java.lang.Object
  extended by org.jafer.sru.bridge.V1Bridge
      extended by org.jafer.sru.bridge.SRUtoSRWBridge

public class SRUtoSRWBridge
extends V1Bridge

This class processes an SRU operation by calling the prefined SRW instance and returning the result to the caller. The SOAP envelope will be excluded from any responses.


Field Summary
private  SRUtoSRWConfig config
          Stores a reference to configuration information for the bridge
private static java.lang.String DEFAULT_VERSION
          Stores a reference to explain operation name
private static java.lang.String EXPLAIN_OPERATION
          Stores a reference to explain operation name
private static java.lang.String OPERATION_KEY
          Stores a reference to key used to find the requested operation
private  java.net.URL serviceURL
          Stores a reference to the web service URL.
private static java.lang.String VERSION_KEY
          Stores a reference to key used to find the requested operation
 
Constructor Summary
SRUtoSRWBridge(java.lang.String url)
          Creates an instance of the SRUtoSRWBridge specifying the URL to use to find the web service
 
Method Summary
private  OperationBridge createOperationBridgeClass(java.lang.String operation, java.lang.String version)
          Instantiates and returns the bridge class for the specified operation and version
 java.lang.String processRequest(java.util.Map parameters)
          Processes the request given the map of parameters
 
Methods inherited from class org.jafer.sru.bridge.V1Bridge
createExplainDiagnosticResponse, createScanDiagnosticResponse, createSearchDiagnosticResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceURL

private java.net.URL serviceURL
Stores a reference to the web service URL.


OPERATION_KEY

private static final java.lang.String OPERATION_KEY
Stores a reference to key used to find the requested operation

See Also:
Constant Field Values

VERSION_KEY

private static final java.lang.String VERSION_KEY
Stores a reference to key used to find the requested operation

See Also:
Constant Field Values

EXPLAIN_OPERATION

private static final java.lang.String EXPLAIN_OPERATION
Stores a reference to explain operation name

See Also:
Constant Field Values

DEFAULT_VERSION

private static final java.lang.String DEFAULT_VERSION
Stores a reference to explain operation name

See Also:
Constant Field Values

config

private SRUtoSRWConfig config
Stores a reference to configuration information for the bridge

Constructor Detail

SRUtoSRWBridge

public SRUtoSRWBridge(java.lang.String url)
               throws SRUException,
                      java.net.MalformedURLException
Creates an instance of the SRUtoSRWBridge specifying the URL to use to find the web service

Parameters:
url - The url to use with this web service handler
Throws:
SRUException
java.net.MalformedURLException
Method Detail

processRequest

public java.lang.String processRequest(java.util.Map parameters)
Processes the request given the map of parameters

Parameters:
parameters - The paramaters that defines the SRU call in form Key to StringValue
Returns:
The XML response generated by the request

createOperationBridgeClass

private OperationBridge createOperationBridgeClass(java.lang.String operation,
                                                   java.lang.String version)
                                            throws SRUException
Instantiates and returns the bridge class for the specified operation and version

Parameters:
operation - The operation being performed
version - The operations version
Returns:
The intantiated bridge class
Throws:
SRUException