public class RouteContext extends Object
| Modifier and Type | Field and Description |
|---|---|
private javax.servlet.http.HttpServletRequest |
request |
private String |
requestPath |
private javax.servlet.http.HttpServletResponse |
response |
private Route |
route |
private Routes |
routes |
| Constructor and Description |
|---|
RouteContext(Route route,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Routes routes)
Constructor.
|
RouteContext(Route route,
String requestPath,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Routes routes) |
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the current
HttpServletRequest. |
String |
getRequestPath()
Returns the request path minus the context path (suffix) for the current request.
|
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the current
HttpServletResponse. |
Route |
getRoute()
Returns the current Route
|
Routes |
getRoutes()
Returns the
Routes instance for the current application. |
private final Route route
private final String requestPath
private final javax.servlet.http.HttpServletRequest request
private final javax.servlet.http.HttpServletResponse response
private final Routes routes
public RouteContext(Route route, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Routes routes)
route - the HttpServletRequest.request - the HttpServletRequest.response - the HttpServletRequest.routes - the Routes to enables querying of information about configured routes.public String getRequestPath()
String the request path minus the context path (suffix) for the current request.public javax.servlet.http.HttpServletRequest getRequest()
HttpServletRequest.HttpServletRequest the current HttpServletRequest.public javax.servlet.http.HttpServletResponse getResponse()
HttpServletResponse.HttpServletResponse the current HttpServletResponse.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.