Class HttpClientTransportOverHTTP2
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2
-
- All Implemented Interfaces:
HttpClientTransport,org.eclipse.jetty.io.ClientConnectionFactory,org.eclipse.jetty.util.component.Container,org.eclipse.jetty.util.component.Destroyable,org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.LifeCycle
@ManagedObject("The HTTP/2 client transport") public class HttpClientTransportOverHTTP2 extends org.eclipse.jetty.util.component.ContainerLifeCycle implements HttpClientTransport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING
-
Fields inherited from interface org.eclipse.jetty.client.HttpClientTransport
HTTP_CONNECTION_PROMISE_CONTEXT_KEY, HTTP_DESTINATION_CONTEXT_KEY
-
-
Constructor Summary
Constructors Constructor Description HttpClientTransportOverHTTP2(HTTP2Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(InetSocketAddress address, Map<String,Object> context)protected voiddoStart()protected voiddoStop()protected HttpClientgetHttpClient()intgetSelectors()booleanisUseALPN()org.eclipse.jetty.io.ConnectionnewConnection(org.eclipse.jetty.io.EndPoint endPoint, Map<String,Object> context)protected HttpConnectionOverHTTP2newHttpConnection(HttpDestination destination, org.eclipse.jetty.http2.api.Session session)HttpDestinationnewHttpDestination(Origin origin)protected voidonClose(HttpConnectionOverHTTP2 connection, org.eclipse.jetty.http2.frames.GoAwayFrame frame)voidsetHttpClient(HttpClient client)voidsetUseALPN(boolean useALPN)-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, 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
-
-
-
-
Constructor Detail
-
HttpClientTransportOverHTTP2
public HttpClientTransportOverHTTP2(HTTP2Client client)
-
-
Method Detail
-
getSelectors
@ManagedAttribute(value="The number of selectors", readonly=true) public int getSelectors()
-
isUseALPN
public boolean isUseALPN()
-
setUseALPN
public void setUseALPN(boolean useALPN)
-
doStart
protected void doStart() throws Exception- Overrides:
doStartin classorg.eclipse.jetty.util.component.ContainerLifeCycle- Throws:
Exception
-
doStop
protected void doStop() throws Exception- Overrides:
doStopin classorg.eclipse.jetty.util.component.ContainerLifeCycle- Throws:
Exception
-
getHttpClient
protected HttpClient getHttpClient()
-
setHttpClient
public void setHttpClient(HttpClient client)
- Specified by:
setHttpClientin interfaceHttpClientTransport
-
newHttpDestination
public HttpDestination newHttpDestination(Origin origin)
- Specified by:
newHttpDestinationin interfaceHttpClientTransport
-
connect
public void connect(InetSocketAddress address, Map<String,Object> context)
- Specified by:
connectin interfaceHttpClientTransport
-
newConnection
public org.eclipse.jetty.io.Connection newConnection(org.eclipse.jetty.io.EndPoint endPoint, Map<String,Object> context) throws IOException- Specified by:
newConnectionin interfaceorg.eclipse.jetty.io.ClientConnectionFactory- Throws:
IOException
-
newHttpConnection
protected HttpConnectionOverHTTP2 newHttpConnection(HttpDestination destination, org.eclipse.jetty.http2.api.Session session)
-
onClose
protected void onClose(HttpConnectionOverHTTP2 connection, org.eclipse.jetty.http2.frames.GoAwayFrame frame)
-
-