Class SOAPReceiver
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- com.sun.identity.liberty.ws.soapbinding.SOAPReceiver
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class SOAPReceiver extends jakarta.servlet.http.HttpServletTheSOAPReceiverclass defines a SOAP Receiver which supports SOAP over HTTP binding. It receives requests sent fromClient. During the startup, it will readRequestHandlerfrom SOAP binding SM schema and store in a static HashMap. EachRequestHandleris associated with a unique key. When a web service client usesClientto send request, the SOAP URL must be in the format of 'this_servlet_URL>/key'. TheSOAPReceiverwill parse the SOAP URL to get the key and use it to find correspondingRequestHandler. After it is done processing, it will invokeRequestHandler.processRequestto let web service to do further processing.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SOAPReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)Processes HTTP request and sends back HTTP response.voidinit(jakarta.servlet.ServletConfig config)Initializes the Servlet.jakarta.xml.soap.SOAPMessageonMessage(jakarta.xml.soap.SOAPMessage message, jakarta.servlet.http.HttpServletRequest request)Processes the request message and invokesRequestHandler.processRequest.-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletExceptionInitializes the Servlet.- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.GenericServlet- Parameters:
config- theServletConfig.- Throws:
jakarta.servlet.ServletException- if there is any error.
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletExceptionProcesses HTTP request and sends back HTTP response. It gets called internally by the servlet engine.- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Parameters:
request- the HTTP request.response- the HTTP response.- Throws:
IOException- if an IO error occurs while processing the requestjakarta.servlet.ServletException- if an servlet error occurs while processing the request
-
onMessage
public jakarta.xml.soap.SOAPMessage onMessage(jakarta.xml.soap.SOAPMessage message, jakarta.servlet.http.HttpServletRequest request)Processes the request message and invokesRequestHandler.processRequest.- Parameters:
message- request received from the requestorrequest- the HTTP request- Returns:
- response being sent to the requestor
-
-