org.jboss.metadata
Class WebSecurityMetaData.WebResourceCollection

java.lang.Object
  extended byorg.jboss.metadata.WebSecurityMetaData.WebResourceCollection
Enclosing class:
WebSecurityMetaData (src)

public static class WebSecurityMetaData.WebResourceCollection
extends java.lang.Object

The security-constraint/web-resource-collection child element container


Constructor Summary
WebSecurityMetaData.WebResourceCollection(java.lang.String name)
           
 
Method Summary
 void addHttpMethod(java.lang.String method)
           
 void addPattern(java.lang.String pattern)
           
 java.lang.String[] getHttpMethods()
          The optional security-constraint/web-resource-collection/http-method
 java.lang.String[] getMissingHttpMethods()
          Return the http methods that were not specified in the collection.
 java.lang.String getName()
           
 java.lang.String[] getUrlPatterns()
          Get the url-patterns specified in the resource collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSecurityMetaData.WebResourceCollection

public WebSecurityMetaData.WebResourceCollection(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

addPattern

public void addPattern(java.lang.String pattern)

getUrlPatterns

public java.lang.String[] getUrlPatterns()
Get the url-patterns specified in the resource collection.

Returns:

addHttpMethod

public void addHttpMethod(java.lang.String method)

getHttpMethods

public java.lang.String[] getHttpMethods()
The optional security-constraint/web-resource-collection/http-method

Returns:
empty for all methods, a subset of GET, POST, PUT, DELETE, HEAD, OPTIONS, TRACE otherwise

getMissingHttpMethods

public java.lang.String[] getMissingHttpMethods()
Return the http methods that were not specified in the collection. If there were a subset of the ALL_HTTP_METHODS given, then this method returns the ALL_HTTP_METHODS - the subset. If no or all ALL_HTTP_METHODS were specified this return an empty array.

Returns:
empty for all methods, a subset of GET, POST, PUT, DELETE, HEAD, OPTIONS, TRACE otherwise