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 Details

    • FirstRequestQueryParamProcessor

      private FirstRequestQueryParamProcessor()
  • Method Details

    • buildPreprocessor

      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 shouldProcess method 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:
      buildPreprocessor in interface HttpAnnotationProcessor
      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.