Class ResourceParameters

  • public class ResourceParameters
    extends Object
    • Method Detail

      • getResourceSpecificParams

        public static List<String> getResourceSpecificParams​(javax.servlet.http.HttpServletRequest servletRequest)
        Checks the resource of the request and gives back a list of available parameters for this resource.

        Note that some resources don't use this method, but implement their own checks. One example for this is the metadata request in #executeGetMetadata(HttpServletRequest) executeGetMetadata.

        servletRequest - represents the HttpServlet request.
        a list of of available parameters for the given resource.
      • checkUnexpectedParams

        public static List<String> checkUnexpectedParams​(javax.servlet.http.HttpServletRequest servletRequest,
                                                         List<String> resourceParams)
        Checks, if the request contains unexpected parameters for this resource.
        servletRequest - represents the HttpServlet request.
        resourceParams - represents a list of all possible parameters for the requested resource.
        a list of unexpected parameters