Class QueryHandlerServlet

  • All Implemented Interfaces:
    jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

    public class QueryHandlerServlet
    extends jakarta.servlet.http.HttpServlet
    This class QueryHandlerServlet receives and processes SAMLv2 Queries.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doPost​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Handles the HTTP POST method.
      void init()  
      jakarta.xml.soap.SOAPMessage onMessage​(jakarta.xml.soap.SOAPMessage soapMsg, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String realm, String pdpEntityID)
      Process the incoming SOAP message containing the Query Request and generates outgoing SOAP message containing the Query Response.
      • Methods inherited from class jakarta.servlet.http.HttpServlet

        doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class jakarta.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • Constructor Detail

      • QueryHandlerServlet

        public QueryHandlerServlet()
    • Method Detail

      • init

        public void init()
                  throws jakarta.servlet.ServletException
        Overrides:
        init in class jakarta.servlet.GenericServlet
        Throws:
        jakarta.servlet.ServletException
      • doPost

        public void doPost​(jakarta.servlet.http.HttpServletRequest request,
                           jakarta.servlet.http.HttpServletResponse response)
                    throws jakarta.servlet.ServletException,
                           IOException
        Handles the HTTP POST method.
        Overrides:
        doPost in class jakarta.servlet.http.HttpServlet
        Parameters:
        request - the HttpServletRequest object.
        response - the HttpServletResponse object.
        Throws:
        jakarta.servlet.ServletException - if the request could not be handled.
        IOException - if an input or output error occurs.
      • onMessage

        public jakarta.xml.soap.SOAPMessage onMessage​(jakarta.xml.soap.SOAPMessage soapMsg,
                                                      jakarta.servlet.http.HttpServletRequest request,
                                                      jakarta.servlet.http.HttpServletResponse response,
                                                      String realm,
                                                      String pdpEntityID)
                                               throws jakarta.xml.soap.SOAPException
        Process the incoming SOAP message containing the Query Request and generates outgoing SOAP message containing the Query Response.
        Parameters:
        soapMsg - incoming SOAP message.
        request - HTTP servlet request.
        response - HTTP servlet response.
        realm - realm of the Policy Decision Point (PDP).
        pdpEntityID - Entity ID of the Policy Decision Point (PDP).
        Returns:
        SOAP message containing the outgoing Response.
        Throws:
        jakarta.xml.soap.SOAPException