public interface ConstraintAware
Modifier and Type | Method and Description |
---|---|
void |
addConstraintMapping(ConstraintMapping mapping)
Add a Constraint Mapping.
|
void |
addRole(String role)
Add a Role definition.
|
boolean |
checkPathsWithUncoveredHttpMethods()
See Servlet Spec 31, sec 13.8.4, pg 145
Container must check if there are urls with uncovered http methods
|
List<ConstraintMapping> |
getConstraintMappings() |
Set<String> |
getRoles() |
boolean |
isDenyUncoveredHttpMethods() |
void |
setConstraintMappings(List<ConstraintMapping> constraintMappings,
Set<String> roles)
Set Constraint Mappings and roles.
|
void |
setDenyUncoveredHttpMethods(boolean deny)
See Servlet Spec 31, sec 13.8.4, pg 145
When true, requests with http methods not explicitly covered either by inclusion or omissions
in constraints, will have access denied.
|
List<ConstraintMapping> getConstraintMappings()
void setConstraintMappings(List<ConstraintMapping> constraintMappings, Set<String> roles)
constraintMappings
- roles
- void addConstraintMapping(ConstraintMapping mapping)
mapping
- void addRole(String role)
role
- void setDenyUncoveredHttpMethods(boolean deny)
deny
- boolean isDenyUncoveredHttpMethods()
boolean checkPathsWithUncoveredHttpMethods()
Copyright © 1995-2015 Webtide. All Rights Reserved.