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(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response,
String action)
The constructor with a HTTP request, a HTTP response, and an action name.
|
IlvServerActionEvent(jakarta.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.
|
jakarta.servlet.http.HttpServletRequest |
getRequest()
Returns the request origin of the action.
|
jakarta.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(jakarta.servlet.http.HttpServletRequest request, String action, String[] params)
request
- The HttpServletRequest
instance.action
- The action name.params
- The parameters of the request.public IlvServerActionEvent(jakarta.servlet.http.HttpServletRequest request, jakarta.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 jakarta.servlet.http.HttpServletRequest getRequest()
public jakarta.servlet.http.HttpServletResponse getResponse()
public String getStringParameter(int index) throws jakarta.servlet.ServletException
index
- The parameter index.jakarta.servlet.ServletException
public int getIntParameter(int index) throws jakarta.servlet.ServletException
index
- The parameter index.jakarta.servlet.ServletException
public float getFloatParameter(int index) throws jakarta.servlet.ServletException
index
- The parameter index.jakarta.servlet.ServletException
public double getDoubleParameter(int index) throws jakarta.servlet.ServletException
index
- The parameter index.jakarta.servlet.ServletException
public long getLongParameter(int index) throws jakarta.servlet.ServletException
index
- The parameter index.jakarta.servlet.ServletException
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.