@Controller
public class UIController
extends java.lang.Object
Constructor and Description |
---|
UIController() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFile(java.lang.String id,
javax.servlet.http.HttpServletRequest request)
Forward the file request to the API.
|
java.lang.String |
getIndex()
Return the getIndex.html template for requests to root.
|
@GetMapping(value={"/","/applications/**","/clusters/**","/commands/**","/jobs/**","/output/**"}) public java.lang.String getIndex()
@GetMapping(value="/file/{id}/**") public java.lang.String getFile(@PathVariable(value="id") java.lang.String id, javax.servlet.http.HttpServletRequest request) throws java.io.UnsupportedEncodingException
id
- The id of the jobrequest
- the servlet request to get path information fromjava.io.UnsupportedEncodingException
- if URL-encoding of the job id fails