|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.webcommon30.WebResourceCollectionTypeImpl<T>
public class WebResourceCollectionTypeImpl<T>
This class implements the web-resource-collectionType xsd type
Original Documentation:
The web-resource-collectionType is used to identify the
resources and HTTP methods on those resources to which a
security constraint applies. If no HTTP methods are specified,
then the security constraint applies to all HTTP methods.
If HTTP methods are specified by http-method-omission
elements, the security constraint applies to all methods
except those identified in the collection.
http-method-omission and http-method elements are never
mixed in the same collection.
Used in: security-constraint
| Constructor Summary | |
|---|---|
WebResourceCollectionTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
WebResourceCollectionTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getDescriptionList()
Returns all description elements |
java.util.List<java.lang.String> |
getHttpMethodList()
Returns all http-method elements |
java.util.List<java.lang.String> |
getHttpMethodOmissionList()
Returns all http-method-omission elements |
java.util.List<java.lang.String> |
getUrlPatternList()
Returns all url-pattern elements |
java.lang.String |
getWebResourceName()
Returns the web-resource-name element |
WebResourceCollectionType<T> |
removeAllDescription()
Removes the description element |
WebResourceCollectionType<T> |
removeAllHttpMethod()
Removes the http-method element |
WebResourceCollectionType<T> |
removeAllHttpMethodOmission()
Removes the http-method-omission element |
WebResourceCollectionType<T> |
removeAllUrlPattern()
Removes the url-pattern element |
WebResourceCollectionType<T> |
removeWebResourceName()
Removes the web-resource-name element |
WebResourceCollectionType<T> |
setDescription(java.lang.String description)
Creates a new description element |
WebResourceCollectionType<T> |
setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements,
a new description element |
WebResourceCollectionType<T> |
setHttpMethod(java.lang.String httpMethod)
Creates a new http-method element |
WebResourceCollectionType<T> |
setHttpMethodList(java.lang.String... values)
Creates for all String objects representing http-method elements,
a new http-method element |
WebResourceCollectionType<T> |
setHttpMethodOmission(java.lang.String httpMethodOmission)
Creates a new http-method-omission element |
WebResourceCollectionType<T> |
setHttpMethodOmissionList(java.lang.String... values)
Creates for all String objects representing http-method-omission elements,
a new http-method-omission element |
WebResourceCollectionType<T> |
setUrlPattern(java.lang.String urlPattern)
Creates a new url-pattern element |
WebResourceCollectionType<T> |
setUrlPatternList(java.lang.String... values)
Creates for all String objects representing url-pattern elements,
a new url-pattern element |
WebResourceCollectionType<T> |
setWebResourceName(java.lang.String webResourceName)
If not already created, a new web-resource-name element with the given value will be created. |
T |
up()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebResourceCollectionTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
public WebResourceCollectionTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
| Method Detail |
|---|
public T up()
up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>public WebResourceCollectionType<T> setWebResourceName(java.lang.String webResourceName)
web-resource-name element with the given value will be created.
Otherwise, the existing web-resource-name element will be updated with the given value.
setWebResourceName in interface WebResourceCollectionType<T>WebResourceCollectionTypepublic WebResourceCollectionType<T> removeWebResourceName()
web-resource-name element
removeWebResourceName in interface WebResourceCollectionType<T>WebResourceCollectionTypepublic java.lang.String getWebResourceName()
web-resource-name element
getWebResourceName in interface WebResourceCollectionType<T>web-resource-namepublic WebResourceCollectionType<T> setDescription(java.lang.String description)
description element
setDescription in interface WebResourceCollectionType<T>WebResourceCollectionTypepublic WebResourceCollectionType<T> setDescriptionList(java.lang.String... values)
description elements,
a new description element
setDescriptionList in interface WebResourceCollectionType<T>list - of description objects
WebResourceCollectionTypepublic WebResourceCollectionType<T> removeAllDescription()
description element
removeAllDescription in interface WebResourceCollectionType<T>WebResourceCollectionTypepublic java.util.List<java.lang.String> getDescriptionList()
description elements
getDescriptionList in interface WebResourceCollectionType<T>descriptionpublic WebResourceCollectionType<T> setUrlPattern(java.lang.String urlPattern)
url-pattern element
setUrlPattern in interface WebResourceCollectionType<T>WebResourceCollectionTypepublic WebResourceCollectionType<T> setUrlPatternList(java.lang.String... values)
url-pattern elements,
a new url-pattern element
setUrlPatternList in interface WebResourceCollectionType<T>list - of url-pattern objects
WebResourceCollectionTypepublic WebResourceCollectionType<T> removeAllUrlPattern()
url-pattern element
removeAllUrlPattern in interface WebResourceCollectionType<T>WebResourceCollectionTypepublic java.util.List<java.lang.String> getUrlPatternList()
url-pattern elements
getUrlPatternList in interface WebResourceCollectionType<T>url-patternpublic WebResourceCollectionType<T> setHttpMethod(java.lang.String httpMethod)
http-method element
setHttpMethod in interface WebResourceCollectionType<T>WebResourceCollectionTypepublic WebResourceCollectionType<T> setHttpMethodList(java.lang.String... values)
http-method elements,
a new http-method element
setHttpMethodList in interface WebResourceCollectionType<T>list - of http-method objects
WebResourceCollectionTypepublic WebResourceCollectionType<T> removeAllHttpMethod()
http-method element
removeAllHttpMethod in interface WebResourceCollectionType<T>WebResourceCollectionTypepublic java.util.List<java.lang.String> getHttpMethodList()
http-method elements
getHttpMethodList in interface WebResourceCollectionType<T>http-methodpublic WebResourceCollectionType<T> setHttpMethodOmission(java.lang.String httpMethodOmission)
http-method-omission element
setHttpMethodOmission in interface WebResourceCollectionType<T>WebResourceCollectionTypepublic WebResourceCollectionType<T> setHttpMethodOmissionList(java.lang.String... values)
http-method-omission elements,
a new http-method-omission element
setHttpMethodOmissionList in interface WebResourceCollectionType<T>list - of http-method-omission objects
WebResourceCollectionTypepublic WebResourceCollectionType<T> removeAllHttpMethodOmission()
http-method-omission element
removeAllHttpMethodOmission in interface WebResourceCollectionType<T>WebResourceCollectionTypepublic java.util.List<java.lang.String> getHttpMethodOmissionList()
http-method-omission elements
getHttpMethodOmissionList in interface WebResourceCollectionType<T>http-method-omission
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||