@Service public class ServletSecurityHandler extends AbstractHandler
| Modifier and Type | Field and Description |
|---|---|
protected static LocalStringManagerImpl |
localStrings |
ejbProvider, loggerANNOTATION_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, validateInjectionMethodprotected static final LocalStringManagerImpl localStrings
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, WebComponentContext[] webCompContexts) throws AnnotationProcessorException
AnnotationProcessorExceptionprotected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, WebBundleContext webBundleContext) throws AnnotationProcessorException
AnnotationProcessorExceptionpublic Class<? extends Annotation>[] getTypeDependencies()
getTypeDependencies in interface AnnotationHandlergetTypeDependencies in class AbstractHandlerpublic 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 informationAnnotationProcessorExceptionCopyright © 2017. All rights reserved.