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.
|
processRequest
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
static 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.HttpServlet
javax.servlet.ServletException
java.io.IOException
HttpServlet.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.ServletException
private 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.IOException
javax.servlet.ServletException