com.metamatrix.soap.servlet
Class MMGetWSDLServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.metamatrix.soap.servlet.MMGetVDBResourceServlet
              extended by com.metamatrix.soap.servlet.MMGetWSDLServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
MMDiscoverWSDLServlet

public class MMGetWSDLServlet
extends MMGetVDBResourceServlet

Servlet to retrieve WSDL from a VDB using servlet context values specified in the web.xml.

Since:
5.6
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.metamatrix.soap.servlet.MMGetVDBResourceServlet
AMP, DATASERVICE, EQUALS, procString, TOKEN_ARRAY, WSDL_ERROR
 
Constructor Summary
MMGetWSDLServlet()
           
 
Method Summary
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
static java.lang.String getVdbName(java.lang.String path)
          This will derive the vdb name from the path of the URL used to obtain the VDB resource.
static java.lang.String getVdbVersion(java.lang.String path)
          This will derive the vdb version from the path of the URL used to obtain the VDB resource.
 void init(javax.servlet.ServletConfig config)
           
 
Methods inherited from class com.metamatrix.soap.servlet.MMGetVDBResourceServlet
buildEndpointSuffixString, doGet, escapeAttributeEntities, getConnection, getResource, getScheme
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMGetWSDLServlet

public MMGetWSDLServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class MMGetVDBResourceServlet
Throws:
javax.servlet.ServletException

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse resp)
            throws javax.servlet.ServletException,
                   java.io.IOException
Overrides:
doPost in class MMGetVDBResourceServlet
Throws:
javax.servlet.ServletException
java.io.IOException
Since:
5.6
See Also:
HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

getVdbName

public static java.lang.String getVdbName(java.lang.String path)
This will derive the vdb name from the path of the URL used to obtain the VDB resource. The format of the path is: wsdl/vdbName/vdbVersion

Parameters:
path - - path from the URL used to obtain the VDB resource.
Returns:
vdbName
Since:
5.6

getVdbVersion

public static java.lang.String getVdbVersion(java.lang.String path)
This will derive the vdb version from the path of the URL used to obtain the VDB resource. The version is not required. If it is not present, the latest version will be assumed. The format of the path is: wsdl/vdbName/vdbVersion

Parameters:
path - - path from the URL used to obtain the VDB resource.
Returns:
vdbVersion
Since:
5.6


Copyright © 2009. All Rights Reserved.