Class HttpExtractor<Q,​P>

    • Constructor Summary

      Constructors 
      Constructor Description
      HttpExtractor()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract java.lang.String getHost​(Q request)
      Returns the request URL host.
      abstract java.lang.String getMethod​(Q request)
      Returns the request method.
      abstract java.lang.String getPath​(Q request)
      Returns the request URL path.
      abstract java.lang.String getRoute​(Q request)
      Returns the request route.
      abstract int getStatusCode​(P response)
      Returns the response status code.
      abstract java.lang.String getUrl​(Q request)
      Returns the request URL.
      abstract java.lang.String getUserAgent​(Q request)
      Returns the request user agent.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpExtractor

        public HttpExtractor()
    • Method Detail

      • getRoute

        @Nullable
        public abstract java.lang.String getRoute​(Q request)
        Returns the request route.
        Parameters:
        request - the HTTP request.
        Returns:
        the request route.
        Since:
        0.19
      • getUrl

        @Nullable
        public abstract java.lang.String getUrl​(Q request)
        Returns the request URL.
        Parameters:
        request - the HTTP request.
        Returns:
        the request URL.
        Since:
        0.19
      • getHost

        @Nullable
        public abstract java.lang.String getHost​(Q request)
        Returns the request URL host.
        Parameters:
        request - the HTTP request.
        Returns:
        the request URL host.
        Since:
        0.19
      • getMethod

        @Nullable
        public abstract java.lang.String getMethod​(Q request)
        Returns the request method.
        Parameters:
        request - the HTTP request.
        Returns:
        the request method.
        Since:
        0.19
      • getPath

        @Nullable
        public abstract java.lang.String getPath​(Q request)
        Returns the request URL path.
        Parameters:
        request - the HTTP request.
        Returns:
        the request URL path.
        Since:
        0.19
      • getUserAgent

        @Nullable
        public abstract java.lang.String getUserAgent​(Q request)
        Returns the request user agent.
        Parameters:
        request - the HTTP request.
        Returns:
        the request user agent.
        Since:
        0.19
      • getStatusCode

        public abstract int getStatusCode​(@Nullable
                                          P response)
        Returns the response status code. If the response is null, this method should return 0.
        Parameters:
        response - the HTTP response.
        Returns:
        the response status code.
        Since:
        0.19