org.codehaus.wadi.jetty5
Class JettyManager

java.lang.Object
  extended byorg.codehaus.wadi.jetty5.JettyManager
All Implemented Interfaces:
LifeCycle, org.codehaus.wadi.ManagerConfig, Serializable, SessionManager

public class JettyManager
extends Object
implements org.codehaus.wadi.ManagerConfig, SessionManager

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.mortbay.jetty.servlet.SessionManager
SessionManager.Session
 
Field Summary
protected  ServletHandler _handler
           
protected  boolean _httpOnly
           
protected  org.codehaus.wadi.impl.ListenerSupport _listeners
           
protected  Log _log
           
protected  boolean _secureCookies
           
protected  boolean _useRequestedId
           
protected  org.codehaus.wadi.impl.StandardManager _wadi
           
 
Fields inherited from interface org.mortbay.jetty.servlet.SessionManager
__MaxAge, __SessionCookie, __SessionDomain, __SessionPath, __SessionURL, __SessionUrlPrefix
 
Constructor Summary
JettyManager()
           
 
Method Summary
 void addEventListener(EventListener listener)
           
 void callback(org.codehaus.wadi.impl.StandardManager manager)
           
 boolean getHttpOnly()
           
 HttpSession getHttpSession(String id)
           
 int getMaxInactiveInterval()
           
 boolean getSecureCookies()
           
 ServletContext getServletContext()
           
 Cookie getSessionCookie(HttpSession session, boolean requestIsSecure)
           
protected  boolean getUseRequestedId()
           
 void initialize(ServletHandler handler)
           
 boolean isStarted()
           
 HttpSession newHttpSession(HttpServletRequest request)
           
 void removeEventListener(EventListener listener)
           
 void setMaxInactiveInterval(int seconds)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log

protected final Log _log

_listeners

protected final org.codehaus.wadi.impl.ListenerSupport _listeners

_wadi

protected org.codehaus.wadi.impl.StandardManager _wadi

_handler

protected ServletHandler _handler

_secureCookies

protected boolean _secureCookies

_httpOnly

protected boolean _httpOnly

_useRequestedId

protected boolean _useRequestedId
Constructor Detail

JettyManager

public JettyManager()
Method Detail

getServletContext

public ServletContext getServletContext()
Specified by:
getServletContext in interface org.codehaus.wadi.ManagerConfig

callback

public void callback(org.codehaus.wadi.impl.StandardManager manager)
Specified by:
callback in interface org.codehaus.wadi.ManagerConfig

initialize

public void initialize(ServletHandler handler)
Specified by:
initialize in interface SessionManager

getHttpSession

public HttpSession getHttpSession(String id)
Specified by:
getHttpSession in interface SessionManager

newHttpSession

public HttpSession newHttpSession(HttpServletRequest request)
Specified by:
newHttpSession in interface SessionManager

getSecureCookies

public boolean getSecureCookies()
Specified by:
getSecureCookies in interface SessionManager

getHttpOnly

public boolean getHttpOnly()
Specified by:
getHttpOnly in interface SessionManager

getMaxInactiveInterval

public int getMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface SessionManager

setMaxInactiveInterval

public void setMaxInactiveInterval(int seconds)
Specified by:
setMaxInactiveInterval in interface SessionManager

addEventListener

public void addEventListener(EventListener listener)
                      throws IllegalArgumentException
Specified by:
addEventListener in interface SessionManager
Throws:
IllegalArgumentException

removeEventListener

public void removeEventListener(EventListener listener)
Specified by:
removeEventListener in interface SessionManager

getSessionCookie

public Cookie getSessionCookie(HttpSession session,
                               boolean requestIsSecure)
Specified by:
getSessionCookie in interface SessionManager

start

public void start()
           throws Exception
Specified by:
start in interface LifeCycle
Throws:
Exception

stop

public void stop()
          throws InterruptedException
Specified by:
stop in interface LifeCycle
Throws:
InterruptedException

isStarted

public boolean isStarted()
Specified by:
isStarted in interface LifeCycle

getUseRequestedId

protected boolean getUseRequestedId()


Copyright © 2004-2006 Core Developers Network Ltd.. All Rights Reserved.