public class Rule
extends java.lang.Object
Constructor and Description |
---|
Rule(RequestMatcherType type,
java.lang.String pattern,
org.springframework.http.HttpMethod method,
java.util.List<java.lang.String> roles) |
Rule(RequestMatcherType type,
java.lang.String pattern,
org.springframework.http.HttpMethod method,
java.lang.String expression) |
Modifier and Type | Method and Description |
---|---|
void |
addRole(java.lang.String role) |
java.lang.Boolean |
containsRole(java.lang.String role) |
boolean |
equals(java.lang.Object object) |
java.lang.String |
getExpression() |
java.util.Collection<org.springframework.security.access.ConfigAttribute> |
getExpressionBasedAttributes() |
org.springframework.http.HttpMethod |
getMethod() |
java.lang.String |
getPattern() |
org.springframework.security.web.util.matcher.RequestMatcher |
getRequestMatcher() |
java.util.List<java.lang.String> |
getRoles() |
RequestMatcherType |
getType() |
void |
setExpression(java.lang.String expression) |
void |
setMethod(org.springframework.http.HttpMethod method) |
void |
setPattern(java.lang.String pattern) |
void |
setRoles(java.util.List<java.lang.String> roles) |
void |
setType(RequestMatcherType type) |
public Rule(RequestMatcherType type, java.lang.String pattern, org.springframework.http.HttpMethod method, java.util.List<java.lang.String> roles) throws java.lang.Exception
java.lang.Exception
public Rule(RequestMatcherType type, java.lang.String pattern, org.springframework.http.HttpMethod method, java.lang.String expression) throws java.lang.Exception
java.lang.Exception
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.Boolean containsRole(java.lang.String role) throws java.lang.Exception
java.lang.Exception
public void addRole(java.lang.String role) throws java.lang.Exception
java.lang.Exception
public org.springframework.security.web.util.matcher.RequestMatcher getRequestMatcher() throws java.lang.Exception
java.lang.Exception
public java.util.Collection<org.springframework.security.access.ConfigAttribute> getExpressionBasedAttributes() throws java.lang.Exception
java.lang.Exception
public RequestMatcherType getType()
public void setType(RequestMatcherType type)
public java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
public org.springframework.http.HttpMethod getMethod()
public void setMethod(org.springframework.http.HttpMethod method)
public java.util.List<java.lang.String> getRoles()
public void setRoles(java.util.List<java.lang.String> roles)
public java.lang.String getExpression()
public void setExpression(java.lang.String expression)