com.metamatrix.soap.util
Class EndpointUriTranslatorStrategyImpl

java.lang.Object
  extended by com.metamatrix.soap.util.EndpointUriTranslatorStrategyImpl

public class EndpointUriTranslatorStrategyImpl
extends java.lang.Object

This strategy will translate the end point url into the MetaMatrix Server connection properties.


Constructor Summary
EndpointUriTranslatorStrategyImpl()
           
 
Method Summary
protected static java.lang.String createJdbcUrl(java.lang.String serverUrl, java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String additionalProps)
          Create MM JDBC url value.
static DataServiceInfo getDataServiceInfo()
           This implemementation of the Uri translator will get the proper JDBC server url from the extra path information in the endpoint URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointUriTranslatorStrategyImpl

public EndpointUriTranslatorStrategyImpl()
Method Detail

getDataServiceInfo

public static DataServiceInfo getDataServiceInfo()
                                          throws SOAPProcessingException

This implemementation of the Uri translator will get the proper JDBC server url from the extra path information in the endpoint URL. NOTE that this method MUST be called from within the SOAP request processing thread that the URI endpoint is to be called from.

The prototype of the endpoint URL is as follows:

       
        <protocol>://<Soap Server Host>:<Soap Server Port>/<Data Service endpoint path>/<MM Server Host Name>/<MM Server Host Port>/<MM target VDB Name>/<MM target VDB version (optional)>
        
 

Throws:
SOAPProcessingException

createJdbcUrl

protected static java.lang.String createJdbcUrl(java.lang.String serverUrl,
                                                java.lang.String vdbName,
                                                java.lang.String vdbVersion,
                                                java.lang.String additionalProps)
                                         throws SOAPProcessingException
Create MM JDBC url value. NOTE: Need to make sure the url is URL decoded. URL encoded urls will prevent us from connecting to the VDB.

Parameters:
serverUrl -
vdbName -
vdbVersion -
additionalProps -
Returns:
Throws:
javax.xml.soap.SOAPException
SOAPProcessingException


Copyright © 2009. All Rights Reserved.