org.exoplatform.services.portletcontainer.plugins.pc.replication
Class FakeHttpSession

java.lang.Object
  extended by org.exoplatform.services.portletcontainer.plugins.pc.replication.FakeHttpSession
All Implemented Interfaces:
javax.servlet.http.HttpSession

public class FakeHttpSession
extends java.lang.Object
implements javax.servlet.http.HttpSession

Fake http session.


Constructor Summary
FakeHttpSession(java.lang.String sid)
           
FakeHttpSession(java.lang.String sid, javax.servlet.ServletContext context)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Overridden method.
 java.util.Enumeration getAttributeNames()
          Overridden method.
 long getCreationTime()
          Overridden method.
 java.lang.String getId()
          Overridden method.
 long getLastAccessedTime()
          Overridden method.
 int getMaxInactiveInterval()
          Overridden method.
 javax.servlet.ServletContext getServletContext()
          Overridden method.
 javax.servlet.http.HttpSessionContext getSessionContext()
          Overridden method.
 java.lang.Object getValue(java.lang.String name)
          Overridden method.
 java.lang.String[] getValueNames()
          Overridden method.
 void invalidate()
          Overridden method.
 boolean isNew()
          Overridden method.
 void putValue(java.lang.String name, java.lang.Object value)
          Overridden method.
 void removeAttribute(java.lang.String name)
          Overridden method.
 void removeValue(java.lang.String name)
          Overridden method.
 void setAttribute(java.lang.String name, java.lang.Object value)
          Overridden method.
 void setMaxInactiveInterval(int max)
          Overridden method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeHttpSession

public FakeHttpSession(java.lang.String sid)
Parameters:
sid - session id

FakeHttpSession

public FakeHttpSession(java.lang.String sid,
                       javax.servlet.ServletContext context)
Parameters:
sid - session id
context - context
Method Detail

getAttribute

public final java.lang.Object getAttribute(java.lang.String name)
Overridden method.

Specified by:
getAttribute in interface javax.servlet.http.HttpSession
Parameters:
name - name
Returns:
value
See Also:
HttpSession.getAttribute(java.lang.String)

getAttributeNames

public final java.util.Enumeration getAttributeNames()
Overridden method.

Specified by:
getAttributeNames in interface javax.servlet.http.HttpSession
Returns:
attribute names
See Also:
HttpSession.getAttributeNames()

getCreationTime

public final long getCreationTime()
Overridden method.

Specified by:
getCreationTime in interface javax.servlet.http.HttpSession
Returns:
creation time
See Also:
HttpSession.getCreationTime()

getId

public final java.lang.String getId()
Overridden method.

Specified by:
getId in interface javax.servlet.http.HttpSession
Returns:
id
See Also:
HttpSession.getId()

getLastAccessedTime

public final long getLastAccessedTime()
Overridden method.

Specified by:
getLastAccessedTime in interface javax.servlet.http.HttpSession
Returns:
last access time
See Also:
HttpSession.getLastAccessedTime()

getMaxInactiveInterval

public final int getMaxInactiveInterval()
Overridden method.

Specified by:
getMaxInactiveInterval in interface javax.servlet.http.HttpSession
Returns:
max inactive interval
See Also:
HttpSession.getMaxInactiveInterval()

getServletContext

public final javax.servlet.ServletContext getServletContext()
Overridden method.

Specified by:
getServletContext in interface javax.servlet.http.HttpSession
Returns:
servlet context
See Also:
HttpSession.getServletContext()

getSessionContext

public final javax.servlet.http.HttpSessionContext getSessionContext()
Overridden method.

Specified by:
getSessionContext in interface javax.servlet.http.HttpSession
Returns:
session context
See Also:
HttpSession.getSessionContext()

getValue

public final java.lang.Object getValue(java.lang.String name)
Overridden method.

Specified by:
getValue in interface javax.servlet.http.HttpSession
Parameters:
name - name
Returns:
value
See Also:
HttpSession.getValue(java.lang.String)

getValueNames

public final java.lang.String[] getValueNames()
Overridden method.

Specified by:
getValueNames in interface javax.servlet.http.HttpSession
Returns:
value names
See Also:
HttpSession.getValueNames()

invalidate

public final void invalidate()
Overridden method.

Specified by:
invalidate in interface javax.servlet.http.HttpSession
See Also:
HttpSession.invalidate()

isNew

public final boolean isNew()
Overridden method.

Specified by:
isNew in interface javax.servlet.http.HttpSession
Returns:
is new
See Also:
HttpSession.isNew()

putValue

public final void putValue(java.lang.String name,
                           java.lang.Object value)
Overridden method.

Specified by:
putValue in interface javax.servlet.http.HttpSession
Parameters:
name - name
value - value
See Also:
HttpSession.putValue(java.lang.String, java.lang.Object)

removeAttribute

public final void removeAttribute(java.lang.String name)
Overridden method.

Specified by:
removeAttribute in interface javax.servlet.http.HttpSession
Parameters:
name - name
See Also:
HttpSession.removeAttribute(java.lang.String)

removeValue

public final void removeValue(java.lang.String name)
Overridden method.

Specified by:
removeValue in interface javax.servlet.http.HttpSession
Parameters:
name - name
See Also:
HttpSession.removeValue(java.lang.String)

setAttribute

public final void setAttribute(java.lang.String name,
                               java.lang.Object value)
Overridden method.

Specified by:
setAttribute in interface javax.servlet.http.HttpSession
Parameters:
name - name
value - value
See Also:
HttpSession.setAttribute(java.lang.String, java.lang.Object)

setMaxInactiveInterval

public final void setMaxInactiveInterval(int max)
Overridden method.

Specified by:
setMaxInactiveInterval in interface javax.servlet.http.HttpSession
Parameters:
max - max inactive interval
See Also:
HttpSession.setMaxInactiveInterval(int)


Copyright © 2011 eXo Platform SAS. All Rights Reserved.