@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(javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
Return the getIndex.html template for requests to root.
|
@GetMapping(value={"/","/applications/**","/clusters/**","/commands/**","/jobs/**","/output/**"})
public java.lang.String getIndex(@NotNull
javax.servlet.http.HttpServletResponse response,
@Nullable
org.springframework.security.core.Authentication authentication)
response - The servlet response to add cookies toauthentication - The Spring Security authentication if present@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