org.eclipse.jetty.annotations
类 ServletSecurityAnnotationHandler
java.lang.Object
org.eclipse.jetty.annotations.AnnotationIntrospector.AbstractIntrospectableAnnotationHandler
org.eclipse.jetty.annotations.ServletSecurityAnnotationHandler
- 所有已实现的接口:
- AnnotationIntrospector.IntrospectableAnnotationHandler
public class ServletSecurityAnnotationHandler
- extends AnnotationIntrospector.AbstractIntrospectableAnnotationHandler
ServletSecurityAnnotationHandler
Inspect a class to see if it has an @ServletSecurity annotation on it,
setting up the s.
A servlet can be defined in:
- web.xml
- web-fragment.xml
- @WebServlet annotation discovered
- ServletContext.createServlet
The ServletSecurity annotation for a servlet should only be processed
iff metadata-complete == false.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletSecurityAnnotationHandler
public ServletSecurityAnnotationHandler(WebAppContext wac)
doHandle
public void doHandle(Class clazz)
- 指定者:
- 类
AnnotationIntrospector.AbstractIntrospectableAnnotationHandler 中的 doHandle
- 另请参见:
AnnotationIntrospector.IntrospectableAnnotationHandler.handle(java.lang.Class)
makeConstraint
protected Constraint makeConstraint(Class servlet,
String[] rolesAllowed,
ServletSecurity.EmptyRoleSemantic permitOrDeny,
ServletSecurity.TransportGuarantee transport)
- Make a jetty Constraint object, which represents the and
elements, based on the security annotation.
- 参数:
servlet - rolesAllowed - permitOrDeny - transport -
- 返回:
getServletMappings
protected List<ServletMapping> getServletMappings(String className)
- Get the ServletMappings for the servlet's class.
- 参数:
className -
- 返回:
constraintsExist
protected boolean constraintsExist(List<ServletMapping> servletMappings,
List<ConstraintMapping> constraintMappings)
- Check if there are already elements defined that match the url-patterns for
the servlet.
- 参数:
servletMappings -
- 返回:
Copyright © 2013. All Rights Reserved.