Interface RouteGroup
- 
 public interface RouteGroupA bundle of routes mounted underneath /data/group-name/* Each route will be activated when a web request that matches the route's method and path comes into the Ignition webserver. The route handler will then be called to provide a response. The response can then be rendered to a string via the response renderer, if desired. Some examples: Mounts a text/plain response of "hello, world" at /data/module-id/hello_world routeGroup.newRoute("/hello_world") .handler((request, response) -> "Hello, world!") .mount();Mounts a json response that serializes a lits of widget objects using GSON routeGroup.newRoute("/widgets") .handler(this::getWidgetList) .renderer(gson::toJson) .type("application/json") .mount();Mounts a json response that fetches a specific object, using url parameter matching. For example, the URL request /data/module-id/widget/8271 would fetch widget with id=8271 routeGroup.newRoute("/widget/:id") .handler((request, response) -> findWidget(request.getParameter("id")) .renderer(gson::toJson) .type("application/json") .mount();Mounts a plain text response that can only be accessed if the user has a session that is authorized to view the main/web/status section of the gateway web ui. routeGroup.newRoute("/canyouseethis") .handler((request, response) -> "yes you can") .restrict(WicketAccessControl.STATUS_SECTION) .mount();
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceRouteGroup.CacheKeyGenstatic interfaceRouteGroup.RouteMounter
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringTYPE_IMG_PNGstatic java.lang.StringTYPE_IMG_SVG_XMLstatic java.lang.StringTYPE_JSONstatic java.lang.StringTYPE_PLAIN_TEXTstatic java.lang.StringTYPE_TEXT_CSSstatic java.lang.StringTYPE_TEXT_HTMLstatic java.lang.StringTYPE_XMLstatic java.lang.StringTYPE_ZIP
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description RouteGroup.RouteMounternewRoute(java.lang.String path)Begin adding a route.
 
- 
- 
- 
Field Detail- 
TYPE_PLAIN_TEXTstatic final java.lang.String TYPE_PLAIN_TEXT - See Also:
- Constant Field Values
 
 - 
TYPE_JSONstatic final java.lang.String TYPE_JSON - See Also:
- Constant Field Values
 
 - 
TYPE_XMLstatic final java.lang.String TYPE_XML - See Also:
- Constant Field Values
 
 - 
TYPE_TEXT_HTMLstatic final java.lang.String TYPE_TEXT_HTML - See Also:
- Constant Field Values
 
 - 
TYPE_TEXT_CSSstatic final java.lang.String TYPE_TEXT_CSS - See Also:
- Constant Field Values
 
 - 
TYPE_IMG_SVG_XMLstatic final java.lang.String TYPE_IMG_SVG_XML - See Also:
- Constant Field Values
 
 - 
TYPE_IMG_PNGstatic final java.lang.String TYPE_IMG_PNG - See Also:
- Constant Field Values
 
 - 
TYPE_ZIPstatic final java.lang.String TYPE_ZIP - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
newRouteRouteGroup.RouteMounter newRoute(java.lang.String path) Begin adding a route. Creates a RouteMounter object which helps create a valid route
 
- 
 
-