|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
com.sun.enterprise.deployment.DynamicAttributesDescriptor
com.sun.enterprise.deployment.Descriptor
com.sun.enterprise.deployment.WebResourceCollectionImpl
public class WebResourceCollectionImpl
This descriptor represents a description of a portion of a web app in terms of a collection of url patterns and a collection of http methods on this patterns.
| Field Summary |
|---|
| Fields inherited from class com.sun.enterprise.deployment.Descriptor |
|---|
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED |
| Constructor Summary | |
|---|---|
WebResourceCollectionImpl()
|
|
| Method Summary | |
|---|---|
void |
addHttpMethod(java.lang.String httpMethod)
Adds the given HTTP method to the collection of http methods this collection has. |
void |
addHttpMethodOmission(java.lang.String httpMethodOmission)
Adds the given HTTP method omission to the collection of http methods this collection has. |
void |
addUrlPattern(java.lang.String urlPattern)
Add a URL pattern to this collection. |
java.util.Set<java.lang.String> |
getHttpMethodOmissions()
Return the set of HTTP method omissions this collection has. |
java.lang.String[] |
getHttpMethodOmissionsAsArray()
Returns the HttpMethodOmissions this collection has in an array of strings This is added to speed up processing while creating webresource permissions |
java.util.Set<java.lang.String> |
getHttpMethods()
Return the enumeration of HTTP methods this collection has. |
java.lang.String[] |
getHttpMethodsAsArray()
Returns the HttpMethods this collection has in an array of strings This is added to speed up processing while creating webresource permissions |
java.util.Set<java.lang.String> |
getUrlPatterns()
Return my urls patterns (String objects) |
void |
print(java.lang.StringBuffer toStringBuffer)
A formatted string of the state. |
void |
removeHttpMethod(java.lang.String httpMethod)
Removes the given HTTP method from the collection of http methods. |
void |
removeHttpMethodOmission(java.lang.String httpMethodOmission)
Removes the given HTTP method omission from the collection of http methods. |
void |
removeUrlPattern(java.lang.String urlPattern)
Remove the specified url pattern from the collection. |
void |
setHttpMethodOmissions(java.util.Set<java.lang.String> httpMethodOmissions)
Sets the set of HTTP method omissions this collection has. |
void |
setHttpMethods(java.util.Set<java.lang.String> httpMethods)
Sets the set of HTTP methods this collection has. |
void |
setUrlPatterns(java.util.Set<java.lang.String> urlPatterns)
Clean out the collection of URL pattern and replace it with the given Set of (String) url patterns. |
| Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor |
|---|
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.enterprise.deployment.web.WebDescriptor |
|---|
getDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUri |
| Constructor Detail |
|---|
public WebResourceCollectionImpl()
| Method Detail |
|---|
public java.util.Set<java.lang.String> getUrlPatterns()
getUrlPatterns in interface WebResourceCollectionpublic void addUrlPattern(java.lang.String urlPattern)
addUrlPattern in interface WebResourceCollectionthe - url pattern to be added.public void removeUrlPattern(java.lang.String urlPattern)
the - url pattern to be removed.public void setUrlPatterns(java.util.Set<java.lang.String> urlPatterns)
the - url patterns to replace the current set.public java.util.Set<java.lang.String> getHttpMethods()
getHttpMethods in interface WebResourceCollectionpublic java.lang.String[] getHttpMethodsAsArray()
getHttpMethodsAsArray in interface WebResourceCollectionpublic void setHttpMethods(java.util.Set<java.lang.String> httpMethods)
the - set of HTTP methods.public void addHttpMethod(java.lang.String httpMethod)
addHttpMethod in interface WebResourceCollectionthe - HTTP method to be added.public void removeHttpMethod(java.lang.String httpMethod)
the - HTTP method to be removed.public java.util.Set<java.lang.String> getHttpMethodOmissions()
getHttpMethodOmissions in interface WebResourceCollectionpublic java.lang.String[] getHttpMethodOmissionsAsArray()
getHttpMethodOmissionsAsArray in interface WebResourceCollectionpublic void setHttpMethodOmissions(java.util.Set<java.lang.String> httpMethodOmissions)
the - set of HTTP method omissions.public void addHttpMethodOmission(java.lang.String httpMethodOmission)
addHttpMethodOmission in interface WebResourceCollectionthe - HTTP method to be added.public void removeHttpMethodOmission(java.lang.String httpMethodOmission)
the - HTTP method to be removed.public void print(java.lang.StringBuffer toStringBuffer)
print in class Descriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||