Package spark.http.matching
Class RouteContext
java.lang.Object
spark.http.matching.RouteContext
Holds the parameters needed in the Before filters, Routes and After filters execution.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private Body
private HttpMethod
private javax.servlet.http.HttpServletRequest
private RequestWrapper
private Response
private ResponseWrapper
private Routes
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody()
(package private) static RouteContext
create()
Creates a RouteContextjavax.servlet.http.HttpServletRequest
response()
uri()
withAcceptType
(String acceptType) withHttpMethod
(HttpMethod httpMethod) withHttpRequest
(javax.servlet.http.HttpServletRequest httpRequest) withMatcher
(Routes routeMatcher) withRequestWrapper
(RequestWrapper requestWrapper) withResponse
(Response response) withResponseWrapper
(ResponseWrapper responseWrapper)
-
Field Details
-
routeMatcher
-
httpRequest
private javax.servlet.http.HttpServletRequest httpRequest -
uri
-
acceptType
-
body
-
requestWrapper
-
responseWrapper
-
response
-
httpMethod
-
-
Constructor Details
-
RouteContext
private RouteContext()
-
-
Method Details
-
create
Creates a RouteContext -
routeMatcher
-
withMatcher
-
withHttpRequest
-
withAcceptType
-
withBody
-
withRequestWrapper
-
withUri
-
withResponseWrapper
-
withResponse
-
withHttpMethod
-
httpRequest
public javax.servlet.http.HttpServletRequest httpRequest() -
uri
-
acceptType
-
body
-
requestWrapper
-
responseWrapper
-
response
-
httpMethod
-