public class SecurityConstraint extends Object implements Comparable<SecurityConstraint>
Modifier and Type | Class and Description |
---|---|
static class |
SecurityConstraint.Type |
Constructor and Description |
---|
SecurityConstraint(SecurityConstraint.Type type,
String name,
String urlPattern,
boolean enabled) |
SecurityConstraint(SecurityConstraint.Type type,
String name,
String urlPattern,
boolean enabled,
int priority) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SecurityConstraint o)
Compares this object with the specified object for order.
|
Set<SubnetInfo> |
getHostPatterns() |
Set<HTTPMethods> |
getMethods() |
String |
getName() |
int |
getPriority() |
Set<String> |
getRoles() |
SecurityConstraint.Type |
getType() |
String |
getUrlPattern() |
boolean |
isEnabled() |
boolean |
matches(javax.servlet.http.HttpServletRequest request)
Check whether the security constraint matches with the servlet request.
|
void |
setEnabled(boolean enabled) |
void |
setHostPatterns(Set<SubnetInfo> hostPattern) |
void |
setMethods(Set<HTTPMethods> methods) |
void |
setName(String name) |
void |
setPriority(int priority) |
void |
setRoles(Set<String> roles) |
void |
setType(SecurityConstraint.Type type) |
void |
setUrlPattern(String urlPattern) |
String |
toString() |
public SecurityConstraint(SecurityConstraint.Type type, String name, String urlPattern, boolean enabled)
public SecurityConstraint(SecurityConstraint.Type type, String name, String urlPattern, boolean enabled, int priority)
public boolean matches(javax.servlet.http.HttpServletRequest request)
request
- public int compareTo(SecurityConstraint o)
compareTo
in interface Comparable<SecurityConstraint>
o
- the object to be compared.ClassCastException
- if the specified object's type prevents it
from being compared to this object.public String getName()
public void setName(String name)
public String getUrlPattern()
public void setUrlPattern(String urlPattern)
public Set<SubnetInfo> getHostPatterns()
public void setHostPatterns(Set<SubnetInfo> hostPattern)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public Set<HTTPMethods> getMethods()
public void setMethods(Set<HTTPMethods> methods)
public int getPriority()
public void setPriority(int priority)
public SecurityConstraint.Type getType()
public void setType(SecurityConstraint.Type type)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.