-
- All Implemented Interfaces:
public final class HttpServerContext
-
-
Field Summary
Fields Modifier and Type Field Description private final Map<String, String>pathParametersprivate final Map<String, Object>allParametersprivate final Context<HttpServerCall>contextprivate final HttpServerRequestPortrequestprivate final HttpServerResponseresponseprivate final Map<Object, Object>attributes
-
Constructor Summary
Constructors Constructor Description HttpServerContext(Context<HttpServerCall> context, HttpServerRequestPort request, HttpServerResponse response, Map<Object, Object> attributes)
-
Method Summary
Modifier and Type Method Description final Map<String, String>getPathParameters()final Map<String, Object>getAllParameters()final Context<HttpServerCall>getContext()final HttpServerRequestPortgetRequest()final HttpServerResponsegetResponse()final Map<Object, Object>getAttributes()final HttpServerContextnext()final HttpServerContextsuccess(SuccessStatus status, Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)final HttpServerContextredirect(RedirectionStatus status, Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)final HttpServerContextclientError(ClientErrorStatus status, Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)final HttpServerContextserverError(ServerErrorStatus status, Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)final HttpServerContextinternalServerError(Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)final HttpServerContextok(Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)final HttpServerContextsse(Flow<HttpServerEvent> body)final HttpServerContextbadRequest(Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)final HttpServerContextnotFound(Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)final HttpServerContextcreated(Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)final HttpServerContextsend(HttpStatus status, Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)final HttpServerContextsend(HttpServerResponse response, Map<Object, Object> attributes)-
-
Constructor Detail
-
HttpServerContext
HttpServerContext(Context<HttpServerCall> context, HttpServerRequestPort request, HttpServerResponse response, Map<Object, Object> attributes)
-
-
Method Detail
-
getPathParameters
final Map<String, String> getPathParameters()
-
getAllParameters
final Map<String, Object> getAllParameters()
-
getContext
final Context<HttpServerCall> getContext()
-
getRequest
final HttpServerRequestPort getRequest()
-
getResponse
final HttpServerResponse getResponse()
-
getAttributes
final Map<Object, Object> getAttributes()
-
next
final HttpServerContext next()
-
success
final HttpServerContext success(SuccessStatus status, Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)
-
redirect
final HttpServerContext redirect(RedirectionStatus status, Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)
-
clientError
final HttpServerContext clientError(ClientErrorStatus status, Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)
-
serverError
final HttpServerContext serverError(ServerErrorStatus status, Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)
-
internalServerError
final HttpServerContext internalServerError(Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)
-
ok
final HttpServerContext ok(Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)
-
sse
final HttpServerContext sse(Flow<HttpServerEvent> body)
-
badRequest
final HttpServerContext badRequest(Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)
-
notFound
final HttpServerContext notFound(Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)
-
created
final HttpServerContext created(Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)
-
send
final HttpServerContext send(HttpStatus status, Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)
-
send
final HttpServerContext send(HttpServerResponse response, Map<Object, Object> attributes)
-
-
-
-