Package jakarta.xml.messaging
Class JAXMServlet
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- jakarta.xml.messaging.JAXMServlet
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,java.io.Serializable
@Deprecated public abstract class JAXMServlet extends jakarta.servlet.http.HttpServletDeprecated.since 6.2, will be removed without replacementThe superclass for components that live in a servlet container that receives JAXM messages. AJAXMServletobject is notified of a message's arrival using the HTTP-SOAP binding.The
JAXMServletclass 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.Note that when a component that receives messages extends
JAXMServlet, it also needs to implement either aReqRespListenerobject or aOnewayListenerobject, depending on whether the component is written for a request-response style of interaction or for a one-way (asynchronous) style of interaction.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected jakarta.xml.soap.MessageFactorymsgFactoryDeprecated.TheMessageFactoryobject that will be used internally to create theSOAPMessageobject to be passed to the methodonMessage.
-
Constructor Summary
Constructors Constructor Description JAXMServlet()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)Deprecated.Internalizes the givenHttpServletRequestobject and writes the reply to the givenHttpServletResponseobject.protected static jakarta.xml.soap.MimeHeadersgetHeaders(jakarta.servlet.http.HttpServletRequest req)Deprecated.Returns aMimeHeadersobject that contains the headers in the givenHttpServletRequestobject.voidinit(jakarta.servlet.ServletConfig servletConfig)Deprecated.Initializes thisJAXMServletobject using the givenServletConfigobject and initializing themsgFactoryfield with a defaultMessageFactoryobject.protected static voidputHeaders(jakarta.xml.soap.MimeHeaders headers, jakarta.servlet.http.HttpServletResponse res)Deprecated.Sets the givenHttpServletResponseobject with the headers in the givenMimeHeadersobject.voidsetMessageFactory(jakarta.xml.soap.MessageFactory msgFactory)Deprecated.Sets thisJAXMServletobject'smsgFactoryfield with the givenMessageFactoryobject.-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
msgFactory
protected jakarta.xml.soap.MessageFactory msgFactory
Deprecated.TheMessageFactoryobject that will be used internally to create theSOAPMessageobject to be passed to the methodonMessage. This new message will contain the data from the message that was posted to the servlet. Using theMessageFactoryobject that is the value for this field to create the new message ensures that the correct profile is used.
-
-
Method Detail
-
init
public void init(jakarta.servlet.ServletConfig servletConfig) throws jakarta.servlet.ServletExceptionDeprecated.Initializes thisJAXMServletobject using the givenServletConfigobject and initializing themsgFactoryfield with a defaultMessageFactoryobject.- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.GenericServlet- Parameters:
servletConfig- theServletConfigobject to be used in initializing thisJAXMServletobject- Throws:
jakarta.servlet.ServletException
-
setMessageFactory
public void setMessageFactory(jakarta.xml.soap.MessageFactory msgFactory)
Deprecated.Sets thisJAXMServletobject'smsgFactoryfield with the givenMessageFactoryobject. AMessageFactoryobject for a particular profile needs to be set before a message is received in order for the message to be successfully internalized.- Parameters:
msgFactory- theMessageFactoryobject that will be used to create theSOAPMessageobject that will be used to internalize the message that was posted to the servlet
-
getHeaders
protected static jakarta.xml.soap.MimeHeaders getHeaders(jakarta.servlet.http.HttpServletRequest req)
Deprecated.Returns aMimeHeadersobject that contains the headers in the givenHttpServletRequestobject.- Parameters:
req- theHttpServletRequestobject that a messaging provider sent to the servlet- Returns:
- a new
MimeHeadersobject containing the headers in the message sent to the servlet
-
putHeaders
protected static void putHeaders(jakarta.xml.soap.MimeHeaders headers, jakarta.servlet.http.HttpServletResponse res)Deprecated.Sets the givenHttpServletResponseobject with the headers in the givenMimeHeadersobject.- Parameters:
headers- theMimeHeadersobject containing the the headers in the message sent to the servletres- theHttpServletResponseobject to which the headers are to be written- See Also:
getHeaders(jakarta.servlet.http.HttpServletRequest)
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, java.io.IOExceptionDeprecated.Internalizes the givenHttpServletRequestobject and writes the reply to the givenHttpServletResponseobject.Note that the value for the
msgFactoryfield will be used to internalize the message. This ensures that the message factory for the correct profile is used.- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Parameters:
req- theHttpServletRequestobject containing the message that was sent to the servletresp- theHttpServletResponseobject to which the response to the message will be written- Throws:
jakarta.servlet.ServletException- if there is a servlet errorjava.io.IOException- if there is an input or output error
-
-