|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.servlet.util.PipeImpl
Default implementation of the Pipe interface. Uses a standard
HashMap to store attributes.
| Nested Class Summary |
| Nested classes inherited from class org.davesag.generica.servlet.util.Pipe |
Pipe.Factory |
| Field Summary | |
protected Map |
theAttributes
the map of attributes |
protected String |
theName
the name |
protected HttpSession |
theSession
the session |
| Constructor Summary | |
PipeImpl()
Creates a new PipeImpl object. |
|
| Method Summary | |
void |
close()
closes the pipe and removes all of it's attributes. |
Object |
getAttribute(String name)
get the named attribute |
Iterator |
getAttributeNames()
get an iterator of all the attribute names. |
void |
removeAttribute(String name)
remove the attribute |
void |
setAttribute(String name,
Object value)
set the attribute |
void |
setName(String name)
set the pipe name. |
void |
setSession(HttpSession session)
set the http session. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String theName
protected HttpSession theSession
protected Map theAttributes
| Constructor Detail |
public PipeImpl()
| Method Detail |
public void setName(String name)
setName in interface Pipename - pipe name.public void setSession(HttpSession session)
setSession in interface Pipesession - the http session.public Object getAttribute(String name)
getAttribute in interface Pipename - the name of the attribute.
public Iterator getAttributeNames()
getAttributeNames in interface Pipe
public void setAttribute(String name,
Object value)
setAttribute in interface Pipename - the namevalue - the object to store.public void removeAttribute(String name)
removeAttribute in interface Pipename - the name of the attribute to remove.public void close()
close in interface Pipe
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||