public class ServletSecurityAnnotationHandler extends AnnotationIntrospector.AbstractIntrospectableAnnotationHandler
Constructor and Description |
---|
ServletSecurityAnnotationHandler(WebAppContext wac) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
constraintsExist(List<ServletMapping> servletMappings,
List<ConstraintMapping> constraintMappings)
Check if there are already
|
void |
doHandle(Class clazz) |
protected List<ServletMapping> |
getServletMappings(String className)
Get the ServletMappings for the servlet's class.
|
protected Constraint |
makeConstraint(Class servlet,
String[] rolesAllowed,
ServletSecurity.EmptyRoleSemantic permitOrDeny,
ServletSecurity.TransportGuarantee transport)
Make a jetty Constraint object, which represents the
|
handle
public ServletSecurityAnnotationHandler(WebAppContext wac)
public void doHandle(Class clazz)
protected Constraint makeConstraint(Class servlet, String[] rolesAllowed, ServletSecurity.EmptyRoleSemantic permitOrDeny, ServletSecurity.TransportGuarantee transport)
servlet
- rolesAllowed
- permitOrDeny
- transport
- protected List<ServletMapping> getServletMappings(String className)
className
- protected boolean constraintsExist(List<ServletMapping> servletMappings, List<ConstraintMapping> constraintMappings)
servletMappings
- Copyright © 1995-2015 Webtide. All Rights Reserved.