Revision 06c38222
Added by Andreas Kohlbecker over 8 years ago
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/ProgressMonitorController.java | ||
---|---|---|
39 | 39 |
* |
40 | 40 |
*/ |
41 | 41 |
@Controller |
42 |
@Api(value="progress", description="provides access to information on long runing processes. " |
|
43 |
+ "Uris to the resources exposed by this controller are provieded in the responses to the"
|
|
42 |
@Api(value="progress", description="provides access to information on long running processes. "
|
|
43 |
+ "URIs to the resources exposed by this controller are provided in the responses to the"
|
|
44 | 44 |
+ "HTTP requests that trigger long term processes.") |
45 | 45 |
@RequestMapping(value="/progress/") |
46 | 46 |
public class ProgressMonitorController { |
... | ... | |
147 | 147 |
} |
148 | 148 |
|
149 | 149 |
/** |
150 |
* provides the relative path to the ProgressMonitor specified by its uuid.
|
|
150 |
* provides the relative path to the ProgressMonitor specified by its UUID.
|
|
151 | 151 |
* File extensions like .xml, .json used during the initial request will be |
152 | 152 |
* preserved in order to not to break the content type negotiation. |
153 | 153 |
* |
... | ... | |
173 | 173 |
if (monitors.containsKey(uuid)) { |
174 | 174 |
mv.addObject(monitors.get(uuid)); |
175 | 175 |
} else { |
176 |
response.sendError(404, "No such progress monitor found. The process being monitored may have been completed and the according monitor may have been removed due to the clean up timepout."); |
|
176 |
response.sendError(404, "No such progress monitor found. The process being monitored may " |
|
177 |
+ "have been completed and the according monitor may have been removed due to " |
|
178 |
+ "the clean up timepout."); |
|
177 | 179 |
} |
178 | 180 |
|
179 | 181 |
return mv; |
Also available in: Unified diff
typos in documentation