org.topbraid.base.util
Interface ParameterProvider

All Known Implementing Classes:
SimpleParameterProvider

public interface ParameterProvider

A platform independent wrapper of HttpServletRequest, factoring out the getParameter method.

Author:
Holger Knublauch

Method Summary
 String getParameter(String key)
          Gets the value of a given parameter.
 Iterator<String> listParameterNames()
          Gets an Iterator over all known parameter names.
 

Method Detail

getParameter

String getParameter(String key)
Gets the value of a given parameter. The value "" is a real value, and does not indicate 'not defined'. i.e. if the parameter is missing, this must return null.

Parameters:
key - the parameter
Returns:
the value Is null if the parameter is not defined.

listParameterNames

Iterator<String> listParameterNames()
Gets an Iterator over all known parameter names.

Returns:
the names


Copyright © 2011 TopQuadrant, Inc.. All Rights Reserved.