Req
- The native request typeRes
- The native response typepublic class DefaultServletExchange<Req,Res> extends java.lang.Object implements ServletExchange<Req,Res>
Constructor and Description |
---|
DefaultServletExchange(ServletHttpRequest<Req,? super java.lang.Object> request,
ServletHttpResponse<Res,? super java.lang.Object> response)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ServletHttpRequest<Req,? super java.lang.Object> |
getRequest() |
ServletHttpResponse<Res,? super java.lang.Object> |
getResponse() |
public DefaultServletExchange(ServletHttpRequest<Req,? super java.lang.Object> request, ServletHttpResponse<Res,? super java.lang.Object> response)
request
- The requestresponse
- The responsepublic ServletHttpRequest<Req,? super java.lang.Object> getRequest()
getRequest
in interface ServletExchange<Req,Res>
public ServletHttpResponse<Res,? super java.lang.Object> getResponse()
getResponse
in interface ServletExchange<Req,Res>