public final class JettyHttpContainer extends org.eclipse.jetty.server.handler.AbstractHandler implements Container
Container
implementation based on Jetty Handler
.org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandler
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT
Modifier and Type | Method and Description |
---|---|
protected void |
doStart()
Inform this container that the server has been started.
|
void |
doStop()
Inform this container that the server is being stopped.
|
ApplicationHandler |
getApplicationHandler()
Get the Jersey server-side application handler associated with the container.
|
ResourceConfig |
getConfiguration()
Return an immutable representation of the current
configuration . |
void |
handle(String target,
org.eclipse.jetty.server.Request request,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
void |
reload()
Reload the hosted Jersey application using the current
configuration . |
void |
reload(ResourceConfig configuration)
Reload the hosted Jersey application using a new
configuration . |
destroy, doError, getServer, setServer
addBean, 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
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
handle
in interface org.eclipse.jetty.server.Handler
handle
in class org.eclipse.jetty.server.handler.AbstractHandler
IOException
javax.servlet.ServletException
public ResourceConfig getConfiguration()
Container
configuration
.public void reload()
Container
configuration
.public void reload(ResourceConfig configuration)
Container
configuration
.configuration
- new configuration used for the reload.public ApplicationHandler getApplicationHandler()
Container
protected void doStart() throws Exception
doStart
in class org.eclipse.jetty.server.handler.AbstractHandler
Exception
- if a problem occurred during server startup.public void doStop() throws Exception
doStop
in class org.eclipse.jetty.server.handler.AbstractHandler
Exception
- if a problem occurred during server shutdown.Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.