Class JettyHandler

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.server.handler.AbstractHandlerContainer
org.eclipse.jetty.server.handler.HandlerWrapper
org.eclipse.jetty.server.handler.ScopedHandler
org.eclipse.jetty.server.session.SessionHandler
spark.embeddedserver.jetty.JettyHandler
All Implemented Interfaces:
org.eclipse.jetty.server.Handler, org.eclipse.jetty.server.HandlerContainer, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.LifeCycle

public class JettyHandler extends org.eclipse.jetty.server.session.SessionHandler
Simple Jetty Handler
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.server.session.SessionHandler

    org.eclipse.jetty.server.session.SessionHandler.CookieConfig, org.eclipse.jetty.server.session.SessionHandler.SessionIf

    Nested classes/interfaces inherited from class org.eclipse.jetty.server.handler.AbstractHandler

    org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandler

    Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container

    org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable

    org.eclipse.jetty.util.component.Dumpable.DumpableContainer

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

    org.eclipse.jetty.util.component.LifeCycle.Listener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private javax.servlet.Filter
     

    Fields inherited from class org.eclipse.jetty.server.session.SessionHandler

    __CheckRemoteSessionEncoding, __DefaultSessionCookie, __DefaultSessionDomain, __DefaultSessionIdPathParameterName, __MaxAgeProperty, __SessionCookieProperty, __SessionDomainProperty, __SessionIdPathParameterNameProperty, __SessionPathProperty, _candidateSessionIdsForExpiry, _checkingRemoteSessionIdEncoding, _context, _dftMaxIdleSecs, _httpOnly, _loader, _maxCookieAge, _nodeIdInSessionId, _ownScheduler, _refreshCookieAge, _scheduler, _secureCookies, _secureRequestOnly, _sessionAttributeListeners, _sessionCache, _sessionComment, _sessionContext, _sessionCookie, _sessionDomain, _sessionIdListeners, _sessionIdManager, _sessionIdPathParameterName, _sessionIdPathParameterNamePrefix, _sessionListeners, _sessionPath, _sessionsCreatedStats, _sessionTimeStats, _sessionTrackingModes, _usingCookies, _usingURLs, DEFAULT_SESSION_TRACKING_MODES, DEFAULT_TRACKING, MAX_INACTIVE_MINUTES, SESSION_LISTENER_TYPES

    Fields inherited from class org.eclipse.jetty.server.handler.ScopedHandler

    _nextScope, _outerScope

    Fields inherited from class org.eclipse.jetty.server.handler.HandlerWrapper

    _handler

    Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING

    Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

    KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
    JettyHandler(javax.servlet.Filter filter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doHandle(String target, org.eclipse.jetty.server.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     

    Methods inherited from class org.eclipse.jetty.server.session.SessionHandler

    access, addEventListener, callSessionCreatedListeners, callSessionDestroyedListeners, callSessionIdListeners, checkRequestedSessionId, clearEventListeners, commit, complete, complete, doScope, doSessionAttributeListeners, doStart, doStop, getDefaultSessionTrackingModes, getEffectiveSessionTrackingModes, getExtendedId, getHttpOnly, getHttpSession, getId, getMaxCookieAge, getMaxInactiveInterval, getRefreshCookieAge, getSameSite, getScheduler, getSecureCookies, getSession, getSessionCache, getSessionCookie, getSessionCookie, getSessionCookieConfig, getSessionCookieName, getSessionDomain, getSessionIdManager, getSessionIdPathParameterName, getSessionIdPathParameterNamePrefix, getSessionPath, getSessionsCreated, getSessionTimeMax, getSessionTimeMean, getSessionTimeStdDev, getSessionTimeTotal, invalidate, isCheckingRemoteSessionIdEncoding, isIdInUse, isNodeIdInSessionId, isSecureRequestOnly, isUsingCookies, isUsingURLs, isValid, newHttpSession, recordSessionTime, removeEventListener, removeSession, renewSessionId, scavenge, sessionInactivityTimerExpired, sessionInactivityTimerExpired, setCheckingRemoteSessionIdEncoding, setHttpOnly, setMaxInactiveInterval, setNodeIdInSessionId, setRefreshCookieAge, setSameSite, setSecureRequestOnly, setSessionCache, setSessionCookie, setSessionIdManager, setSessionIdPathParameterName, setSessionTrackingModes, setUsingCookies, shutdownSessions, statsReset, toString

    Methods inherited from class org.eclipse.jetty.server.handler.ScopedHandler

    handle, nextHandle, nextScope

    Methods inherited from class org.eclipse.jetty.server.handler.HandlerWrapper

    destroy, expandChildren, getHandler, getHandlers, insertHandler, setHandler

    Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandlerContainer

    doShutdown, expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass, setServer

    Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandler

    doError, getServer

    Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle

    addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans

    Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

    dumpSelf

    Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer

    isDumpable

    Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle

    addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
  • Field Details

    • filter

      private javax.servlet.Filter filter
  • Constructor Details

    • JettyHandler

      public JettyHandler(javax.servlet.Filter filter)
  • Method Details

    • doHandle

      public void doHandle(String target, org.eclipse.jetty.server.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
      Overrides:
      doHandle in class org.eclipse.jetty.server.session.SessionHandler
      Throws:
      IOException
      javax.servlet.ServletException