Uses of Interface
eu.cloudnetservice.driver.network.http.HttpContext
Packages that use HttpContext
Package
Description
-
Uses of HttpContext in eu.cloudnetservice.driver.network.http
Methods in eu.cloudnetservice.driver.network.http that return HttpContextModifier and TypeMethodDescriptionHttpContext.addCookie(@NonNull HttpCookie httpCookie) Adds the given cookie to the response, removing the current one if there is already a cookie with the same name.HttpContext.addInvocationHint(@NonNull String key, @NonNull Object value) Adds an invocation hint for the current handler call chain.<T> @NonNull HttpContextHttpContext.addInvocationHints(@NonNull String key, @NonNull Collection<T> value) Adds an invocation hint for the current handler call chain.HttpContext.cancelNext(boolean cancelNext) Sets whether the current handler should be the last handler in the listener call chain, cancelling the call of all handlers which are still waiting to be called down the line.HttpContext.clearCookies()Removes all cookies previously set in the response.HttpContext.closeAfter(boolean value) Sets whether the connection to client should be closed after the last handler in the chain.HttpMessage.context()Get the context this message is processed in.HttpContext.cookies(@NonNull Collection<HttpCookie> cookies) Sets the given cookies in the response, removing all previously set cookies.HttpContextPreprocessor.preProcessContext(@NonNull String path, @NonNull HttpContext context) Called to preprocess the given context before passing it to the associated handler.HttpContext.removeCookie(@NonNull String name) Removes the given cookie from the response, if set.Methods in eu.cloudnetservice.driver.network.http with parameters of type HttpContextModifier and TypeMethodDescriptionabstract voidHttpHandler.handle(@NonNull String path, @NonNull HttpContext context) Handles a http request whose path (and other supplied attributes) while registering is matching the requested path of the client.HttpContextPreprocessor.preProcessContext(@NonNull String path, @NonNull HttpContext context) Called to preprocess the given context before passing it to the associated handler. -
Uses of HttpContext in eu.cloudnetservice.driver.network.http.annotation.parser
Fields in eu.cloudnetservice.driver.network.http.annotation.parser with type parameters of type HttpContextModifier and TypeFieldDescriptionprivate final @NonNull BiFunction<String,HttpContext, Object> ParameterInvocationHint.valueResolverThe field for thevalueResolverrecord component.Methods in eu.cloudnetservice.driver.network.http.annotation.parser that return types with arguments of type HttpContextModifier and TypeMethodDescriptionParameterInvocationHint.valueResolver()Returns the value of thevalueResolverrecord component.Methods in eu.cloudnetservice.driver.network.http.annotation.parser with parameters of type HttpContextModifier and TypeMethodDescriptionMethodHttpHandlerInvoker.buildInvocationArguments(@NonNull String path, @NonNull HttpContext context) Constructs the arguments array which will be passed to the method which is actually handling the associated request.voidMethodHttpHandlerInvoker.handle(@NonNull String path, @NonNull HttpContext context) Handles a http request whose path (and other supplied attributes) while registering is matching the requested path of the client.ParameterInvocationHint.resolveValue(@NonNull String requestPath, @NonNull HttpContext context) Resolves the value of this hint which should be injected into the method parameter at the associated index depending on the calling context and path.Method parameters in eu.cloudnetservice.driver.network.http.annotation.parser with type arguments of type HttpContextModifier and TypeMethodDescriptionstatic <A extends Annotation>
@NonNull Collection<ParameterInvocationHint>HttpAnnotationProcessorUtil.mapParameters(@NonNull Method method, @NonNull Class<A> annotationType, @NonNull BiFunction<Parameter, A, BiFunction<String, HttpContext, Object>> mapper) Applies each parameter of the given method which is annotated with the given annotation to the given mapper to determine a resolver for a value which should get injected into the parameter when receiving a http request.Constructor parameters in eu.cloudnetservice.driver.network.http.annotation.parser with type arguments of type HttpContextModifierConstructorDescriptionParameterInvocationHint(int index, @NonNull Parameter target, @NonNull BiFunction<String, HttpContext, Object> valueResolver) Creates an instance of aParameterInvocationHintrecord class. -
Uses of HttpContext in eu.cloudnetservice.driver.network.netty.http
Classes in eu.cloudnetservice.driver.network.netty.http that implement HttpContextModifier and TypeClassDescription(package private) final classThe default netty implementation of a http handling context.Methods in eu.cloudnetservice.driver.network.netty.http that return HttpContextModifier and TypeMethodDescriptionNettyHttpServerContext.addCookie(@NonNull HttpCookie httpCookie) Adds the given cookie to the response, removing the current one if there is already a cookie with the same name.NettyHttpServerContext.addInvocationHint(@NonNull String key, @NonNull Object value) Adds an invocation hint for the current handler call chain.<T> @NonNull HttpContextNettyHttpServerContext.addInvocationHints(@NonNull String key, @NonNull Collection<T> value) Adds an invocation hint for the current handler call chain.NettyHttpServerContext.cancelNext(boolean cancelNext) Sets whether the current handler should be the last handler in the listener call chain, cancelling the call of all handlers which are still waiting to be called down the line.NettyHttpServerContext.clearCookies()Removes all cookies previously set in the response.NettyHttpServerContext.closeAfter(boolean value) Sets whether the connection to client should be closed after the last handler in the chain.NettyHttpServerRequest.context()Get the context this message is processed in.NettyHttpServerResponse.context()Get the context this message is processed in.NettyHttpServerContext.cookies(@NonNull Collection<HttpCookie> cookies) Sets the given cookies in the response, removing all previously set cookies.NettyHttpServerContext.removeCookie(@NonNull String name) Removes the given cookie from the response, if set.Methods in eu.cloudnetservice.driver.network.netty.http with parameters of type HttpContextModifier and TypeMethodDescriptionprivate booleanNettyHttpServerHandler.handleMessage0(NettyHttpServer.HttpHandlerEntry httpHandlerEntry, @NonNull HttpContext context, @NonNull String fullPath, @NonNull String[] pathEntries, @NonNull String[] handlerPathEntries) Handles the incoming request and posts it the given handler if the data matches the settings of the handler.