public class FlashServletRequest extends MappedAttributesObject implements java.lang.Comparable<FlashServletRequest>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
ivHashCode, ivHashFlds, ivObjAttrs
Constructor and Description |
---|
FlashServletRequest()
Constructs a new servlet request object.
|
FlashServletRequest(FlashServletContext ctx)
Constructs a new servlet request object.
|
FlashServletRequest(FlashServletContext ctx,
java.lang.String name)
Constructs a new servlet request object.
|
FlashServletRequest(FlashServletRequest fsr)
Constructs a new servlet request object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
after(FlashServletRequest obj)
Answers if this object is greater than the given object based on this
object's
compareTo method results. |
boolean |
before(FlashServletRequest obj)
Answers if this object is less than the given object based on this
object's
compareTo method results. |
int |
compareTo(FlashServletRequest obj)
Compares the given object to this object and determines if the given object
is less than, equal to or greater than this object.
|
void |
delParam(java.lang.String param)
Deletes the parameter having the given name.
|
boolean |
equals(java.lang.Object obj)
Compares the given object to this object and determines if the two are
equal.
|
java.lang.String |
getId()
Returns the request's id.
|
java.lang.String |
getInvokerId()
Returns the request's invoker id (the id for the servlet that requested
this servlet).
|
boolean |
getIsExpired()
Returns the request's is expired flag.
|
java.lang.String |
getParam(java.lang.String param)
Returns a parameter's value as an string.
|
java.util.ArrayList<?> |
getParamArrayList(java.lang.String param)
Returns a parameter's value as an array list.
|
java.math.BigDecimal |
getParamBigDecimal(java.lang.String param)
Returns a parameter's value as a big decimal.
|
boolean |
getParamBoolean(java.lang.String param)
Returns a parameter's value as a boolean.
|
java.util.Date |
getParamDate(java.lang.String param)
Returns a parameter's value as a date.
|
double |
getParamDouble(java.lang.String param)
Returns a parameter's value as a double.
|
int |
getParamInteger(java.lang.String param)
Returns a parameter's value as an int.
|
long |
getParamLong(java.lang.String param)
Returns a parameter's value as a long.
|
MappedAttributesObject |
getParamMapped(java.lang.String param)
Returns a parameter's value as a mapped attributes
object.
|
java.lang.Object |
getParamObject(java.lang.String param)
Returns a parameter's value as an object.
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getParams()
Returns a map of all parameter names and their associated values.
|
short |
getParamShort(java.lang.String param)
Returns a parameter's value as a short.
|
java.lang.String |
getParamString(java.lang.String param)
Returns a parameter's value as a string.
|
java.lang.String |
getParamString(java.lang.String param,
boolean trim)
Returns a parameter's value as a string.
|
java.util.Vector<?> |
getParamVector(java.lang.String param)
Returns a parameter's value as a vector.
|
java.lang.String |
getServletName()
Returns the request's servlet name.
|
java.lang.String |
getServletURL()
Returns the request's servlet URL.
|
java.lang.String |
getTriggerId()
Returns the request's trigger id (the id for the servlet that initially
triggered a function).
|
java.lang.String |
getUserId()
Returns the request's user id.
|
boolean |
hasParam(java.lang.String param)
Answers if a parameter with the given name exists.
|
boolean |
matches(FlashServletRequest obj)
Answers if this object is an exact match to the given object.
|
void |
setId(java.lang.String value)
Sets the request's id.
|
void |
setInvokerId(java.lang.String value)
Sets the request's invoker id (the id for the servlet that requested this
servlet).
|
void |
setIsExpired(boolean value)
Sets the request's is expired flag.
|
void |
setParam(java.lang.String param,
java.util.ArrayList<?> value)
Sets a parameter's value to an array list.
|
void |
setParam(java.lang.String param,
java.math.BigDecimal value)
Sets a parameter's value to a big decimal.
|
void |
setParam(java.lang.String param,
boolean value)
Sets a parameter's value to a boolean.
|
void |
setParam(java.lang.String param,
java.util.Date value)
Sets a parameter's value to a date.
|
void |
setParam(java.lang.String param,
double value)
Sets a parameter's value to a double.
|
void |
setParam(java.lang.String param,
int value)
Sets a parameter's value to an int.
|
void |
setParam(java.lang.String param,
long value)
Sets a parameter's value to a long.
|
void |
setParam(java.lang.String param,
MappedAttributesObject value)
Sets a parameter's value to a mapped attributes object.
|
void |
setParam(java.lang.String param,
java.lang.Object value)
Sets a parameter's value to an object.
|
void |
setParam(java.lang.String param,
short value)
Sets a parameter's value to a short.
|
void |
setParam(java.lang.String param,
java.lang.String value)
Sets a parameter's value to a string.
|
void |
setParam(java.lang.String param,
java.lang.String value,
boolean trim)
Sets a parameter's value to a string.
|
void |
setParam(java.lang.String param,
java.util.Vector<?> value)
Sets a parameter's value to a vector.
|
void |
setServletName(java.lang.String value)
Sets the request's servlet name.
|
void |
setTriggerId(java.lang.String value)
Sets the request's trigger id (the id for the servlet that initially
triggered a function).
|
void |
setUserId(java.lang.String value)
Sets the request's user id.
|
java.lang.String |
toString()
Returns a string representation of this request.
|
cloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArray
private static final long serialVersionUID
public FlashServletRequest()
public FlashServletRequest(FlashServletContext ctx)
ctx
- (FlashServletContext) The current servlet context.
Pass a null
if context values do not pertain to this
instance.public FlashServletRequest(FlashServletContext ctx, java.lang.String name)
ctx
- (FlashServletContext) The current servlet context.
Pass a null
if context values do not pertain to this
instance.name
- (String) The servlet name.public FlashServletRequest(FlashServletRequest fsr)
fsr
- (FlashServletRequest) The servlet request on which to base
this servlet request.public int compareTo(FlashServletRequest obj)
NOTE: This compareTo
performs the opposite comparison to what is
typically performed by other Comparable
objects. The result here
is based on how the given object compares to this object vs. how this object
compares to the given object. This reversal in the comparison is being done
intentionally so the TreeSet
maintained by the Stack
inner
class in FlashServlet
will be in reverse order of actual occurence
(i.e. newer requests in the stack will appear in the TreeSet
before
older requests in the stack).
compareTo
in interface java.lang.Comparable<FlashServletRequest>
obj
- (FlashServletRequest) The object to compare with this object.public boolean equals(java.lang.Object obj)
equals
in class MappedAttributesObject
obj
- (Object) The object to compare with this object.true
if the specified object is equal to
this object, otherwise false
.public boolean after(FlashServletRequest obj)
compareTo
method results.obj
- (FlashServletRequest) The object to compare with this object.true
if this object is greater than the given
object, otherwise false
.public boolean before(FlashServletRequest obj)
compareTo
method results.obj
- (FlashServletRequest) The object to compare with this object.true
if this object is less than the given
object, otherwise false
.public boolean matches(FlashServletRequest obj)
obj
- (FlashServletRequest) The object to compare with this object.true
if this object is an exact match to the
given object, otherwise false
.public java.lang.String getId()
public void setId(java.lang.String value)
value
- (String) The request's id.public java.lang.String getServletName()
Note that the name could be prefixed with admin/
, sat/
,
sfi/
or other subpackage prefix.
public void setServletName(java.lang.String value)
Note that the name could be prefixed with admin/
, sat/
,
sfi/
or other subpackage prefix.
value
- (String) The request's servlet name.public java.lang.String getServletURL()
name?req=id
).public java.lang.String getUserId()
public void setUserId(java.lang.String value)
value
- (String) The request's user id.public java.lang.String getInvokerId()
public void setInvokerId(java.lang.String value)
value
- (String) The request's invoker id.public java.lang.String getTriggerId()
public void setTriggerId(java.lang.String value)
value
- (String) The request's trigger id.public boolean getIsExpired()
public void setIsExpired(boolean value)
value
- (boolean) The request's is expired flag.public void delParam(java.lang.String param)
param
- (String) The name of the parameter to delete.public java.lang.String getParam(java.lang.String param)
getParamString
except returns null
if a value for the parameter name does not
exist.param
- (String) The name of the parameter to retrieve.null
if a value for the parameter name
does not exist.public java.util.ArrayList<?> getParamArrayList(java.lang.String param)
param
- (String) The name of the parameter to retrieve.public java.math.BigDecimal getParamBigDecimal(java.lang.String param)
param
- (String) The name of the parameter to retrieve.public boolean getParamBoolean(java.lang.String param)
param
- (String) The name of the parameter to retrieve.public java.util.Date getParamDate(java.lang.String param)
param
- (String) The name of the parameter to retrieve.public double getParamDouble(java.lang.String param)
param
- (String) The name of the parameter to retrieve.public int getParamInteger(java.lang.String param)
param
- (String) The name of the parameter to retrieve.public long getParamLong(java.lang.String param)
param
- (String) The name of the parameter to retrieve.public MappedAttributesObject getParamMapped(java.lang.String param)
param
- (String) The name of the parameter to retrieve.public java.lang.Object getParamObject(java.lang.String param)
param
- (String) The name of the parameter to retrieve.public short getParamShort(java.lang.String param)
param
- (String) The name of the parameter to retrieve.public java.lang.String getParamString(java.lang.String param)
param
- (String) The name of the parameter to retrieve.public java.lang.String getParamString(java.lang.String param, boolean trim)
param
- (String) The name of the parameter to retrieve.trim
- (boolean) true
if the returned value should
be trimmed, otherwise false
.public java.util.Vector<?> getParamVector(java.lang.String param)
param
- (String) The name of the parameter to retrieve.public java.util.HashMap<java.lang.String,java.lang.Object> getParams()
public boolean hasParam(java.lang.String param)
param
- (String) The name of the parameter to check.true
if the parameter exists,
otherwise false
.public void setParam(java.lang.String param, java.util.ArrayList<?> value)
param
- (String) The name of the parameter to set.value
- (ArrayList) The value to set.public void setParam(java.lang.String param, java.math.BigDecimal value)
param
- (String) The name of the parameter to set.value
- (BigDecimal) The value to set.public void setParam(java.lang.String param, boolean value)
param
- (String) The name of the parameter to set.value
- (boolean) The value to set.public void setParam(java.lang.String param, java.util.Date value)
param
- (String) The name of the parameter to set.value
- (java.util.Date) The value to set.public void setParam(java.lang.String param, double value)
param
- (String) The name of the parameter to set.value
- (double) The value to set.public void setParam(java.lang.String param, int value)
param
- (String) The name of the parameter to set.value
- (int) The value to set.public void setParam(java.lang.String param, long value)
param
- (String) The name of the parameter to set.value
- (long) The value to set.public void setParam(java.lang.String param, MappedAttributesObject value)
param
- (String) The name of the parameter to set.value
- (MappedAttributesObject) The value to set.public void setParam(java.lang.String param, java.lang.Object value)
param
- (String) The name of the parameter to set.value
- (Object) The value to set.public void setParam(java.lang.String param, short value)
param
- (String) The name of the parameter to set.value
- (short) The value to set.public void setParam(java.lang.String param, java.lang.String value)
param
- (String) The name of the parameter to set.value
- (string) The value to set.public void setParam(java.lang.String param, java.lang.String value, boolean trim)
param
- (String) The name of the parameter to set.value
- (string) The value to set.trim
- (boolean) true
if the string value should
be trimmed, otherwise false
.public void setParam(java.lang.String param, java.util.Vector<?> value)
param
- (String) The name of the parameter to set.value
- (Vector) The value to set.public java.lang.String toString()
toString
in Object
.toString
in class java.lang.Object