public class FlashServlet.Stack extends java.util.TreeSet<FlashServletRequest>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
Stack()
Constructs a new servlet request stack.
|
Modifier and Type | Method and Description |
---|---|
FlashServletRequest |
getId(java.lang.String id)
Returns the servlet request having the given id.
|
FlashServletRequest |
getServletName(java.lang.String name)
Returns the most recent unexpired servlet request having the given
servlet name.
|
void |
setExpired(FlashServletRequest fsr,
java.lang.String name)
Sets all servlet requests to expired that have the given servlet name
and that occurred prior to the given servlet request.
|
void |
setExpired(java.lang.String name)
Sets all servlet requests to expired that have the given servlet name
regardless of when the request occurred.
|
void |
setExpired(java.lang.String id,
java.lang.String name)
Sets all servlet requests to expired that have the given servlet name
and that occurred prior to the given servlet request id.
|
add, addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSet
containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
private static final long serialVersionUID
public FlashServletRequest getId(java.lang.String id)
id
- (String) The id for the desired servlet request.null
if no servlet request for the id exists.public FlashServletRequest getServletName(java.lang.String name)
name
- (String) The name for the desired servlet request.null
if no unexpired servlet request for the name
exists.public void setExpired(java.lang.String name)
name
- (String) The name of the servlet to expire. Wildcard
matching can be done by suffixing the name with an asterisk
(*); in which case requests having a name that is prefixed
with the given name (sans asterisk) will be set to expired.public void setExpired(java.lang.String id, java.lang.String name)
id
- (String) The servlet request id that defines the start
point for the iteration.name
- (String) The name of the servlet to expire. Pass
null
to expire all servlet requests prior to the
given id regardless of name. Wildcard matching can be done
by suffixing the name with an asterisk (*); in which case
requests having a name that is prefixed with the given name
(sans asterisk) will be set to expired.public void setExpired(FlashServletRequest fsr, java.lang.String name)
fsr
- (FlashServletRequest) The servlet request that defines
the start point for the iteration.name
- (String) The name of the servlet to expire. Pass
null
to expire all servlet requests prior to the
given request regardless of name. Wildcard matching can be
done by suffixing the name with an asterisk (*); in which case
requests having a name that is prefixed with the given name
(sans asterisk) will be set to expired.