com.metamatrix.soap.service
Class DataServiceWebServiceImpl

java.lang.Object
  extended by com.metamatrix.soap.service.DataServiceWebServiceImpl

public class DataServiceWebServiceImpl
extends java.lang.Object

This class is the main implementation of the MetaMatrix Data Service feature. It is the 'router' that marshalls all Data Service web service requests to the MetaMatrix Server and returns the results in the return web service response. This class represents a 'virtual' web service because it has no set web service interface. An instance of this class will serve all Data Services that are deployed to all VDB's of the MetaMatrix Server.


Field Summary
static java.lang.String ERROR_PREFIX
           
static java.lang.String PASSWORD
           
static java.lang.String SOAP_11_STANDARD_CLIENT_FAULT_CODE
           
static java.lang.String SOAP_11_STANDARD_SERVER_FAULT_CODE
           
static java.lang.String USER_NAME
           
 
Constructor Summary
DataServiceWebServiceImpl()
           
DataServiceWebServiceImpl(javax.xml.soap.MessageFactory factory, ConnectionSource connectionSource)
           
 
Method Summary
protected  org.apache.axiom.om.OMElement createSOAPFaultMessage(java.lang.Exception e, java.lang.String faultMessageString, java.lang.String faultCode)
           
 org.apache.axiom.om.OMElement executeDataService(org.apache.axiom.om.OMElement element)
           
protected  java.util.Properties getAuthenticationProperties(java.lang.String username, java.lang.String password)
          This method simply puts the given parameters into a Properties object keyed correctly for our JDBC driver and returns that Properties object.
protected  java.sql.Connection getConnection(DataServiceInfo info)
          Establishes a connection to a MetaMatrixServer given the incoming WASP SOAPMessage instance.
protected  DataServiceInfo getDataServiceInfo(org.apache.axiom.om.OMElement element)
           
protected  int getQueryTimeout()
          Check for a query timeout as a System property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOAP_11_STANDARD_CLIENT_FAULT_CODE

public static final java.lang.String SOAP_11_STANDARD_CLIENT_FAULT_CODE
See Also:
Constant Field Values

SOAP_11_STANDARD_SERVER_FAULT_CODE

public static final java.lang.String SOAP_11_STANDARD_SERVER_FAULT_CODE
See Also:
Constant Field Values

USER_NAME

public static final java.lang.String USER_NAME
See Also:
Constant Field Values

PASSWORD

public static final java.lang.String PASSWORD
See Also:
Constant Field Values

ERROR_PREFIX

public static final java.lang.String ERROR_PREFIX
See Also:
Constant Field Values
Constructor Detail

DataServiceWebServiceImpl

public DataServiceWebServiceImpl()

DataServiceWebServiceImpl

public DataServiceWebServiceImpl(javax.xml.soap.MessageFactory factory,
                                 ConnectionSource connectionSource)
Method Detail

executeDataService

public org.apache.axiom.om.OMElement executeDataService(org.apache.axiom.om.OMElement element)
                                                 throws org.apache.axis2.AxisFault
Parameters:
element -
Returns:
Throws:
org.apache.axis2.AxisFault

getConnection

protected java.sql.Connection getConnection(DataServiceInfo info)
                                     throws javax.xml.soap.SOAPException,
                                            org.apache.axis2.AxisFault
Establishes a connection to a MetaMatrixServer given the incoming WASP SOAPMessage instance.

Parameters:
message - the incoming SOAP request message that should contain all server login information
Throws:
javax.xml.soap.SOAPException - if an error occurs
org.apache.axis2.AxisFault

getAuthenticationProperties

protected java.util.Properties getAuthenticationProperties(java.lang.String username,
                                                           java.lang.String password)
This method simply puts the given parameters into a Properties object keyed correctly for our JDBC driver and returns that Properties object.

Parameters:
username -
password -
Returns:

getDataServiceInfo

protected DataServiceInfo getDataServiceInfo(org.apache.axiom.om.OMElement element)
                                      throws SOAPProcessingException
Throws:
SOAPProcessingException

createSOAPFaultMessage

protected org.apache.axiom.om.OMElement createSOAPFaultMessage(java.lang.Exception e,
                                                               java.lang.String faultMessageString,
                                                               java.lang.String faultCode)
                                                        throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

getQueryTimeout

protected int getQueryTimeout()
Check for a query timeout as a System property. If we don't find one, we will default to zero (no timeout).

Returns:
timeout


Copyright © 2009. All Rights Reserved.