@ManagedObject(value="The HTTP/2 client transport") public class HttpClientTransportOverHTTP2 extends org.eclipse.jetty.util.component.ContainerLifeCycle implements HttpClientTransport
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPINGHTTP_CONNECTION_PROMISE_CONTEXT_KEY, HTTP_DESTINATION_CONTEXT_KEY| Constructor and Description |
|---|
HttpClientTransportOverHTTP2(HTTP2Client client) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(java.net.InetSocketAddress address,
java.util.Map<java.lang.String,java.lang.Object> context) |
protected void |
doStart() |
protected void |
doStop() |
protected HttpClient |
getHttpClient() |
int |
getSelectors() |
boolean |
isUseALPN() |
org.eclipse.jetty.io.Connection |
newConnection(org.eclipse.jetty.io.EndPoint endPoint,
java.util.Map<java.lang.String,java.lang.Object> context) |
protected HttpConnectionOverHTTP2 |
newHttpConnection(HttpDestination destination,
org.eclipse.jetty.http2.api.Session session) |
HttpDestination |
newHttpDestination(Origin origin) |
protected void |
onClose(HttpConnectionOverHTTP2 connection,
org.eclipse.jetty.http2.frames.GoAwayFrame frame) |
void |
setHttpClient(HttpClient client) |
void |
setUseALPN(boolean useALPN) |
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, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic HttpClientTransportOverHTTP2(HTTP2Client client)
@ManagedAttribute(value="The number of selectors",
readonly=true)
public int getSelectors()
public boolean isUseALPN()
public void setUseALPN(boolean useALPN)
protected void doStart()
throws java.lang.Exception
doStart in class org.eclipse.jetty.util.component.ContainerLifeCyclejava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class org.eclipse.jetty.util.component.ContainerLifeCyclejava.lang.Exceptionprotected HttpClient getHttpClient()
public void setHttpClient(HttpClient client)
setHttpClient in interface HttpClientTransportpublic HttpDestination newHttpDestination(Origin origin)
newHttpDestination in interface HttpClientTransportpublic void connect(java.net.InetSocketAddress address,
java.util.Map<java.lang.String,java.lang.Object> context)
connect in interface HttpClientTransportpublic org.eclipse.jetty.io.Connection newConnection(org.eclipse.jetty.io.EndPoint endPoint,
java.util.Map<java.lang.String,java.lang.Object> context)
throws java.io.IOException
newConnection in interface org.eclipse.jetty.io.ClientConnectionFactoryjava.io.IOExceptionprotected HttpConnectionOverHTTP2 newHttpConnection(HttpDestination destination, org.eclipse.jetty.http2.api.Session session)
protected void onClose(HttpConnectionOverHTTP2 connection, org.eclipse.jetty.http2.frames.GoAwayFrame frame)
Copyright © 1995–2019 Webtide. All rights reserved.