Class WebResourceCollectionImpl

    • Constructor Detail

      • WebResourceCollectionImpl

        public WebResourceCollectionImpl()
    • Method Detail

      • addUrlPattern

        public void addUrlPattern​(String urlPattern)
        Add a URL pattern to this collection.
        Specified by:
        addUrlPattern in interface WebResourceCollection
        Parameters:
        the - url pattern to be added.
      • removeUrlPattern

        public void removeUrlPattern​(String urlPattern)
        Remove the specified url pattern from the collection.
        Parameters:
        the - url pattern to be removed.
      • setUrlPatterns

        public void setUrlPatterns​(Set<String> urlPatterns)
        Clean out the collection of URL pattern and replace it with the given Set of (String) url patterns.
        Parameters:
        the - url patterns to replace the current set.
      • getHttpMethods

        public Set<String> getHttpMethods()
        Return the enumeration of HTTP methods this collection has.
        Specified by:
        getHttpMethods in interface WebResourceCollection
        Returns:
        the enumeration of HTTP methods.
      • getHttpMethodsAsArray

        public String[] getHttpMethodsAsArray()
        Returns the HttpMethods this collection has in an array of strings This is added to speed up processing while creating webresource permissions
        Specified by:
        getHttpMethodsAsArray in interface WebResourceCollection
        Returns:
        array of strings of HttpMethods
      • setHttpMethods

        public void setHttpMethods​(Set<String> httpMethods)
        Sets the set of HTTP methods this collection has.
        Parameters:
        the - set of HTTP methods.
      • addHttpMethod

        public void addHttpMethod​(String httpMethod)
        Adds the given HTTP method to the collection of http methods this collection has.
        Specified by:
        addHttpMethod in interface WebResourceCollection
        Parameters:
        the - HTTP method to be added.
      • removeHttpMethod

        public void removeHttpMethod​(String httpMethod)
        Removes the given HTTP method from the collection of http methods.
        Parameters:
        the - HTTP method to be removed.
      • getHttpMethodOmissionsAsArray

        public String[] getHttpMethodOmissionsAsArray()
        Returns the HttpMethodOmissions this collection has in an array of strings This is added to speed up processing while creating webresource permissions
        Specified by:
        getHttpMethodOmissionsAsArray in interface WebResourceCollection
        Returns:
        array of strings of HttpMethodOmissions
      • setHttpMethodOmissions

        public void setHttpMethodOmissions​(Set<String> httpMethodOmissions)
        Sets the set of HTTP method omissions this collection has.
        Parameters:
        the - set of HTTP method omissions.
      • addHttpMethodOmission

        public void addHttpMethodOmission​(String httpMethodOmission)
        Adds the given HTTP method omission to the collection of http methods this collection has.
        Specified by:
        addHttpMethodOmission in interface WebResourceCollection
        Parameters:
        the - HTTP method to be added.
      • removeHttpMethodOmission

        public void removeHttpMethodOmission​(String httpMethodOmission)
        Removes the given HTTP method omission from the collection of http methods.
        Parameters:
        the - HTTP method to be removed.