<web-resource-collection>
element in the deployment descriptor.Warning
It is assumed that instances of this class will be created and modified only within the context of a single thread, before the instance is made visible to the remainder of the application. After that, only read access is expected. Therefore, none of the read and write access within this class is synchronized.
| Modifier and Type | Field and Description |
|---|---|
| private String | description
Description of this web resource collection. |
| private boolean | isFromDescriptor
This security collection was established by a deployment descriptor. |
| private String[] | methods
The HTTP methods explicitly covered by this web resource collection. |
| private String | name
The name of this web resource collection. |
| private String[] | omittedMethods
The HTTP methods explicitly excluded from this web resource collection. |
| private String[] | patterns
The URL patterns protected by this security collection. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SecurityCollection(String
Name of this security collection name, String Description of this security collection description)Construct a new security collection instance with specified values. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addOmittedMethod(String
The method method)Add an HTTP request method to the methods explicitly excluded from this web resource collection. |
| public void | |
| public void | |
| public boolean | Returns: true if the specified HTTP request method is
part of this web resource collection.Request method to check method)Check if the collection applies to the specified method. |
| public String[] | Returns: the set of HTTP request methods that are part of this web resource collection, or a zero-length array if no methods have been explicitly included.
|
| public String[] | Returns: the set of HTTP request methods that are explicitly excluded from this web resource collection, or a zero-length array if no request methods are excluded.
|
| public boolean | Returns: true if the pattern is part of the collectionPattern to be compared pattern)Is the specified pattern part of this web resource collection? |
| public String[] | Returns: the set of URL patterns that are part of this web resource collection. If none have been specified, a zero-length array is returned.
|
| public String | |
| public String | |
| public boolean | |
| public void | removeMethod(String
Request method to be removed method)Remove the specified HTTP request method from those that are part of this web resource collection. |
| public void | removeOmittedMethod(String
Request method to be removed method)Remove the specified HTTP request method from those that are explicitly excluded from this web resource collection. |
| public void | removePattern(String
Pattern to be removed pattern)Remove the specified URL pattern from those that are part of this web resource collection. |
| public void | setDescription(String
The new description description)Set the description of this web resource collection. |
| public void | setFromDescriptor(boolean
true was declared in a descriptorSet if this constraint was defined in a deployment descriptor. |
| public void | |
| public String | toString()
Overrides java. Return a String representation of this security collection. |
| description | back to summary |
|---|---|
| private String description Description of this web resource collection. | |
| isFromDescriptor | back to summary |
|---|---|
| private boolean isFromDescriptor This security collection was established by a deployment descriptor.
Defaults to | |
| methods | back to summary |
|---|---|
| private String[] methods The HTTP methods explicitly covered by this web resource collection. | |
| name | back to summary |
|---|---|
| private String name The name of this web resource collection. | |
| omittedMethods | back to summary |
|---|---|
| private String[] omittedMethods The HTTP methods explicitly excluded from this web resource collection. | |
| patterns | back to summary |
|---|---|
| private String[] patterns The URL patterns protected by this security collection. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SecurityCollection | back to summary |
|---|---|
| public SecurityCollection() Construct a new security collection instance with default values. | |
| SecurityCollection | back to summary |
|---|---|
| public SecurityCollection(String name, String description) Construct a new security collection instance with specified values. | |
| addMethod | back to summary |
|---|---|
| public void addMethod(String method) Add an HTTP request method to be explicitly part of this web resource collection.
| |
| addOmittedMethod | back to summary |
|---|---|
| public void addOmittedMethod(String method) Add an HTTP request method to the methods explicitly excluded from this web resource collection.
| |
| addPattern | back to summary |
|---|---|
| public void addPattern(String pattern) Add a URL pattern to be part of this web resource collection.
| |
| addPatternDecoded | back to summary |
|---|---|
| public void addPatternDecoded(String pattern) | |
| findMethod | back to summary |
|---|---|
| public boolean findMethod(String method) Check if the collection applies to the specified method.
| |
| findMethods | back to summary |
|---|---|
public String[] findMethods()
| |
| findOmittedMethods | back to summary |
|---|---|
public String[] findOmittedMethods()
| |
| findPattern | back to summary |
|---|---|
| public boolean findPattern(String pattern) Is the specified pattern part of this web resource collection?
| |
| findPatterns | back to summary |
|---|---|
public String[] findPatterns()
| |
| getDescription | back to summary |
|---|---|
public String getDescription()
| |
| getName | back to summary |
|---|---|
public String getName()
| |
| isFromDescriptor | back to summary |
|---|---|
public boolean isFromDescriptor()
| |
| removeMethod | back to summary |
|---|---|
| public void removeMethod(String method) Remove the specified HTTP request method from those that are part of this web resource collection.
| |
| removeOmittedMethod | back to summary |
|---|---|
| public void removeOmittedMethod(String method) Remove the specified HTTP request method from those that are explicitly excluded from this web resource collection.
| |
| removePattern | back to summary |
|---|---|
| public void removePattern(String pattern) Remove the specified URL pattern from those that are part of this web resource collection.
| |
| setDescription | back to summary |
|---|---|
| public void setDescription(String description) Set the description of this web resource collection.
| |
| setFromDescriptor | back to summary |
|---|---|
| public void setFromDescriptor(boolean isFromDescriptor) Set if this constraint was defined in a deployment descriptor.
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Set the name of this web resource collection
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return a String representation of this security collection.
| |