Package com.netflix.genie.ui.controllers
Class UIController
java.lang.Object
com.netflix.genie.ui.controllers.UIController
Controller for forwarding UI requests.
- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UIController
public UIController()
-
-
Method Details
-
getIndex
@GetMapping({"/","/applications/**","/clusters/**","/commands/**","/jobs/**","/output/**"}) public String getIndex()Return the getIndex.html template for requests to root.- Returns:
- The index page
-
getFile
@GetMapping("/file/{id}/**") public String getFile(@PathVariable("id") String id, javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException Forward the file request to the API.- Parameters:
id
- The id of the jobrequest
- the servlet request to get path information from- Returns:
- The forward address to go to at the API endpoint
- Throws:
UnsupportedEncodingException
- if URL-encoding of the job id fails
-