@Service public class ServletSecurityHandler extends AbstractHandler
Modifier and Type | Field and Description |
---|---|
protected static LocalStringManagerImpl |
localStrings |
ejbProvider, logger
ANNOTATION_HANDLER_METADATA
Constructor and Description |
---|
ServletSecurityHandler() |
Modifier and Type | Method and Description |
---|---|
static SecurityConstraint |
createSecurityConstraint(WebBundleDescriptor webBundleDesc,
Set<String> urlPatterns,
String[] rolesAllowed,
javax.servlet.annotation.ServletSecurity.EmptyRoleSemantic emptyRoleSemantic,
javax.servlet.annotation.ServletSecurity.TransportGuarantee transportGuarantee,
String httpMethod) |
Class<? extends Annotation>[] |
getTypeDependencies() |
static Set<String> |
getUrlPatternsWithoutSecurityConstraint(WebComponentDescriptor webCompDesc)
Given a WebComponentDescriptor, find the set of urlPattern which does not have
any existing url pattern in SecurityConstraint
|
HandlerProcessingResult |
processAnnotation(AnnotationInfo ainfo)
Process a particular annotation which type is the same as the
one returned by @see getAnnotationType().
|
protected HandlerProcessingResult |
processAnnotation(AnnotationInfo ainfo,
WebBundleContext webBundleContext)
Process Annotation with given WebBundleContext.
|
protected HandlerProcessingResult |
processAnnotation(AnnotationInfo ainfo,
WebComponentContext[] webCompContexts)
Process Annotation with given WebCompContexts.
|
getAnnotationType, getConnectorAnnotationTypes, getDefaultFailedResult, getDefaultProcessedResult, getEjbAndWebAnnotationTypes, getEjbAnnotationTypes, getInjectionMethodPropertyName, getInvalidAnnotatedElementHandlerResult, getOverallProcessingResult, getWebAnnotationTypes, log, validateInjectionMethod
protected static final LocalStringManagerImpl localStrings
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, WebComponentContext[] webCompContexts) throws AnnotationProcessorException
AnnotationProcessorException
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, WebBundleContext webBundleContext) throws AnnotationProcessorException
AnnotationProcessorException
public Class<? extends Annotation>[] getTypeDependencies()
getTypeDependencies
in interface AnnotationHandler
getTypeDependencies
in class AbstractHandler
public static Set<String> getUrlPatternsWithoutSecurityConstraint(WebComponentDescriptor webCompDesc)
webCompDesc
- public static SecurityConstraint createSecurityConstraint(WebBundleDescriptor webBundleDesc, Set<String> urlPatterns, String[] rolesAllowed, javax.servlet.annotation.ServletSecurity.EmptyRoleSemantic emptyRoleSemantic, javax.servlet.annotation.ServletSecurity.TransportGuarantee transportGuarantee, String httpMethod)
public HandlerProcessingResult processAnnotation(AnnotationInfo ainfo) throws AnnotationProcessorException
ainfo
- the annotation informationAnnotationProcessorException
Copyright © 2018. All rights reserved.