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
FieldsModifier and TypeFieldDescriptionstatic final StringThe default servlet path (used inWebServletannotation).Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoGet(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, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
SERVLET_PATH
The default servlet path (used inWebServletannotation).- 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:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-