Methods Summary |
---|
public void | addHttpMethod(java.lang.String httpMethod)Adds the given HTTP method to the collection of http methods this
collection has.
this.getHttpMethodsSet().add(httpMethod);
|
public void | addUrlPattern(java.lang.String urlPattern)Add a URL pattern to this collection.
this.getUrlPatternsSet().add(urlPattern);
|
public java.util.Enumeration | getHttpMethods()Return the enumeration of HTTP methods this collection has.
return (new Vector(this.getHttpMethodsSet())).elements();
|
public java.lang.String[] | getHttpMethodsAsArray()Returns the HttpMethods this collection has in an array of strings
if(httpMethods == null){
return (String[]) null;
}
String[] array = (String[])httpMethods.toArray(new String[0]);
return array;
|
private java.util.Set | getHttpMethodsSet()
if (this.httpMethods == null) {
this.httpMethods = new HashSet();
}
return this.httpMethods;
|
public java.util.Enumeration | getUrlPatterns()Return my urls patterns (String objects)
return (new Vector(this.getUrlPatternsSet())).elements();
|
private java.util.Set | getUrlPatternsSet()
if (this.urlPatterns == null) {
this.urlPatterns = new HashSet();
}
return this.urlPatterns;
|
public void | print(java.lang.StringBuffer toStringBuffer)A formatted string of the state.
toStringBuffer.append("WebresourceCollection: ");
toStringBuffer.append(" urlPatterns: ").append(this.urlPatterns);
toStringBuffer.append(" httpMethods ").append(this.httpMethods);
|
public void | removeHttpMethod(java.lang.String httpMethod)Removes the given HTTP method from the collection of http methods.
this.getHttpMethodsSet().remove(httpMethod);
|
public void | removeUrlPattern(java.lang.String urlPattern)Remove the specified url pattern from the collection.
this.getUrlPatternsSet().remove(urlPattern);
|
public void | setHttpMethods(java.util.Set httpMethods)Sets the set of HTTP methods this collection has.
this.httpMethods = httpMethods;
|
public void | setUrlPatterns(java.util.Set urlPatterns)Clean out the collection of URL pattern and replace
it with the given Set of (String) url patterns.
this.urlPatterns = urlPatterns;
|