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:

The ServletSecurity annotation for a servlet should only be processed iff metadata-complete == false.


构造方法摘要
ServletSecurityAnnotationHandler(WebAppContext wac)
           
 
方法摘要
protected  boolean constraintsExist(List<ServletMapping> servletMappings, List<ConstraintMapping> constraintMappings)
          Check if there are already elements defined that match the url-patterns for the servlet.
 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 and elements, based on the security annotation.
 
从类 org.eclipse.jetty.annotations.AnnotationIntrospector.AbstractIntrospectableAnnotationHandler 继承的方法
handle
 
从类 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.