NextApp Echo
App Container 1.1.4

nextapp.echoservlet
Class InitialParametersImpl

java.lang.Object
  extended bynextapp.echoservlet.InitialParametersImpl
All Implemented Interfaces:
InitialParameters, java.io.Serializable

class InitialParametersImpl
extends java.lang.Object
implements InitialParameters, java.io.Serializable

The implementation of the InitialParameters interface.

See Also:
InitialParameters

Field Summary
private  java.util.Map parameterMap
           
 
Fields inherited from interface nextapp.echoservlet.InitialParameters
ATTRIBUTE_NAME
 
Constructor Summary
(package private) InitialParametersImpl(java.util.Map parameterMap)
           
 
Method Summary
 java.lang.String[] getAllParameterNames()
          Returns an array of all the initial request parameters names.
 java.lang.String getParameter(java.lang.String name)
          Returns the value of an initial request parameter as a String, or null if the parameter does not exist.
 java.util.Map getParameterMap()
          Returns a java.util.Map of the parameters of the initial request.
 java.util.Iterator getParameterNames()
          Returns an Iterator of String objects containing the names of the parameters contained in the initial request.
 java.lang.String[] getParameterValues(java.lang.String name)
          Returns an array of String objects containing all of the values the given initial request parameter has, or null if the parameter does not exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameterMap

private java.util.Map parameterMap
Constructor Detail

InitialParametersImpl

InitialParametersImpl(java.util.Map parameterMap)
Method Detail

getAllParameterNames

public java.lang.String[] getAllParameterNames()
Description copied from interface: InitialParameters
Returns an array of all the initial request parameters names. If the initial request has no parameters, the method returns an zero length String array.

Specified by:
getAllParameterNames in interface InitialParameters
Returns:
an array of String objects, each String containing the name of a request parameter; or a zero length array if the request has no parameters
See Also:
InitialParameters.getAllParameterNames()

getParameter

public java.lang.String getParameter(java.lang.String name)
Description copied from interface: InitialParameters
Returns the value of an initial request parameter as a String, or null if the parameter does not exist.

You should only use this method when you are sure the parameter has only one value. If the parameter might have more than one value, use getParameterValues(java.lang.String).

If you use this method with a multivalued parameter, the value returned is equal to the first value in the array returned by getParameterValues.

Specified by:
getParameter in interface InitialParameters
Parameters:
name - - a String specifying the name of the parameter
Returns:
a String representing the single value of the parameter
See Also:
InitialParameters.getParameter(java.lang.String)

getParameterMap

public java.util.Map getParameterMap()
Description copied from interface: InitialParameters
Returns a java.util.Map of the parameters of the initial request.

Specified by:
getParameterMap in interface InitialParameters
Returns:
an immutable java.util.Map containing parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String[].
See Also:
InitialParameters.getParameterMap()

getParameterNames

public java.util.Iterator getParameterNames()
Description copied from interface: InitialParameters
Returns an Iterator of String objects containing the names of the parameters contained in the initial request. If the initial request has no parameters, the method returns an empty Enumeration.

Specified by:
getParameterNames in interface InitialParameters
Returns:
an Iterator of String objects, each String containing the name of an initial request parameter; or an empty Enumeration if the request has no parameters
See Also:
InitialParameters.getParameterNames()

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String name)
Description copied from interface: InitialParameters
Returns an array of String objects containing all of the values the given initial request parameter has, or null if the parameter does not exist.

If the parameter has a single value, the array has a length of 1.

Specified by:
getParameterValues in interface InitialParameters
Parameters:
name - - a String containing the name of the parameter whose value is requested
Returns:
an array of String objects containing the parameter's values
See Also:
InitialParameters.getParameterValues(java.lang.String)

NextApp Echo
App Container 1.1.4