Package org.sonar.api.server.ws
Class WebService.Context
- java.lang.Object
-
- org.sonar.api.server.ws.WebService.Context
-
- Enclosing interface:
- WebService
public static class WebService.Context extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Context()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebService.Controller
controller(java.lang.String key)
java.util.List<WebService.Controller>
controllers()
WebService.NewController
createController(java.lang.String path)
Create a new controller.
-
-
-
Method Detail
-
createController
public WebService.NewController createController(java.lang.String path)
Create a new controller.
Structure of request URL ishttp://<server>/<controller path>/<action path>?<parameters>
.- Parameters:
path
- the controller path must not start or end with "/". It is recommended to start with "api/" and to use lower-case format with underscores, for example "api/coding_rules". Usual actions are "search", "list", "show", "create" and "delete". the plural form is recommended - ex: api/projects
-
controller
@CheckForNull public WebService.Controller controller(java.lang.String key)
-
controllers
public java.util.List<WebService.Controller> controllers()
-
-