public class WebResourceCollectionImpl extends Descriptor implements WebResourceCollection
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED| Constructor and Description |
|---|
WebResourceCollectionImpl() |
WebResourceCollectionImpl(WebResourceCollectionImpl other) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHttpMethod(String httpMethod)
Adds the given HTTP method to the collection of http methods this
collection has.
|
void |
addHttpMethodOmission(String httpMethodOmission)
Adds the given HTTP method omission to the collection of http methods this
collection has.
|
void |
addUrlPattern(String urlPattern)
Add a URL pattern to this collection.
|
Set<String> |
getHttpMethodOmissions()
Return the set of HTTP method omissions this collection has.
|
String[] |
getHttpMethodOmissionsAsArray()
Returns the HttpMethodOmissions this collection has in an array of strings
This is added to speed up processing while creating webresource permissions
|
Set<String> |
getHttpMethods()
Return the enumeration of HTTP methods this collection has.
|
String[] |
getHttpMethodsAsArray()
Returns the HttpMethods this collection has in an array of strings
This is added to speed up processing while creating webresource permissions
|
Set<String> |
getUrlPatterns()
Return my urls patterns (String objects)
|
void |
print(StringBuffer toStringBuffer)
A formatted string of the state.
|
void |
removeHttpMethod(String httpMethod)
Removes the given HTTP method from the collection of http methods.
|
void |
removeHttpMethodOmission(String httpMethodOmission)
Removes the given HTTP method omission from the collection of http methods.
|
void |
removeUrlPattern(String urlPattern)
Remove the specified url pattern from the collection.
|
void |
setHttpMethodOmissions(Set<String> httpMethodOmissions)
Sets the set of HTTP method omissions this collection has.
|
void |
setHttpMethods(Set<String> httpMethods)
Sets the set of HTTP methods this collection has.
|
void |
setUrlPatterns(Set<String> urlPatterns)
Clean out the collection of URL pattern and replace
it with the given Set of (String) url patterns.
|
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visitaddExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUripublic WebResourceCollectionImpl()
public WebResourceCollectionImpl(WebResourceCollectionImpl other)
public Set<String> getUrlPatterns()
getUrlPatterns in interface WebResourceCollectionpublic void addUrlPattern(String urlPattern)
addUrlPattern in interface WebResourceCollectionthe - url pattern to be added.public void removeUrlPattern(String urlPattern)
the - url pattern to be removed.public void setUrlPatterns(Set<String> urlPatterns)
the - url patterns to replace the current set.public Set<String> getHttpMethods()
getHttpMethods in interface WebResourceCollectionpublic String[] getHttpMethodsAsArray()
getHttpMethodsAsArray in interface WebResourceCollectionpublic void setHttpMethods(Set<String> httpMethods)
the - set of HTTP methods.public void addHttpMethod(String httpMethod)
addHttpMethod in interface WebResourceCollectionthe - HTTP method to be added.public void removeHttpMethod(String httpMethod)
the - HTTP method to be removed.public Set<String> getHttpMethodOmissions()
getHttpMethodOmissions in interface WebResourceCollectionpublic String[] getHttpMethodOmissionsAsArray()
getHttpMethodOmissionsAsArray in interface WebResourceCollectionpublic void setHttpMethodOmissions(Set<String> httpMethodOmissions)
the - set of HTTP method omissions.public void addHttpMethodOmission(String httpMethodOmission)
addHttpMethodOmission in interface WebResourceCollectionthe - HTTP method to be added.public void removeHttpMethodOmission(String httpMethodOmission)
the - HTTP method to be removed.public void print(StringBuffer toStringBuffer)
print in class DescriptorCopyright © 2017. All rights reserved.