public class IlvServerActionEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
protected String[] |
_params
The parameter array of the server action event.
|
source
Constructor and Description |
---|
IlvServerActionEvent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String action)
The constructor with a HTTP request, a HTTP response, and an action name.
|
IlvServerActionEvent(javax.servlet.http.HttpServletRequest request,
String action,
String[] params)
The constructor with a http request, an action name, and the
parameters of the request.
|
IlvServerActionEvent(Object source)
The constructor with a event source.
|
Modifier and Type | Method and Description |
---|---|
String |
getActionName()
Returns the name of the action corresponding
to this event.
|
double |
getDoubleParameter(int index)
Returns a double parameter at the specified index.
|
float |
getFloatParameter(int index)
Returns a float parameter at the specified index.
|
int |
getIntParameter(int index)
Returns an integer parameter at the specified index.
|
long |
getLongParameter(int index)
Returns a long parameter at the specified index.
|
int |
getParameterCount()
Returns the number of parameters for this action.
|
String[] |
getParameters()
Returns the array of all parameters of this action.
|
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the request origin of the action.
|
javax.servlet.http.HttpServletResponse |
getResponse()
Gets the response of the action.
|
String |
getStringParameter(int index)
Returns a string parameter at the specified index.
|
getSource, toString
protected String[] _params
public IlvServerActionEvent(Object source)
source
- The event source.public IlvServerActionEvent(javax.servlet.http.HttpServletRequest request, String action, String[] params)
request
- The HttpServletRequest
instance.action
- The action name.params
- The parameters of the request.public IlvServerActionEvent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String action)
request
- The HttpServletRequest
instance.response
- The HttpServletResponse
instance.action
- The action name.public String getActionName()
public String[] getParameters()
public int getParameterCount()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public String getStringParameter(int index) throws javax.servlet.ServletException
index
- The parameter index.javax.servlet.ServletException
public int getIntParameter(int index) throws javax.servlet.ServletException
index
- The parameter index.javax.servlet.ServletException
public float getFloatParameter(int index) throws javax.servlet.ServletException
index
- The parameter index.javax.servlet.ServletException
public double getDoubleParameter(int index) throws javax.servlet.ServletException
index
- The parameter index.javax.servlet.ServletException
public long getLongParameter(int index) throws javax.servlet.ServletException
index
- The parameter index.javax.servlet.ServletException
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.