Package org.eclipse.jetty.http2.server
Class HTTP2ServerConnection.ServerHttpChannelOverHTTP2
java.lang.Object
org.eclipse.jetty.server.HttpChannel
org.eclipse.jetty.http2.server.HttpChannelOverHTTP2
org.eclipse.jetty.http2.server.HTTP2ServerConnection.ServerHttpChannelOverHTTP2
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Runnable
,HTTP2Channel.Server
,WriteFlusher.Listener
,HttpOutput.Interceptor
- Enclosing class:
- HTTP2ServerConnection
protected class HTTP2ServerConnection.ServerHttpChannelOverHTTP2
extends HttpChannelOverHTTP2
implements Closeable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.server.HttpChannel
HttpChannel.Listener, HttpChannel.TransientListeners
-
Field Summary
Fields inherited from class org.eclipse.jetty.server.HttpChannel
NOOP_LISTENER
-
Constructor Summary
ConstructorDescriptionServerHttpChannelOverHTTP2
(Connector connector, HttpConfiguration configuration, EndPoint endPoint, HttpTransportOverHTTP2 transport) -
Method Summary
Methods inherited from class org.eclipse.jetty.http2.server.HttpChannelOverHTTP2
commit, consumeInput, continue100, eof, failAllContent, failed, getHttpTransport, getIdleTimeout, getStream, getTunnellingEndPoint, isExpecting100Continue, isIdle, isTunnellingSupported, isUseOutputDirectByteBuffers, needContent, onData, onFailure, onFlushed, onPushRequest, onRequest, onTimeout, onTrailer, produceContent, setIdleTimeout, setUseOutputDirectByteBuffers, toString
Methods inherited from class org.eclipse.jetty.server.HttpChannel
abort, addListener, addRequestLog, ensureConsumeAllOrNotPersistent, execute, formatAddrOrHost, getByteBufferPool, getBytesWritten, getCommittedMetaData, getConnection, getConnector, getEndPoint, getHttpConfiguration, getLocalAddress, getLocalName, getLocalPort, getNextInterceptor, getRemoteAddress, getRequest, getRequestLog, getRequests, getResponse, getScheduler, getServer, getServerAuthority, getState, getTransientListeners, handle, handleException, isCommitted, isExpecting102Processing, isPersistent, isRequestCompleted, isResponseCompleted, isSendError, isUseInputDirectByteBuffers, newHttpOutput, onBadMessage, onContent, onContentComplete, onRequest, onRequestComplete, onTrailers, removeListener, resetBuffer, run, sendErrorOrAbort, sendResponse, sendResponse, sendResponseAndComplete, setRequestLog, unwrap, write
-
Constructor Details
-
ServerHttpChannelOverHTTP2
public ServerHttpChannelOverHTTP2(Connector connector, HttpConfiguration configuration, EndPoint endPoint, HttpTransportOverHTTP2 transport)
-
-
Method Details
-
checkAndPrepareUpgrade
protected boolean checkAndPrepareUpgrade()Description copied from class:HttpChannel
Checks whether the processing of the request resulted in an upgrade, and if so performs upgrade preparation steps before the upgrade response is sent back to the client.
This avoids a race where the server is unprepared if the client sends data immediately after having received the upgrade response.
- Overrides:
checkAndPrepareUpgrade
in classHttpChannel
- Returns:
- true if the channel is not complete and more processing is required, typically because sendError has been called.
-
onCompleted
public void onCompleted()- Overrides:
onCompleted
in classHttpChannel
-
recycle
public void recycle()- Overrides:
recycle
in classHttpChannelOverHTTP2
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classHttpChannelOverHTTP2
-