Class JettyHttpServerContext
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.jdisc.http.server.jetty.JettyHttpServerContext
- All Implemented Interfaces:
com.yahoo.component.Component
,com.yahoo.component.Deconstructable
,Comparable<com.yahoo.component.Component>
public class JettyHttpServerContext
extends com.yahoo.component.AbstractComponent
- Author:
- jonmv
Context that a
JettyHttpServer
uses to pass requests to JDisc. This registers itself with the server upon construction, and unregisters on deconstruction, and the server always uses the most recent context.
-
Field Summary
Fields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
ConstructorDescriptionJettyHttpServerContext
(com.yahoo.jdisc.service.CurrentContainer container, com.yahoo.jdisc.Metric metric, FilterBindings filterBindings, Janitor janitor, JettyHttpServer server) -
Method Summary
Methods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
-
Constructor Details
-
JettyHttpServerContext
@Inject public JettyHttpServerContext(com.yahoo.jdisc.service.CurrentContainer container, com.yahoo.jdisc.Metric metric, FilterBindings filterBindings, Janitor janitor, JettyHttpServer server)
-
-
Method Details
-
deconstruct
public void deconstruct()- Specified by:
deconstruct
in interfacecom.yahoo.component.Deconstructable
- Overrides:
deconstruct
in classcom.yahoo.component.AbstractComponent
-