public class RhnMockHttpSession
extends com.mockobjects.servlet.MockHttpSession
| Constructor and Description |
|---|
RhnMockHttpSession()
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the attribute bound to the given name.
|
void |
removeAttribute(java.lang.String name)
Removes an attribute from the session
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Adds a new attribute the Session.
|
java.lang.String |
toString() |
getAttributeNames, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getServletContext, getSessionContext, getValue, getValueNames, invalidate, isNew, putValue, removeValue, setExpectedAttribute, setExpectedRemoveAttribute, setMaxInactiveInterval, setupGetAttribute, setupGetAttributeNames, setupServletContextassertEquals, assertEquals, assertTrue, fail, notImplemented, notYetImplemented, notYetImplemented, verifypublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface javax.servlet.http.HttpSessiongetAttribute in class com.mockobjects.servlet.MockHttpSessionname - Name of attribute whose value is sought.public void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in interface javax.servlet.http.HttpSessionsetAttribute in class com.mockobjects.servlet.MockHttpSessionname - attribute namevalue - attribute valuepublic void removeAttribute(java.lang.String name)
removeAttribute in interface javax.servlet.http.HttpSessionremoveAttribute in class com.mockobjects.servlet.MockHttpSessionname - attribute namepublic java.lang.String toString()
toString in class java.lang.Object