| javax.servlet.http.HttpServlet com.sun.xml.messaging.soap.server.SAAJServlet
All known Subclasses: saaj.receiver.ReceivingServlet, book.receiver.ReceivingServlet,
SAAJServlet | abstract public class SAAJServlet extends HttpServlet (Code) | | The superclass for components that
live in a servlet container that receives SAAJ messages.
A SAAJServlet object is notified of a message's arrival
using the HTTP-SOAP binding.
The SAAJServlet class is a support/utility class and is
provided purely as a convenience. It is not a mandatory component, and
there is no requirement that it be implemented or extended.
|
Field Summary | |
protected SOAPConnection | conn A SOAPConnection for use of the SAAJServlet . | protected MessageFactory | msgFactory The MessageFactory object that will be used internally
to create the SOAPMessage object to be passed to the
method onMessage . |
msgFactory | protected MessageFactory msgFactory(Code) | | The MessageFactory object that will be used internally
to create the SOAPMessage object to be passed to the
method onMessage . This new message will contain the data
from the message that was posted to the servlet.
Based on the incoming message's content type a SOAP 1.1 or 1.2 Message
reply is created. A dynamic messageFactory is created which automatically
figures out the SOAP version.
|
doPost | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code) | | Internalizes the given HttpServletRequest object
and writes the reply to the given HttpServletResponse
object.
Note that the value for the msgFactory field will be used to
internalize the message. This ensures that the message
factory for the correct profile is used.
Parameters: req - the HttpServletRequest object containing themessage that was sent to the servlet Parameters: resp - the HttpServletResponse object to which theresponse to the message will be written throws: ServletException - if there is a servlet error throws: IOException - if there is an input or output error |
getHeaders | protected static MimeHeaders getHeaders(HttpServletRequest req)(Code) | | Returns a MimeHeaders object that contains the headers
in the given HttpServletRequest object.
Parameters: req - the HttpServletRequest object that amessaging provider sent to the servlet a new MimeHeaders object containing the headersin the message sent to the servlet |
init | public void init(ServletConfig servletConfig) throws ServletException(Code) | | Initializes this SAAJServlet object using the given
ServletConfig object and initializing the
msgFactory field with a default
MessageFactory object.
Parameters: servletConfig - the ServletConfig object to beused in initializing this SAAJServlet object |
putHeaders | protected static void putHeaders(MimeHeaders headers, HttpServletResponse res)(Code) | | Sets the given HttpServletResponse object with the
headers in the given MimeHeaders object.
Parameters: headers - the MimeHeaders object containing thethe headers in the message sent to the servlet Parameters: res - the HttpServletResponse object to which theheaders are to be written See Also: SAAJServlet.getHeaders |
setMessageFactory | public void setMessageFactory(MessageFactory msgFactory)(Code) | | Sets this SAAJServlet object's msgFactory
field with the given MessageFactory object.
A MessageFactory object for a particular profile needs to
be set before a message is received in order for the message to be
successfully internalized.
Parameters: msgFactory - the MessageFactory object that willbe used to create the SOAPMessage object thatwill be used to internalize the message that was posted tothe servlet |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|