Class ContextHandler.CoreContextHandler

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.Handler.Abstract
org.eclipse.jetty.server.Handler.AbstractContainer
org.eclipse.jetty.server.Handler.Wrapper
org.eclipse.jetty.server.handler.ContextHandler
org.eclipse.jetty.ee8.nested.ContextHandler.CoreContextHandler
All Implemented Interfaces:
org.eclipse.jetty.server.AliasCheck, org.eclipse.jetty.server.Handler, org.eclipse.jetty.server.Handler.Container, org.eclipse.jetty.server.Handler.Singleton, org.eclipse.jetty.server.Request.Handler, org.eclipse.jetty.util.Attributes, 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, org.eclipse.jetty.util.thread.Invocable
Enclosing class:
ContextHandler

public class ContextHandler.CoreContextHandler extends org.eclipse.jetty.server.handler.ContextHandler implements org.eclipse.jetty.server.Request.Handler
  • Nested Class Summary

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

    org.eclipse.jetty.server.handler.ContextHandler.Availability, org.eclipse.jetty.server.handler.ContextHandler.ContextScopeListener, org.eclipse.jetty.server.handler.ContextHandler.ScopedContext

    Nested classes/interfaces inherited from class org.eclipse.jetty.server.Handler.Abstract

    org.eclipse.jetty.server.Handler.Abstract.NonBlocking

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

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

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

    org.eclipse.jetty.util.Attributes.Layer, org.eclipse.jetty.util.Attributes.Lazy, org.eclipse.jetty.util.Attributes.Mapped, org.eclipse.jetty.util.Attributes.Synthetic, org.eclipse.jetty.util.Attributes.Wrapper

    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.server.Handler

    org.eclipse.jetty.server.Handler.Abstract, org.eclipse.jetty.server.Handler.AbstractContainer, org.eclipse.jetty.server.Handler.Collection, org.eclipse.jetty.server.Handler.Container, org.eclipse.jetty.server.Handler.Sequence, org.eclipse.jetty.server.Handler.Singleton, org.eclipse.jetty.server.Handler.Wrapper

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable

    org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.Task

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

    org.eclipse.jetty.util.component.LifeCycle.Listener

    Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Request.Handler

    org.eclipse.jetty.server.Request.Handler.AbortException
  • Field Summary

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

    CROSS_CONTEXT_ATTRIBUTE, MANAGED_ATTRIBUTES

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

    FAILED, STARTED, STARTING, STOPPED, STOPPING

    Fields inherited from interface org.eclipse.jetty.util.Attributes

    NULL

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

    KEY

    Fields inherited from interface org.eclipse.jetty.util.thread.Invocable

    __nonBlocking, NOOP
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
     
    protected void
     
     
     
     
    org.eclipse.jetty.util.resource.Resource
     
    void
    insertHandler(org.eclipse.jetty.server.Handler.Singleton handler)
     
    void
     
    protected org.eclipse.jetty.server.handler.ContextHandler.ScopedContext
     
    protected void
    notifyEnterScope(org.eclipse.jetty.server.Request coreRequest)
     
    protected void
    notifyExitScope(org.eclipse.jetty.server.Request coreRequest)
     
    void
    setContextPath(String contextPath)
     
    void
    setHandler(org.eclipse.jetty.server.Handler handler)
     
    void
    setServer(org.eclipse.jetty.server.Server server)
     
    void
     
    protected org.eclipse.jetty.server.handler.ContextRequest
    wrapRequest(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response)
     

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

    addAliasCheck, addEventListener, addVirtualHosts, checkAlias, checkVirtualHost, cleanupAfterStop, clearAliasChecks, clearAttributes, destroy, dump, enterScope, exitScope, getAliasChecks, getAllowNullPathInContext, getAttribute, getBaseName, getBaseResource, getClassLoader, getClassPath, getContext, getContextHandler, getContextPath, getCrossContextHandler, getCurrentContext, getCurrentContext, getCurrentContextHandler, getDisplayName, getErrorHandler, getMimeTypes, getProtectedTargets, getTempDirectory, getVirtualHosts, handle, handleByContextHandler, handleMovedPermanently, handleUnavailable, isAvailable, isCrossContextDispatchSupported, isProtectedTarget, isTempDirectoryPersistent, removeAttribute, removeEventListener, removeVirtualHosts, setAliasChecks, setAllowNullPathInContext, setAttribute, setAvailable, setBaseResource, setBaseResourceAsPath, setBaseResourceAsString, setClassLoader, setCrossContextDispatchSupported, setDisplayName, setErrorHandler, setProtectedTargets, setTempDirectoryPersistent, setVirtualHosts, toString, wrapResponse

    Methods inherited from class org.eclipse.jetty.server.Handler.Wrapper

    getHandler, getInvocationType

    Methods inherited from class org.eclipse.jetty.server.Handler.AbstractContainer

    findContainerOf, getDescendant, getDescendants, isDynamic, setDynamic

    Methods inherited from class org.eclipse.jetty.server.Handler.Abstract

    getServer

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

    addBean, addBean, addManaged, contains, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeans

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

    getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, 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.Attributes

    asAttributeMap, equals, hashCode

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

    getCachedBeans, getEventListeners

    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.server.Handler

    getServer

    Methods inherited from interface org.eclipse.jetty.server.Handler.Container

    getContainer, getDescendant, getDescendants, getDescendants

    Methods inherited from interface org.eclipse.jetty.server.Handler.Singleton

    getHandlers, getTail, setHandler

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

    isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop

    Methods inherited from interface org.eclipse.jetty.server.Request.Handler

    getInvocationType, handle
  • Method Details

    • makeTempDirectory

      public void makeTempDirectory() throws Exception
      Overrides:
      makeTempDirectory in class org.eclipse.jetty.server.handler.ContextHandler
      Throws:
      Exception
    • getCanonicalNameForTmpDir

      public String getCanonicalNameForTmpDir()
      Overrides:
      getCanonicalNameForTmpDir in class org.eclipse.jetty.server.handler.ContextHandler
    • getResourceForTempDirName

      public org.eclipse.jetty.util.resource.Resource getResourceForTempDirName()
      Overrides:
      getResourceForTempDirName in class org.eclipse.jetty.server.handler.ContextHandler
    • setTempDirectory

      public void setTempDirectory(File dir)
      Overrides:
      setTempDirectory in class org.eclipse.jetty.server.handler.ContextHandler
    • setContextPath

      public void setContextPath(String contextPath)
      Overrides:
      setContextPath in class org.eclipse.jetty.server.handler.ContextHandler
    • doStart

      protected void doStart() throws Exception
      Overrides:
      doStart in class org.eclipse.jetty.server.handler.ContextHandler
      Throws:
      Exception
    • createTempDirectory

      public void createTempDirectory()
      Overrides:
      createTempDirectory in class org.eclipse.jetty.server.handler.ContextHandler
    • doStop

      protected void doStop() throws Exception
      Overrides:
      doStop in class org.eclipse.jetty.server.handler.ContextHandler
      Throws:
      Exception
    • insertHandler

      public void insertHandler(org.eclipse.jetty.server.Handler.Singleton handler)
      Specified by:
      insertHandler in interface org.eclipse.jetty.server.Handler.Singleton
    • setHandler

      public void setHandler(org.eclipse.jetty.server.Handler handler)
      Specified by:
      setHandler in interface org.eclipse.jetty.server.Handler.Singleton
      Overrides:
      setHandler in class org.eclipse.jetty.server.Handler.Wrapper
    • setServer

      public void setServer(org.eclipse.jetty.server.Server server)
      Specified by:
      setServer in interface org.eclipse.jetty.server.Handler
      Overrides:
      setServer in class org.eclipse.jetty.server.handler.ContextHandler
    • newContext

      protected org.eclipse.jetty.server.handler.ContextHandler.ScopedContext newContext()
      Overrides:
      newContext in class org.eclipse.jetty.server.handler.ContextHandler
    • wrapRequest

      protected org.eclipse.jetty.server.handler.ContextRequest wrapRequest(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response)
      Overrides:
      wrapRequest in class org.eclipse.jetty.server.handler.ContextHandler
    • notifyEnterScope

      protected void notifyEnterScope(org.eclipse.jetty.server.Request coreRequest)
      Overrides:
      notifyEnterScope in class org.eclipse.jetty.server.handler.ContextHandler
    • notifyExitScope

      protected void notifyExitScope(org.eclipse.jetty.server.Request coreRequest)
      Overrides:
      notifyExitScope in class org.eclipse.jetty.server.handler.ContextHandler
    • getContextHandler

      public ContextHandler getContextHandler()
    • getAttributeNameSet

      public Set<String> getAttributeNameSet()
      Specified by:
      getAttributeNameSet in interface org.eclipse.jetty.util.Attributes
      Overrides:
      getAttributeNameSet in class org.eclipse.jetty.server.handler.ContextHandler