|
||||||||||
| 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)
MockHttpSessionAdd a new listener instance that should be notified about attribute changes.
addAttributeListener in class MockHttpSessionlistener - The new listener to be addedpublic void setServletContext(javax.servlet.ServletContext servletContext)
MockHttpSessionSet the ServletContext associated with this session.
setServletContext in class MockHttpSessionservletContext - The associated servlet contextpublic void setId(String id)
MockHttpSessionSet the session identifier of this session.
setId in class MockHttpSessionid - The new session identifierpublic Object getAttribute(String name)
MockHttpSession
getAttribute in interface javax.servlet.http.HttpSessiongetAttribute in class MockHttpSessionpublic Enumeration getAttributeNames()
MockHttpSession
getAttributeNames in interface javax.servlet.http.HttpSessiongetAttributeNames in class MockHttpSessionpublic long getCreationTime()
MockHttpSession
getCreationTime in interface javax.servlet.http.HttpSessiongetCreationTime in class MockHttpSessionpublic String getId()
MockHttpSession
getId in interface javax.servlet.http.HttpSessiongetId in class MockHttpSessionpublic long getLastAccessedTime()
MockHttpSession
getLastAccessedTime in interface javax.servlet.http.HttpSessiongetLastAccessedTime in class MockHttpSessionpublic int getMaxInactiveInterval()
MockHttpSession
getMaxInactiveInterval in interface javax.servlet.http.HttpSessiongetMaxInactiveInterval in class MockHttpSessionpublic javax.servlet.ServletContext getServletContext()
MockHttpSession
getServletContext in interface javax.servlet.http.HttpSessiongetServletContext in class MockHttpSessionpublic javax.servlet.http.HttpSessionContext getSessionContext()
MockHttpSession
getSessionContext in interface javax.servlet.http.HttpSessiongetSessionContext in class MockHttpSessionpublic Object getValue(String name)
MockHttpSession
getValue in interface javax.servlet.http.HttpSessiongetValue in class MockHttpSessionpublic String[] getValueNames()
MockHttpSession
getValueNames in interface javax.servlet.http.HttpSessiongetValueNames in class MockHttpSessionpublic void invalidate()
MockHttpSession
invalidate in interface javax.servlet.http.HttpSessioninvalidate in class MockHttpSessionpublic boolean isNew()
MockHttpSession
isNew in interface javax.servlet.http.HttpSessionisNew in class MockHttpSession
public void putValue(String name,
Object value)
MockHttpSession
putValue in interface javax.servlet.http.HttpSessionputValue in class MockHttpSessionpublic void removeAttribute(String name)
MockHttpSession
removeAttribute in interface javax.servlet.http.HttpSessionremoveAttribute in class MockHttpSessionpublic void removeValue(String name)
MockHttpSession
removeValue in interface javax.servlet.http.HttpSessionremoveValue in class MockHttpSession
public void setAttribute(String name,
Object value)
MockHttpSession
setAttribute in interface javax.servlet.http.HttpSessionsetAttribute in class MockHttpSessionpublic void setMaxInactiveInterval(int interval)
MockHttpSession
setMaxInactiveInterval in interface javax.servlet.http.HttpSessionsetMaxInactiveInterval in class MockHttpSessionpublic 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 | |||||||||