Interface HttpRequestFactory<T extends HttpRequest>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T newHttpRequest​(java.lang.String method, java.lang.String uri)
      Creates request message with the given request method and request URI.
      T newHttpRequest​(java.lang.String method, java.net.URI uri)
      Creates request message with the given request method and request URI.
    • Method Detail

      • newHttpRequest

        T newHttpRequest​(java.lang.String method,
                         java.lang.String uri)
                  throws MethodNotSupportedException
        Creates request message with the given request method and request URI.
        Parameters:
        method - the request method
        uri - the request URI
        Returns:
        request message
        Throws:
        MethodNotSupportedException - if the given method is not supported.
        Since:
        5.0
      • newHttpRequest

        T newHttpRequest​(java.lang.String method,
                         java.net.URI uri)
                  throws MethodNotSupportedException
        Creates request message with the given request method and request URI.
        Parameters:
        method - the request method
        uri - the request URI
        Returns:
        request message
        Throws:
        MethodNotSupportedException - if the given method is not supported.