Class RequestContext
java.lang.Object
com.inductiveautomation.ignition.gateway.dataroutes.RequestContext
Wrapper around an HttpServletRequest to include some helpful data for 
RouteHandler instances.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the HttpMethod of the requestgetParameter(String name) Fetch a named parameter.getPath()Returns the URL path that that matched the route.javax.servlet.http.HttpServletRequestThe underlying web requestvoidputParameter(String name, String value) readBody()
- 
Constructor Details- 
RequestContext
 
- 
- 
Method Details- 
getGatewayContext
- 
getRequestpublic javax.servlet.http.HttpServletRequest getRequest()The underlying web request
- 
getPathReturns the URL path that that matched the route. This will not include /data/module/
- 
getMethodReturns the HttpMethod of the request
- 
readBody- Throws:
- IOException
 
- 
getParameterFetch a named parameter. First this will match any parameters that were part of the route's named parameters. For example, if your route was /widgets/:id you may call getParameter("id") and it will return the value from the request URL that matched the :id parameter. If it does not match a route parameter, it will delegate to the internal HttpServletRequest's parameter map, which comes from the URL's query string or post parameters. 
- 
putParameter
- 
getRequestUri- Returns:
- the full URI for this HTTP Request (example: http://example.com:8088/foo/bar?baz=abc)
 
- 
getRelativeRequestUri- Returns:
- the relative URI for this HTTP Request (example: /foo/bar?baz=abc)
 
 
-