public class B2bCxmlServlet extends B2bServlet
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
boundaryMarker |
private static java.lang.String |
CLASSNAME |
(package private) static java.lang.String |
COPYRIGHT |
private static org.apache.log4j.Logger |
logger |
| Constructor and Description |
|---|
B2bCxmlServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Process a POST.
|
private java.lang.String |
getXmlContent(javax.servlet.http.HttpServletRequest request)
Extracts the cXML request from the HTTP request by stripping off the HTTP
tags.
|
private void |
writeXmlResponse(javax.servlet.ServletOutputStream out,
org.dom4j.Document response)
Writes the response document to the servlet output stream.
|
processRequestdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicestatic final java.lang.String COPYRIGHT
private static final java.lang.String CLASSNAME
private static org.apache.log4j.Logger logger
private static final java.lang.String boundaryMarker
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionHttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)private java.lang.String getXmlContent(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
request - javax.servlet.ServletExceptionprivate void writeXmlResponse(javax.servlet.ServletOutputStream out,
org.dom4j.Document response)
throws java.io.IOException,
javax.servlet.ServletException
out - Output Stream to write the response toresponse - XML responsejava.io.IOExceptionjavax.servlet.ServletException