org.apache.beehive.netui.script.common
Class ScriptablePageInput

Object
  extended by AbstractMap
      extended by AbstractScriptableMap
          extended by ScriptablePageInput
All Implemented Interfaces:
Map

public class ScriptablePageInput
extends AbstractScriptableMap

Provide a Map object that exposes a set of page inputs to expression language clients. Access to these page inputs is based on the name of the page input.

Access is optimized for read in that the "get" method is fast. The entrySet() method is only used if needed, which is generally to toString the Map.


Constructor Summary
ScriptablePageInput(ServletRequest request)
           
 
Method Summary
 boolean containsKey(Object key)
           
 Set entrySet()
          Create a Set of page input entries.
 boolean equals(Object obj)
           
 Object get(Object name)
           
 
Methods inherited from class AbstractMap
clear, clone, containsValue, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScriptablePageInput

public ScriptablePageInput(ServletRequest request)
Method Detail

get

public Object get(Object name)
Specified by:
get in interface Map
Overrides:
get in class AbstractMap

entrySet

public Set entrySet()
Create a Set of page input entries. This implementation assumes that the page input set does not change, which is acceptable for JSP clients as the page inputs have been specified when the JSP starts to render.

Specified by:
entrySet in interface Map
Specified by:
entrySet in class AbstractMap
Returns:
Set

equals

public boolean equals(Object obj)
Specified by:
equals in interface Map
Overrides:
equals in class AbstractMap

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map
Overrides:
containsKey in class AbstractMap