Milyn-Tinak Version 0.6.1

org.milyn.device.request
Interface HttpRequest

All Superinterfaces:
Request

public interface HttpRequest
extends Request

Http interface definition.

Definition of access to the HTTP request attributes - namely the request headers and parameters.

Method signatures are based on the servlet spec HttpServletRequest class.

Author:
Tom Fennelly

Method Summary
 java.lang.String getHeader(java.lang.String name)
          Get the named HTTP request header.
 java.lang.String getParameter(java.lang.String name)
          Get the named HTTP request parameter from the request query string.
 

Method Detail

getHeader

public java.lang.String getHeader(java.lang.String name)
Get the named HTTP request header.

Parameters:
name - The request header name.
Returns:
The value of the header with the specified name, or null if the header isn't present in the request.

getParameter

public java.lang.String getParameter(java.lang.String name)
Get the named HTTP request parameter from the request query string.

Parameters:
name - The name of the required request parameter.
Returns:
The value of the request parameter, or null if the parameter isn't present in the request.

Milyn-Tinak Version 0.6.1