com.faunos.util.net.http
Interface RequestHeader

All Known Implementing Classes:
RequestStage

public interface RequestHeader

An interface defining the attributes of the header part of an HTTP request.

Author:
Babak Farhang

Method Summary
 Map<String,String> getProperties()
          Returns a name/value map encapsulating the HTTP request headers received.
 String getUri()
          Returns the URI referenced in the first line of the HTTP request.
 Verb getVerb()
          Returns the HTTP verb.
 String getVersion()
          Returns the HTTP version string in the first line of the HTTP request.
 boolean isPersistentConnection()
          Determines whether this will be a persistent connection.
 

Method Detail

getVerb

Verb getVerb()
Returns the HTTP verb.


getUri

String getUri()
Returns the URI referenced in the first line of the HTTP request.

Returns:
a string of the form "/path1/path2/app1?name1=value1&name2=value2"

getVersion

String getVersion()
Returns the HTTP version string in the first line of the HTTP request.

Returns:
HTTP/1.1 or HTTP/1.0

getProperties

Map<String,String> getProperties()
Returns a name/value map encapsulating the HTTP request headers received. These are of the form

      ${name}: ${value} CRLF
 


isPersistentConnection

boolean isPersistentConnection()
Determines whether this will be a persistent connection. Persistent connections allow for HTTP requests to be pipelined over a same socket. This property is explicitly exposed because it affects the HTTP response headers.



SourceForge.net Logo