com.jmrosengard.xmlbroker.http
Class HttpConnector
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--com.jmrosengard.xmlbroker.http.HttpConnector
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- Direct Known Subclasses:
- RequestMultiplexer
- abstract class HttpConnector
- extends javax.servlet.http.HttpServlet
SOAP server connector to the HTTP protocol.
This implementation is based upon the SOAP-HTTP binding specifications (SOAP 1.1)
and the RFC 2376 and covers:
- the request/response media-type
- the request/response HTTP method
- the SOAP-specific HTTP header field
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.http.HttpServlet |
HEADER_IFMODSINCE, HEADER_LASTMOD, LSTRING_FILE, lStrings, METHOD_DELETE, METHOD_GET, METHOD_HEAD, METHOD_OPTIONS, METHOD_POST, METHOD_PUT, METHOD_TRACE |
Fields inherited from class javax.servlet.GenericServlet |
config |
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
The HTTP GET method is not used in the
SOAP-HTTP binding. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Set the HTTP POST response as a SOAP response
and delegates the request-specific logic to
the doSoapPost() hook method--according
to the Template Method Pattern (see
[Gamma, E. |
abstract void |
doSoapPost(java.lang.String targetUri,
java.io.BufferedReader inBuf,
java.io.PrintWriter outBuf)
This hook method must be overriden by
all subclasses to provide a request-specific
implementation. |
void |
init()
Initialise XMLbroker server |
Methods inherited from class javax.servlet.http.HttpServlet |
, doDelete, doHead, doOptions, doPut, doTrace, getAllDeclaredMethods, getLastModified, maybeSetLastModified, 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, registerNatives, toString, wait, wait, wait |
SOAP_MEDIA_TYPE
public static final java.lang.String SOAP_MEDIA_TYPE
SOAP_HTTP_HEADER_SOAPACTION
public static final java.lang.String SOAP_HTTP_HEADER_SOAPACTION
SOAP_HTTP_METHOD
public static final java.lang.String SOAP_HTTP_METHOD
xb_props
private java.util.ResourceBundle xb_props
HttpConnector
HttpConnector()
doPost
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
- Set the HTTP POST response as a SOAP response
and delegates the request-specific logic to
the doSoapPost() hook method--according
to the Template Method Pattern (see
[Gamma, E. et al. 1995]).
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
doSoapPost
public abstract void doSoapPost(java.lang.String targetUri,
java.io.BufferedReader inBuf,
java.io.PrintWriter outBuf)
throws javax.servlet.ServletException,
java.io.IOException,
SoapReqException
- This hook method must be overriden by
all subclasses to provide a request-specific
implementation.
init
public void init()
- Initialise XMLbroker server
- Overrides:
init
in class javax.servlet.GenericServlet
doGet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException,
javax.servlet.ServletException
- The HTTP GET method is not used in the
SOAP-HTTP binding. doGet() therefore provides
a welcome message--only intended to test whether
XMLbroker is running, with a simple browser.
- Overrides:
doGet
in class javax.servlet.http.HttpServlet