Class DefaultHttpAnnotationParser.FirstRequestQueryParamProcessor
java.lang.Object
eu.cloudnetservice.driver.network.http.annotation.parser.DefaultHttpAnnotationParser.FirstRequestQueryParamProcessor
- All Implemented Interfaces:
HttpAnnotationProcessor
- Enclosing class:
- DefaultHttpAnnotationParser<T extends HttpComponent<T>>
private static final class DefaultHttpAnnotationParser.FirstRequestQueryParamProcessor
extends Object
implements HttpAnnotationProcessor
A processor for the
@FirstRequestQueryParam annotation.- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildPreprocessor(@NonNull Method method, @NonNull Object handler) Builds a preprocessor for the annotation which is supported by this processor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.cloudnetservice.driver.network.http.annotation.parser.HttpAnnotationProcessor
shouldProcess
-
Constructor Details
-
FirstRequestQueryParamProcessor
private FirstRequestQueryParamProcessor()
-
-
Method Details
-
buildPreprocessor
@NonNull public @NonNull HttpContextPreprocessor buildPreprocessor(@NonNull @NonNull Method method, @NonNull @NonNull Object handler) Builds a preprocessor for the annotation which is supported by this processor. The preprocessor will be called before the actual http handler is called, allowing the parser to modify or even abort the request.All processors will be called for a method, unless this processor overrides the
shouldProcessmethod and decides whether to handle the method or not.If this processor returns null it indicates that it has no interest in adding a preprocessor.
- Specified by:
buildPreprocessorin interfaceHttpAnnotationProcessor- Parameters:
method- the method which gets processed currently.handler- the instance of the handler class in which the method is located.- Returns:
- a preprocessor for a http request context, or null if there is no need for a preprocessor.
-