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.

        Parameters:
        servletRequest -
        Returns:
        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.
        Parameters:
        servletRequest -
        resourceParams -
        Returns:
        a list of unexpected parameters