|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.metamatrix.soap.servlet.MMGetVDBResourceServlet
public class MMGetVDBResourceServlet
Servlet to retrieve WSDL from a VDB
Field Summary | |
---|---|
protected static java.lang.String |
AMP
|
protected static java.lang.String |
DATASERVICE
|
protected static java.lang.String |
EQUALS
|
protected static java.lang.String |
procString
|
protected static java.lang.String[] |
TOKEN_ARRAY
|
protected static java.lang.String |
WSDL_ERROR
|
Constructor Summary | |
---|---|
MMGetVDBResourceServlet()
|
Method Summary | |
---|---|
protected java.lang.String |
buildEndpointSuffixString(java.util.Map parameterMap)
This method is used to filter out the unnecessary httpType request parameter that is used to drive the protocol that should be used on the endpoint URL. |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected java.lang.String |
escapeAttributeEntities(java.lang.String st)
This will take the pre-defined entities in XML 1.0 and convert their character representation to the appropriate entity reference, suitable for XML attributes. |
java.sql.Connection |
getConnection(java.lang.String userid,
java.lang.String password,
java.lang.String vdbName,
java.lang.String vdbVersion,
java.lang.String url)
Get a JDBC connection. |
void |
getResource(javax.servlet.http.HttpServletResponse resp,
java.lang.String procString,
java.lang.String resourcePath,
java.lang.String urlPrefix,
java.lang.String urlSuffix,
java.lang.String serverProperites,
java.lang.String endPointURL,
java.sql.Connection connection)
Execute a call against the VDB to retrieve it's WSDL. |
static java.lang.String |
getScheme(boolean isSecure)
Get scheme value (http/https) for building the url |
void |
init(javax.servlet.ServletConfig config)
|
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 |
Field Detail |
---|
protected static final java.lang.String procString
protected static final java.lang.String DATASERVICE
protected static final java.lang.String[] TOKEN_ARRAY
protected static final java.lang.String WSDL_ERROR
protected static final java.lang.String AMP
protected static final java.lang.String EQUALS
Constructor Detail |
---|
public MMGetVDBResourceServlet()
Method Detail |
---|
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public java.sql.Connection getConnection(java.lang.String userid, java.lang.String password, java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String url) throws java.sql.SQLException, java.lang.ClassNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException
public void getResource(javax.servlet.http.HttpServletResponse resp, java.lang.String procString, java.lang.String resourcePath, java.lang.String urlPrefix, java.lang.String urlSuffix, java.lang.String serverProperites, java.lang.String endPointURL, java.sql.Connection connection) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
protected java.lang.String escapeAttributeEntities(java.lang.String st)
This will take the pre-defined entities in XML 1.0 and convert their character representation to the appropriate entity reference, suitable for XML attributes. It does no conversion for ' because it's not necessary as the outputter writes attributes surrounded by double-quotes.
st
- String
input to escape.
String
with escaped content.protected java.lang.String buildEndpointSuffixString(java.util.Map parameterMap)
parameterMap
- The input Map of parameters
public static java.lang.String getScheme(boolean isSecure)
isSecure
- - boolean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |