Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions rest/src/main/java/org/zstack/rest/RestServerController.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ public class RestServerController {
@Autowired
private RestServer server;

/****
* Handles all REST API requests and delegates processing to the RestServer.
*
* Sets a request attribute "info" containing a test map before forwarding the request and response to the RestServer for handling.
*
* @param request the incoming HTTP request
* @param response the HTTP response to be sent
* @throws IOException if an I/O error occurs during request handling
* @throws IllegalAccessException if the underlying method is inaccessible
* @throws NoSuchMethodException if a required method cannot be found
* @throws InvocationTargetException if the underlying method throws an exception
*/
@RequestMapping(
value = RestConstants.ALL_PATH,
method = {
Expand Down