Class AttributePrintingServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.wildfly.test.security.common.elytron.servlet.AttributePrintingServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

@WebServlet(urlPatterns="/printAttributes") @ServletSecurity(@HttpConstraint(rolesAllowed="*")) public class AttributePrintingServlet extends jakarta.servlet.http.HttpServlet
An AttributePrintingServlet returns all attributes in a properties format in the response.
Author:
Darran Lofthouse
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The default servlet path (used in WebServlet annotation).

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
    Writes plain-text response with all of the current identities attributes.

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, service

    Methods inherited from class jakarta.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, toString, wait, wait, wait
  • Field Details

    • SERVLET_PATH

      public static final String SERVLET_PATH
      The default servlet path (used in WebServlet annotation).
      See Also:
  • Constructor Details

    • AttributePrintingServlet

      public AttributePrintingServlet()
  • Method Details

    • doGet

      protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException
      Writes plain-text response with all of the current identities attributes.
      Overrides:
      doGet in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException