|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.test.mock.MockHttpSession
org.apache.myfaces.test.mock.MockHttpSessionProxy
public class MockHttpSessionProxy
Proxy used to trigger session creation when it is accessed
Constructor Summary | |
---|---|
MockHttpSessionProxy(MockServletContext servletContext,
MockHttpServletRequest request)
|
Method Summary | |
---|---|
void |
addAttributeListener(javax.servlet.http.HttpSessionAttributeListener listener)
Add a new listener instance that should be notified about attribute changes. |
Object |
getAttribute(String name)
|
Enumeration |
getAttributeNames()
|
long |
getCreationTime()
|
String |
getId()
|
long |
getLastAccessedTime()
|
int |
getMaxInactiveInterval()
|
MockHttpServletRequest |
getRequest()
|
javax.servlet.ServletContext |
getServletContext()
|
javax.servlet.http.HttpSessionContext |
getSessionContext()
|
Object |
getValue(String name)
|
String[] |
getValueNames()
|
MockHttpSession |
getWrapped()
|
void |
invalidate()
|
boolean |
isNew()
|
void |
putValue(String name,
Object value)
|
void |
removeAttribute(String name)
|
void |
removeValue(String name)
|
void |
setAttribute(String name,
Object value)
|
void |
setId(String id)
Set the session identifier of this session. |
void |
setMaxInactiveInterval(int interval)
|
void |
setRequest(MockHttpServletRequest request)
|
void |
setServletContext(javax.servlet.ServletContext servletContext)
Set the ServletContext associated with this session. |
Methods inherited from class org.apache.myfaces.test.mock.MockHttpSession |
---|
getWebContainer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockHttpSessionProxy(MockServletContext servletContext, MockHttpServletRequest request)
Method Detail |
---|
public void addAttributeListener(javax.servlet.http.HttpSessionAttributeListener listener)
MockHttpSession
Add a new listener instance that should be notified about attribute changes.
addAttributeListener
in class MockHttpSession
listener
- The new listener to be addedpublic void setServletContext(javax.servlet.ServletContext servletContext)
MockHttpSession
Set the ServletContext associated with this session.
setServletContext
in class MockHttpSession
servletContext
- The associated servlet contextpublic void setId(String id)
MockHttpSession
Set the session identifier of this session.
setId
in class MockHttpSession
id
- The new session identifierpublic Object getAttribute(String name)
MockHttpSession
getAttribute
in interface javax.servlet.http.HttpSession
getAttribute
in class MockHttpSession
public Enumeration getAttributeNames()
MockHttpSession
getAttributeNames
in interface javax.servlet.http.HttpSession
getAttributeNames
in class MockHttpSession
public long getCreationTime()
MockHttpSession
getCreationTime
in interface javax.servlet.http.HttpSession
getCreationTime
in class MockHttpSession
public String getId()
MockHttpSession
getId
in interface javax.servlet.http.HttpSession
getId
in class MockHttpSession
public long getLastAccessedTime()
MockHttpSession
getLastAccessedTime
in interface javax.servlet.http.HttpSession
getLastAccessedTime
in class MockHttpSession
public int getMaxInactiveInterval()
MockHttpSession
getMaxInactiveInterval
in interface javax.servlet.http.HttpSession
getMaxInactiveInterval
in class MockHttpSession
public javax.servlet.ServletContext getServletContext()
MockHttpSession
getServletContext
in interface javax.servlet.http.HttpSession
getServletContext
in class MockHttpSession
public javax.servlet.http.HttpSessionContext getSessionContext()
MockHttpSession
getSessionContext
in interface javax.servlet.http.HttpSession
getSessionContext
in class MockHttpSession
public Object getValue(String name)
MockHttpSession
getValue
in interface javax.servlet.http.HttpSession
getValue
in class MockHttpSession
public String[] getValueNames()
MockHttpSession
getValueNames
in interface javax.servlet.http.HttpSession
getValueNames
in class MockHttpSession
public void invalidate()
MockHttpSession
invalidate
in interface javax.servlet.http.HttpSession
invalidate
in class MockHttpSession
public boolean isNew()
MockHttpSession
isNew
in interface javax.servlet.http.HttpSession
isNew
in class MockHttpSession
public void putValue(String name, Object value)
MockHttpSession
putValue
in interface javax.servlet.http.HttpSession
putValue
in class MockHttpSession
public void removeAttribute(String name)
MockHttpSession
removeAttribute
in interface javax.servlet.http.HttpSession
removeAttribute
in class MockHttpSession
public void removeValue(String name)
MockHttpSession
removeValue
in interface javax.servlet.http.HttpSession
removeValue
in class MockHttpSession
public void setAttribute(String name, Object value)
MockHttpSession
setAttribute
in interface javax.servlet.http.HttpSession
setAttribute
in class MockHttpSession
public void setMaxInactiveInterval(int interval)
MockHttpSession
setMaxInactiveInterval
in interface javax.servlet.http.HttpSession
setMaxInactiveInterval
in class MockHttpSession
public MockHttpSession getWrapped()
public MockHttpServletRequest getRequest()
public void setRequest(MockHttpServletRequest request)
request
- the request to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |