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, setupServletContext
assertEquals, assertEquals, assertTrue, fail, notImplemented, notYetImplemented, notYetImplemented, verify
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface javax.servlet.http.HttpSession
getAttribute
in class com.mockobjects.servlet.MockHttpSession
name
- Name of attribute whose value is sought.public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface javax.servlet.http.HttpSession
setAttribute
in class com.mockobjects.servlet.MockHttpSession
name
- attribute namevalue
- attribute valuepublic void removeAttribute(java.lang.String name)
removeAttribute
in interface javax.servlet.http.HttpSession
removeAttribute
in class com.mockobjects.servlet.MockHttpSession
name
- attribute namepublic java.lang.String toString()
toString
in class java.lang.Object