oracle.cabo.servlet.event
Class PageEventImpl
java.lang.Object
|
+--java.util.EventObject
|
+--oracle.cabo.servlet.event.PageEventImpl
- All Implemented Interfaces:
- PageEvent, java.io.Serializable
- public class PageEventImpl
- extends java.util.EventObject
- implements PageEvent
Class for events triggered on a Page. PageEvents encapsulate a servlet request.
- See Also:
EventHandler
, Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
PageEventImpl(Page source, java.util.Dictionary parameters, java.lang.String nameKey)
Create a PageEvent on a page with parameters pulled from a dictionary. |
PageEventImpl(Page source, javax.servlet.http.HttpServletRequest request, java.lang.String nameKey)
Create a PageEventImpl on a page from a specific request. |
Method Summary |
java.lang.String |
getName()
Returns the name of the event. |
java.lang.String |
getParameter(java.lang.String parameterName)
Returns a single parameter value. |
java.util.Enumeration |
getParameterNames()
Returns an enumeration of all parameter names. |
java.lang.String[] |
getParameterValues(java.lang.String parameterName)
Returns an array containing all the parameter values available for a single name. |
java.lang.String |
toQueryString()
Converts the event to a query string. |
java.lang.String |
toString()
Converts the event to a string. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PageEventImpl
public PageEventImpl(Page source,
javax.servlet.http.HttpServletRequest request,
java.lang.String nameKey)
- Create a PageEventImpl on a page from a specific request.
PageEventImpl
public PageEventImpl(Page source,
java.util.Dictionary parameters,
java.lang.String nameKey)
- Create a PageEvent on a page with parameters pulled from a dictionary.
getName
public java.lang.String getName()
- Returns the name of the event.
-
- Specified by:
getName
in interface PageEvent
getParameter
public java.lang.String getParameter(java.lang.String parameterName)
- Returns a single parameter value. If multiple values are available for a single name, this method will return only the first; clients should call
getParameterValues()
if they need all values.
-
- Specified by:
getParameter
in interface PageEvent
-
- Parameters:
parameterName
- the name of the parameter
- Returns:
- a single value available for the parameter name, or null if no value is available
- See Also:
getParameterValues(java.lang.String)
getParameterValues
public java.lang.String[] getParameterValues(java.lang.String parameterName)
- Returns an array containing all the parameter values available for a single name.
-
- Specified by:
getParameterValues
in interface PageEvent
-
- Parameters:
parameterName
- the name of the parameter
- Returns:
- an array of all parameter values available for the parameter name
getParameterNames
public java.util.Enumeration getParameterNames()
- Returns an enumeration of all parameter names.
-
- Specified by:
getParameterNames
in interface PageEvent
toQueryString
public java.lang.String toQueryString()
- Converts the event to a query string.
-
- Specified by:
toQueryString
in interface PageEvent
toString
public java.lang.String toString()
- Converts the event to a string.
-
- Overrides:
toString
in class java.util.EventObject