-
- All Implemented Interfaces:
public final class HttpServerContext
-
-
Field Summary
Fields Modifier and Type Field Description private final HttpServerRequestPortrequestprivate final HttpServerResponseresponseprivate final Exceptionexceptionprivate final HttpMethodmethodprivate final HttpProtocolprotocolprivate final Stringhostprivate final Integerportprivate final Stringpathprivate final MultiMap<String, String>queryParametersprivate final List<HttpPartPort>partsprivate final MultiMap<String, String>formParametersprivate final List<ContentType>acceptprivate final List<X509Certificate>certificateChainprivate final Map<String, HttpPartPort>partsMapprivate final URLurlprivate final StringuserAgentprivate final Stringrefererprivate final Stringoriginprivate final X509Certificatecertificateprivate final HttpStatusstatusprivate final Map<String, String>pathParametersprivate final Map<String, Object>allParametersprivate final Context<HttpServerCall>contextprivate final Map<Object, Object>attributes
-
Constructor Summary
Constructors Constructor Description HttpServerContext(Context<HttpServerCall> context, Map<Object, Object> attributes)
-
Method Summary
Modifier and Type Method Description final HttpServerRequestPortgetRequest()final HttpServerResponsegetResponse()final ExceptiongetException()final HttpMethodgetMethod()final HttpProtocolgetProtocol()final StringgetHost()final IntegergetPort()final StringgetPath()final MultiMap<String, String>getQueryParameters()final List<HttpPartPort>getParts()final MultiMap<String, String>getFormParameters()final List<ContentType>getAccept()final List<X509Certificate>getCertificateChain()final Map<String, HttpPartPort>getPartsMap()final URLgetUrl()final StringgetUserAgent()final StringgetReferer()final StringgetOrigin()final X509CertificategetCertificate()final HttpStatusgetStatus()final Map<String, String>getPathParameters()final Map<String, Object>getAllParameters()final Context<HttpServerCall>getContext()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 HttpServerContextserverError(ServerErrorStatus status, Exception exception, MultiMap<String, String> headers, Map<Object, Object> attributes)final HttpServerContextinternalServerError(Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)final HttpServerContextinternalServerError(Exception exception, MultiMap<String, String> headers, 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, Map<Object, Object> attributes)
-
-
Method Detail
-
getRequest
final HttpServerRequestPort getRequest()
-
getResponse
final HttpServerResponse getResponse()
-
getException
final Exception getException()
-
getMethod
final HttpMethod getMethod()
-
getProtocol
final HttpProtocol getProtocol()
-
getQueryParameters
final MultiMap<String, String> getQueryParameters()
-
getFormParameters
final MultiMap<String, String> getFormParameters()
-
getCertificateChain
final List<X509Certificate> getCertificateChain()
-
getPartsMap
final Map<String, HttpPartPort> getPartsMap()
-
getUserAgent
final String getUserAgent()
-
getReferer
final String getReferer()
-
getCertificate
final X509Certificate getCertificate()
-
getStatus
final HttpStatus getStatus()
-
getPathParameters
final Map<String, String> getPathParameters()
-
getAllParameters
final Map<String, Object> getAllParameters()
-
getContext
final Context<HttpServerCall> getContext()
-
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)
-
serverError
final HttpServerContext serverError(ServerErrorStatus status, Exception exception, MultiMap<String, String> headers, Map<Object, Object> attributes)
-
internalServerError
final HttpServerContext internalServerError(Object body, MultiMap<String, String> headers, ContentType contentType, List<HttpCookie> cookies, Map<Object, Object> attributes)
-
internalServerError
final HttpServerContext internalServerError(Exception exception, MultiMap<String, String> headers, 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)
-
-
-
-