Class VertxResteasyReactiveRequestContext
java.lang.Object
org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext<ResteasyReactiveRequestContext,ServerRestHandler>
org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext
org.jboss.resteasy.reactive.server.vertx.VertxResteasyReactiveRequestContext
- All Implemented Interfaces:
io.vertx.core.Handler<Void>,Closeable,AutoCloseable,Runnable,org.jboss.resteasy.reactive.common.core.ResteasyReactiveCallbackContext,ResteasyReactiveInjectionContext,ServerHttpRequest,ServerHttpResponse,ServerRequestContext,StreamingResponse<ServerHttpResponse>
public class VertxResteasyReactiveRequestContext
extends ResteasyReactiveRequestContext
implements ServerHttpRequest, ServerHttpResponse, io.vertx.core.Handler<Void>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.resteasy.reactive.server.spi.ServerHttpRequest
ServerHttpRequest.ReadCallback -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.vertx.ext.web.RoutingContextstatic final Stringprotected Consumer<ResteasyReactiveRequestContext>protected final io.vertx.core.http.HttpServerRequestprotected final io.vertx.core.http.HttpServerResponseFields inherited from class org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext
deployment, EMPTY_ARRAYFields inherited from class org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext
abortHandlerChain, CUSTOM_RR_PROPERTIES_PREFIX, handlers, log, logWebApplicationExceptions, position, throwable -
Constructor Summary
ConstructorsConstructorDescriptionVertxResteasyReactiveRequestContext(Deployment deployment, io.vertx.ext.web.RoutingContext context, org.jboss.resteasy.reactive.spi.ThreadSetupAction requestContext, ServerRestHandler[] handlerChain, ServerRestHandler[] abortHandlerChain, ClassLoader devModeTccl) -
Method Summary
Modifier and TypeMethodDescriptionaddCloseHandler(Runnable onClose) addDrainHandler(Runnable onDrain) addResponseHeader(CharSequence name, CharSequence value) voidbooleanclosed()booleancontainsRequestHeader(CharSequence accept) createInputStream(ByteBuffer existingData) end()end(byte[] data) getAllQueryParams(String name) getAllRequestHeaders(String name) io.vertx.ext.web.RoutingContextprotected io.netty.channel.EventLoopgetQueryParam(String name) getRequestHeader(CharSequence name) getResponseHeader(String name) voidbooleanbooleanbooleanbooleanquery()registerTimer(long millis, Runnable task) voidremoveResponseHeader(String name) booleansetChunked(boolean chunked) voidprotected voidsetQueryParamsFrom(String uri) setResponseHeader(CharSequence name, CharSequence value) setResponseHeader(CharSequence name, Iterable<CharSequence> values) setStatusCode(int code) <T> Tio.vertx.core.http.HttpServerRequestio.vertx.core.http.HttpServerResponsewrite(byte[] data) Methods inherited from class org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext
abortWith, close, createSecurityContext, endResponse, getAbsoluteURI, getAdditionalAnnotations, getAllAnnotations, getAsyncResponse, getAuthority, getContainerRequestContext, getContainerResponseContext, getCookieParameter, getDeployment, getEndpointInstance, getEntityWriter, getFormData, getFormParameter, getGenericReturnType, getHeader, getHttpHeaders, getInputStream, getMatchedURIs, getMatrixParameter, getMethod, getMethodAnnotations, getOrCreateOutputStream, getOutputStream, getParameters, getPath, getPathParam, getPathParameter, getPathSegments, getPathWithoutPrefix, getProviders, getQueryParameter, getQueryParameter, getReaderInterceptors, getRemaining, getRequest, getRequestEntity, getRequestHeaders, getResourceLocatorPathParam, getResponse, getResponseContentType, getResponseEntity, getResponseMediaType, getResteasyReactiveResourceInfo, getResult, getScheme, getSecurityContext, getSseEventSink, getTarget, getThrowable, getUriInfo, getWriterInterceptors, handleRequestScopeActivation, handlesUnmappedException, handleUnmappedException, handleUnrecoverableError, hasGenericReturnType, hasInputStream, initPathSegments, isProducesChecked, isSecurityContextSet, mapExceptionIfPresent, requestScopeDeactivated, resetBuildTimeSerialization, restart, restart, restarted, saveUriMatchState, securityContextUpdated, setAdditionalAnnotations, setAllAnnotations, setAsyncResponse, setEndpointInstance, setEntityWriter, setFormData, setGenericReturnType, setInputStream, setMaxPathParams, setMethod, setMethodAnnotations, setOutputStream, setPathParamValue, setProducesChecked, setReaderInterceptors, setRemaining, setRequestEntity, setRequestUri, setResponse, setResponseContentType, setResponseContentType, setResult, setSecurityContext, setSseEventSink, setUriInfo, setWriterInterceptorsMethods inherited from class org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext
beginAsyncProcessing, captureCDIRequestScope, getAbortHandlerChain, getHandlers, getPosition, getProperty, getPropertyNames, handleException, handleException, invokeHandler, isRequestScopeManagementRequired, isSuspended, registerCompletionCallback, registerConnectionCallback, removeProperty, requireCDIRequestScope, restart, restart, resume, resume, resume, resume, run, setAbortHandlerChain, setAbortHandlerChainStarted, setPosition, setProperty, setSuspended, suspend, unwrapExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.resteasy.reactive.common.core.ResteasyReactiveCallbackContext
registerCompletionCallback, registerConnectionCallback
-
Field Details
-
CONTINUE
- See Also:
-
context
protected final io.vertx.ext.web.RoutingContext context -
request
protected final io.vertx.core.http.HttpServerRequest request -
response
protected final io.vertx.core.http.HttpServerResponse response -
preCommitTask
-
-
Constructor Details
-
VertxResteasyReactiveRequestContext
public VertxResteasyReactiveRequestContext(Deployment deployment, io.vertx.ext.web.RoutingContext context, org.jboss.resteasy.reactive.spi.ThreadSetupAction requestContext, ServerRestHandler[] handlerChain, ServerRestHandler[] abortHandlerChain, ClassLoader devModeTccl)
-
-
Method Details
-
addCloseHandler
- Specified by:
addCloseHandlerin interfaceServerHttpResponse
-
getContext
public io.vertx.ext.web.RoutingContext getContext() -
serverRequest
- Specified by:
serverRequestin classResteasyReactiveRequestContext
-
serverResponse
- Specified by:
serverResponsein interfaceServerRequestContext- Specified by:
serverResponsein classResteasyReactiveRequestContext
-
setQueryParamsFrom
- Overrides:
setQueryParamsFromin classResteasyReactiveRequestContext
-
getEventLoop
protected io.netty.channel.EventLoop getEventLoop()- Specified by:
getEventLoopin classResteasyReactiveRequestContext
-
getContextExecutor
- Overrides:
getContextExecutorin classorg.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext<ResteasyReactiveRequestContext,ServerRestHandler>
-
registerTimer
- Specified by:
registerTimerin classResteasyReactiveRequestContext
-
resumeExternalProcessing
public boolean resumeExternalProcessing()- Specified by:
resumeExternalProcessingin classResteasyReactiveRequestContext
-
getRequestHeader
- Specified by:
getRequestHeaderin interfaceServerHttpRequest
-
getAllRequestHeaders
- Specified by:
getAllRequestHeadersin interfaceServerHttpRequest
-
getAllRequestHeaders
- Specified by:
getAllRequestHeadersin interfaceServerHttpRequest
-
containsRequestHeader
- Specified by:
containsRequestHeaderin interfaceServerHttpRequest
-
getRequestPath
- Specified by:
getRequestPathin interfaceServerHttpRequest
-
getRequestMethod
- Specified by:
getRequestMethodin interfaceServerHttpRequest
-
getRequestNormalisedPath
- Specified by:
getRequestNormalisedPathin interfaceServerHttpRequest
-
getRequestAbsoluteUri
- Specified by:
getRequestAbsoluteUriin interfaceServerHttpRequest
-
getRequestScheme
- Specified by:
getRequestSchemein interfaceServerHttpRequest
-
getRequestHost
- Specified by:
getRequestHostin interfaceServerHttpRequest
-
closeConnection
public void closeConnection()- Specified by:
closeConnectionin interfaceServerHttpRequest
-
getQueryParam
- Specified by:
getQueryParamin interfaceServerHttpRequest
-
getAllQueryParams
- Specified by:
getAllQueryParamsin interfaceServerHttpRequest
-
query
- Specified by:
queryin interfaceServerHttpRequest
-
queryParamNames
- Specified by:
queryParamNamesin interfaceServerHttpRequest
-
isRequestEnded
public boolean isRequestEnded()- Specified by:
isRequestEndedin interfaceServerHttpRequest
-
createInputStream
- Specified by:
createInputStreamin interfaceServerHttpRequest
-
createInputStream
- Specified by:
createInputStreamin interfaceServerHttpRequest
-
pauseRequestInput
- Specified by:
pauseRequestInputin interfaceServerHttpRequest
-
resumeRequestInput
- Specified by:
resumeRequestInputin interfaceServerHttpRequest
-
setReadListener
- Specified by:
setReadListenerin interfaceServerHttpRequest
-
getExistingParsedForm
- Specified by:
getExistingParsedFormin interfaceServerHttpRequest
-
isOnIoThread
public boolean isOnIoThread()- Specified by:
isOnIoThreadin interfaceServerHttpRequest
-
unwrap
- Specified by:
unwrapin interfaceResteasyReactiveInjectionContext- Specified by:
unwrapin interfaceServerHttpRequest- Overrides:
unwrapin classResteasyReactiveRequestContext
-
setStatusCode
- Specified by:
setStatusCodein interfaceServerHttpResponse- Specified by:
setStatusCodein interfaceStreamingResponse<ServerHttpResponse>
-
end
- Specified by:
endin interfaceServerHttpResponse
-
headWritten
public boolean headWritten()- Specified by:
headWrittenin interfaceServerHttpResponse
-
end
- Specified by:
endin interfaceServerHttpResponse
-
end
- Specified by:
endin interfaceServerHttpResponse
-
addResponseHeader
- Specified by:
addResponseHeaderin interfaceServerHttpResponse
-
setResponseHeader
- Specified by:
setResponseHeaderin interfaceServerHttpResponse- Specified by:
setResponseHeaderin interfaceStreamingResponse<ServerHttpResponse>
-
setResponseHeader
- Specified by:
setResponseHeaderin interfaceServerHttpResponse- Specified by:
setResponseHeaderin interfaceStreamingResponse<ServerHttpResponse>
-
getAllResponseHeaders
- Specified by:
getAllResponseHeadersin interfaceServerHttpResponse
-
getResponseHeader
- Specified by:
getResponseHeaderin interfaceServerHttpResponse
-
removeResponseHeader
- Specified by:
removeResponseHeaderin interfaceServerHttpResponse
-
closed
public boolean closed()- Specified by:
closedin interfaceServerHttpResponse
-
setChunked
- Specified by:
setChunkedin interfaceServerHttpResponse
-
write
- Specified by:
writein interfaceServerHttpResponse
-
write
- Specified by:
writein interfaceServerHttpResponse
-
sendFile
- Specified by:
sendFilein interfaceServerHttpResponse
-
createResponseOutputStream
- Specified by:
createResponseOutputStreamin interfaceServerHttpResponse
-
setPreCommitListener
- Specified by:
setPreCommitListenerin interfaceServerHttpResponse
-
handle
- Specified by:
handlein interfaceio.vertx.core.Handler<Void>
-
addDrainHandler
- Specified by:
addDrainHandlerin interfaceServerHttpResponse
-
isWriteQueueFull
public boolean isWriteQueueFull()- Specified by:
isWriteQueueFullin interfaceServerHttpResponse
-
vertxServerRequest
public io.vertx.core.http.HttpServerRequest vertxServerRequest() -
vertxServerResponse
public io.vertx.core.http.HttpServerResponse vertxServerResponse()
-