net.officefloor.plugin.socket.server.http
Interface HttpRequest

All Known Implementing Classes:
HttpRequestImpl

public interface HttpRequest

HTTP request from the ServerHttpConnection.

Author:
Daniel Sagenschneider

Method Summary
 InputBufferStream getBody()
          Obtains the InputBufferStream to the body of the HTTP request.
 List<HttpHeader> getHeaders()
          Obtains the HttpHeader instances in the order they appear on the request.
 String getMethod()
          Obtains the HTTP method.
 String getRequestURI()
          Obtains the Request URI as provided on the request.
 String getVersion()
          Obtains the HTTP version of the request.
 

Method Detail

getMethod

String getMethod()
Obtains the HTTP method. For example GET, POST, etc.

Returns:
HTTP method.

getRequestURI

String getRequestURI()
Obtains the Request URI as provided on the request.

Returns:
Request URI as provided on the request.

getVersion

String getVersion()
Obtains the HTTP version of the request. For example HTTP/1.0, HTTP/1.1, etc.

Returns:
HTTP version of the request.

getHeaders

List<HttpHeader> getHeaders()
Obtains the HttpHeader instances in the order they appear on the request.

Returns:
HttpHeader instances in the order they appear on the request.

getBody

InputBufferStream getBody()
Obtains the InputBufferStream to the body of the HTTP request.

Returns:
InputBufferStream to the body of the HTTP request.


Copyright © 2005-2011. All Rights Reserved.