net.craftforge.essential.controller
Interface Request

All Known Implementing Classes:
BasicRequestImpl

public interface Request

A controller request normalizes the data from an arbitrary input and provides a standard way of how a controller access the data provided by different contexts.

Since:
19.02.2011
Author:
Christian Bick

Method Summary
 InputStream getBodyInputStream()
          Gets the input stream of the request body.
 Map<String,String[]> getHeaders()
          Gets the headers of the request.
 String getHttpMethod()
          Gets the HTTP method of the request.
 Map<String,String[]> getParameters()
          Gets the parameter map, containing all query or form parameters being delivered in the request.
 String getUrlInfoPart()
          Gets the info part of the request url.
 

Method Detail

getHttpMethod

String getHttpMethod()
Gets the HTTP method of the request.

Returns:
The HTTP method of the request

getUrlInfoPart

String getUrlInfoPart()
Gets the info part of the request url. This is the part being responsible for allocating resources within the framework.

Returns:
The info part of the request url

getBodyInputStream

InputStream getBodyInputStream()
Gets the input stream of the request body.

Returns:
The input stream of the request body.

getParameters

Map<String,String[]> getParameters()
Gets the parameter map, containing all query or form parameters being delivered in the request.

Returns:
The parameter map

getHeaders

Map<String,String[]> getHeaders()
Gets the headers of the request.

Returns:
The headers as a map (keys = header names, values = header contents)


Copyright © 2011. All Rights Reserved.