Class HttpRequestImpl

java.lang.Object
org.refcodes.web.HttpRequestImpl
All Implemented Interfaces:
HeaderFieldsAccessor<RequestHeaderFields>, HttpMethodAccessor, HttpRequest, UrlAccessor
Direct Known Subclasses:
HttpClientRequestImpl, HttpServerRequestImpl

public class HttpRequestImpl
extends Object
implements HttpRequest
Implementation of the HttpRequest interface.
  • Field Details

  • Constructor Details

    • HttpRequestImpl

      public HttpRequestImpl​(HttpMethod aHttpMethod, Url aUrl)
      Constructs a HttpRequest with all required attributes.
      Parameters:
      aHttpMethod - The HttpMethod with which the request has been sent.
      aUrl - The Url from which to take the URL specific data.
    • HttpRequestImpl

      public HttpRequestImpl​(HttpMethod aHttpMethod, Url aUrl, RequestHeaderFields aHeaderFields)
      Constructs a HttpRequest with all required attributes.
      Parameters:
      aHttpMethod - The HttpMethod with which the request has been sent.
      aUrl - The Url from which to take the URL specific data.
      aHeaderFields - The RequestHeaderFields sent by the request.
  • Method Details