net.ontopia.topicmaps.webed.impl.basic
Class ActionContext

java.lang.Object
  extended by net.ontopia.topicmaps.webed.impl.basic.ActionContext
All Implemented Interfaces:
ActionContextIF

public class ActionContext
extends java.lang.Object
implements ActionContextIF

INTERNAL: Implementation of the ActionContextIF interface. This class serves mainly as a wrapper class for javax.servlet.ServletRequest to store to maps (one for parameter value pairs and one for attribute value pairs).


Field Summary
protected  Parameters params
           
protected  UserIF user
           
 
Constructor Summary
ActionContext(UserIF user, Parameters params)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Collection getAllActions()
          INTERNAL: Returns all the ActionData objects created for this request, whether triggered or not.
 java.util.Collection getParameterNames()
          INTERNAL: Gets all parameter names stored in this map.
 java.util.Map getParameters()
          INTERNAL: Gets all the parameter key value pairs.
 java.lang.String getParameterSingleValue(java.lang.String paramName)
          INTERNAL: Checks that for the given parameter name exactly one value is available and returns this.
 java.lang.String[] getParameterValues(java.lang.String paramName)
          INTERNAL: Gets the parameter values (as a String array) belonging to the given parameter name.
 UserIF getUser()
          INTERNAL: Gets the user object who executed the requests and in which authority the consequenctly executed actions run.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

params

protected Parameters params

user

protected UserIF user
Constructor Detail

ActionContext

public ActionContext(UserIF user,
                     Parameters params)
Method Detail

getUser

public UserIF getUser()
Description copied from interface: ActionContextIF
INTERNAL: Gets the user object who executed the requests and in which authority the consequenctly executed actions run.

Specified by:
getUser in interface ActionContextIF

getParameters

public java.util.Map getParameters()
Description copied from interface: ActionContextIF
INTERNAL: Gets all the parameter key value pairs.

Specified by:
getParameters in interface ActionContextIF
Returns:
A map containing String object as keys and values.

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String paramName)
Description copied from interface: ActionContextIF
INTERNAL: Gets the parameter values (as a String array) belonging to the given parameter name.

Specified by:
getParameterValues in interface ActionContextIF

getParameterSingleValue

public java.lang.String getParameterSingleValue(java.lang.String paramName)
Description copied from interface: ActionContextIF
INTERNAL: Checks that for the given parameter name exactly one value is available and returns this.

Specified by:
getParameterSingleValue in interface ActionContextIF

getParameterNames

public java.util.Collection getParameterNames()
Description copied from interface: ActionContextIF
INTERNAL: Gets all parameter names stored in this map. Convenience method.

Specified by:
getParameterNames in interface ActionContextIF
Returns:
A collection of String objects.

getAllActions

public java.util.Collection getAllActions()
Description copied from interface: ActionContextIF
INTERNAL: Returns all the ActionData objects created for this request, whether triggered or not.

Specified by:
getAllActions in interface ActionContextIF

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2000-2012 Ontopia.