Class HttpServerRequestImpl

    • Constructor Detail

      • HttpServerRequestImpl

        public HttpServerRequestImpl​(HttpMethod aHttpMethod,
                                     Url aUrl,
                                     RequestHeaderFields aHeaderFields,
                                     java.io.InputStream aHttpInputStream,
                                     MediaTypeFactoryLookup aMediaTypeFactoryLookup)
        Constructs a HttpServerRequest 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.
        aHttpInputStream - The InputStream representing the request's HTTP body.
        aMediaTypeFactoryLookup - The lookup factory for retrieving the required MediaType factories.
    • Method Detail

      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object
      • getHttpInputStream

        public java.io.InputStream getHttpInputStream​()
        Retrieves the InputStream from the HTTP InputStream property.
        Specified by:
        getHttpInputStream in interface HttpInputStreamAccessor
        Returns:
        The InputStream stored by the InputStream property.
      • getHttpBody

        public java.lang.String getHttpBody​()
        Retrieves the HTTP body from the HTTP body property.
        Specified by:
        getHttpBody in interface HttpBodyAccessor
        Returns:
        The HTTP body stored by the HTTP body property.