Class ControllerUtils

java.lang.Object
com.netflix.genie.web.apis.rest.v3.controllers.ControllerUtils

public final class ControllerUtils extends Object
Utility methods re-used in various controllers.
Since:
3.0.0
  • Method Details

    • getRemainingPath

      public static String getRemainingPath(jakarta.servlet.http.HttpServletRequest request)
      Get the remaining path from a given request. e.g. if the request went to a method with the matching pattern of /api/v3/jobs/{id}/output/** and the request was /api/v3/jobs/{id}/output/blah.txt the return value of this method would be blah.txt.
      Parameters:
      request - The http servlet request.
      Returns:
      The remaining path