@Controller
@CrossOrigin(origins="*")
@RequestMapping(value="/progress/")
public class ProgressMonitorController
extends java.lang.Object
Constructor and Description |
---|
ProgressMonitorController() |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.servlet.ModelAndView |
doProgressMonitor(java.util.UUID uuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
IRestServiceProgressMonitor |
getMonitor(java.util.UUID uuid) |
void |
initBinder(org.springframework.web.bind.WebDataBinder binder) |
boolean |
isMonitorRunning(java.util.UUID uuid)
returns true if the
IRestServiceProgressMonitor identified by the uuid
exists and if it is still indicating a running thread |
java.lang.String |
pathFor(javax.servlet.http.HttpServletRequest request,
java.util.UUID uuid)
provides the relative path to the ProgressMonitor specified by its UUID.
|
java.util.UUID |
registerMonitor(IRestServiceProgressMonitor monitor) |
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
public java.util.UUID registerMonitor(IRestServiceProgressMonitor monitor)
public IRestServiceProgressMonitor getMonitor(java.util.UUID uuid)
public boolean isMonitorRunning(java.util.UUID uuid)
IRestServiceProgressMonitor
identified by the uuid
exists and if it is still indicating a running threaduuid
- public java.lang.String pathFor(javax.servlet.http.HttpServletRequest request, java.util.UUID uuid)
request
- the request for which to create he path for. The file
extension will be read from the servlet path and is appended
to the resulting path.uuid
- the uuid key of the monitor@RequestMapping(value="{uuid}", method=GET) public org.springframework.web.servlet.ModelAndView doProgressMonitor(@PathVariable(value="uuid") java.util.UUID uuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
Copyright © 2007-2020 EDIT. All Rights Reserved.