org.glassfish.jersey.jetty
Class JettyHttpContainer

java.lang.Object
  extended by org.eclipse.jetty.util.component.AbstractLifeCycle
      extended by org.eclipse.jetty.util.component.ContainerLifeCycle
          extended by org.eclipse.jetty.server.handler.AbstractHandler
              extended by org.glassfish.jersey.jetty.JettyHttpContainer
All Implemented Interfaces:
org.eclipse.jetty.server.Handler, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.LifeCycle

public final class JettyHttpContainer
extends org.eclipse.jetty.server.handler.AbstractHandler
implements Container

Jetty Jersey HTTP Container.

Author:
Arul Dhesiaseelan (aruld@acm.org), Libor Kramolis (libor.kramolis at oracle.com)

Nested Class Summary
 
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.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener
 
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
 
Field Summary
 
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
Method Summary
protected  void doStart()
          Inform this container that the server has been started.
 void doStop()
          Inform this container that the server is being stopped.
 ResourceConfig getConfiguration()
           
 void handle(String target, org.eclipse.jetty.server.Request request, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
           
 void reload()
           
 void reload(ResourceConfig configuration)
           
 
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandler
destroy, dumpThis, getServer, setServer
 
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addBean, addEventListener, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, 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, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

Method Detail

handle

public void handle(String target,
                   org.eclipse.jetty.server.Request request,
                   javax.servlet.http.HttpServletRequest httpServletRequest,
                   javax.servlet.http.HttpServletResponse httpServletResponse)
            throws IOException,
                   javax.servlet.ServletException
Specified by:
handle in interface org.eclipse.jetty.server.Handler
Throws:
IOException
javax.servlet.ServletException

getConfiguration

public ResourceConfig getConfiguration()

reload

public void reload()

reload

public void reload(ResourceConfig configuration)

doStart

protected void doStart()
                throws Exception
Inform this container that the server has been started. This method must be implicitly called after the server containing this container is started.

Overrides:
doStart in class org.eclipse.jetty.server.handler.AbstractHandler
Throws:
Exception

doStop

public void doStop()
            throws Exception
Inform this container that the server is being stopped. This method must be implicitly called before the server containing this container is stopped.

Overrides:
doStop in class org.eclipse.jetty.server.handler.AbstractHandler
Throws:
Exception


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.