Package org.eclipse.jetty.server
Class HttpChannelOverHttp
java.lang.Object
org.eclipse.jetty.server.HttpChannel
org.eclipse.jetty.server.HttpChannelOverHttp
- All Implemented Interfaces:
Runnable
,HttpParser.ComplianceHandler
,HttpParser.HttpHandler
,HttpParser.RequestHandler
,HttpOutput.Interceptor
@Deprecated(since="2021-05-27")
public class HttpChannelOverHttp
extends HttpChannel
implements HttpParser.RequestHandler, HttpParser.ComplianceHandler
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
An HttpChannel customized to be transported over the HTTP/1 protocol
-
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
ConstructorsConstructorDescriptionHttpChannelOverHttp
(HttpConnection httpConnection, Connector connector, HttpConfiguration config, EndPoint endPoint, HttpTransport transport) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.If a write or similar operation to this channel fails, then this method should be called.void
badMessage
(BadMessageException failure) Deprecated.Called to signal that a bad HTTP message has been received.boolean
content
(ByteBuffer content) Deprecated.boolean
Deprecated.void
continue100
(int available) Deprecated.If the associated response has the Expect header set to 100 Continue, then accessing the input stream indicates that the handler/servlet is ready for the request body and thus a 100 Continue response is sent.void
earlyEOF()
Deprecated.Called to signal that an EOF was received unexpectedly during the parsing of an HTTP messageint
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.void
Deprecated.void
Deprecated.void
onBlockWaitForContentFailure
(Throwable failure) Deprecated.void
onComplianceViolation
(HttpCompliance compliance, HttpComplianceSection violation, String reason) Deprecated.void
parsedHeader
(HttpField field) Deprecated.This is the method called by parser when an HTTP Header name and value is foundvoid
parsedTrailer
(HttpField field) Deprecated.This is the method called by parser when an HTTP Trailer name and value is foundvoid
recycle()
Deprecated.boolean
startRequest
(String method, String requestTarget, HttpVersion version) Deprecated.This is the method called by parser when the HTTP request line is parsedMethods inherited from class org.eclipse.jetty.server.HttpChannel
addListener, addRequestLog, ensureConsumeAllOrNotPersistent, getByteBufferPool, getBytesWritten, getCommittedMetaData, getConnection, getConnector, getEndPoint, getHttpConfiguration, getHttpTransport, getIdleTimeout, getLocalAddress, getLocalName, getLocalPort, getNextInterceptor, getRemoteAddress, getRequest, getRequestLog, getRequests, getResponse, getScheduler, getServer, getServerAuthority, getState, getTransientListeners, handle, isCommitted, isOptimizedForDirectBuffers, isPersistent, isRequestCompleted, isResponseCompleted, isSendError, onBadMessage, onCompleted, onContent, onContentComplete, onEarlyEOF, onRequest, onRequestComplete, onTrailers, removeListener, resetBuffer, run, sendResponse, sendResponse, sendResponseAndComplete, setIdleTimeout, setRequestLog, toString, useDirectBuffers, write
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.http.HttpParser.ComplianceHandler
onComplianceViolation
Methods inherited from interface org.eclipse.jetty.http.HttpParser.HttpHandler
badMessage
-
Constructor Details
-
HttpChannelOverHttp
public HttpChannelOverHttp(HttpConnection httpConnection, Connector connector, HttpConfiguration config, EndPoint endPoint, HttpTransport transport) Deprecated.
-
-
Method Details
-
recycle
public void recycle()Deprecated.- Overrides:
recycle
in classHttpChannel
-
isExpecting100Continue
public boolean isExpecting100Continue()Deprecated.- Overrides:
isExpecting100Continue
in classHttpChannel
-
isExpecting102Processing
public boolean isExpecting102Processing()Deprecated.- Overrides:
isExpecting102Processing
in classHttpChannel
-
startRequest
Deprecated.Description copied from interface:HttpParser.RequestHandler
This is the method called by parser when the HTTP request line is parsed- Specified by:
startRequest
in interfaceHttpParser.RequestHandler
- Parameters:
method
- The methodrequestTarget
- The raw bytes of the URI. These are copied into a ByteBuffer that will not be changed until this parser is reset and reused.version
- the http version in use- Returns:
- true if handling parsing should return.
-
parsedHeader
Deprecated.Description copied from interface:HttpParser.HttpHandler
This is the method called by parser when an HTTP Header name and value is found- Specified by:
parsedHeader
in interfaceHttpParser.HttpHandler
- Parameters:
field
- The field parsed
-
parsedTrailer
Deprecated.Description copied from interface:HttpParser.HttpHandler
This is the method called by parser when an HTTP Trailer name and value is found- Specified by:
parsedTrailer
in interfaceHttpParser.HttpHandler
- Parameters:
field
- The field parsed
-
continue100
Deprecated.If the associated response has the Expect header set to 100 Continue, then accessing the input stream indicates that the handler/servlet is ready for the request body and thus a 100 Continue response is sent.- Overrides:
continue100
in classHttpChannel
- Parameters:
available
- estimate of the number of bytes that are available- Throws:
IOException
- if the InputStream cannot be created
-
earlyEOF
public void earlyEOF()Deprecated.Description copied from interface:HttpParser.HttpHandler
Called to signal that an EOF was received unexpectedly during the parsing of an HTTP message- Specified by:
earlyEOF
in interfaceHttpParser.HttpHandler
-
content
Deprecated.- Specified by:
content
in interfaceHttpParser.HttpHandler
-
onAsyncWaitForContent
public void onAsyncWaitForContent()Deprecated.- Overrides:
onAsyncWaitForContent
in classHttpChannel
-
onBlockWaitForContent
public void onBlockWaitForContent()Deprecated.- Overrides:
onBlockWaitForContent
in classHttpChannel
-
onBlockWaitForContentFailure
Deprecated.- Overrides:
onBlockWaitForContentFailure
in classHttpChannel
-
badMessage
Deprecated.Description copied from interface:HttpParser.HttpHandler
Called to signal that a bad HTTP message has been received.- Specified by:
badMessage
in interfaceHttpParser.HttpHandler
- Parameters:
failure
- the failure with the bad message information
-
headerComplete
public boolean headerComplete()Deprecated.- Specified by:
headerComplete
in interfaceHttpParser.HttpHandler
-
abort
Deprecated.Description copied from class:HttpChannel
If a write or similar operation to this channel fails, then this method should be called.The standard implementation calls
HttpTransport.abort(Throwable)
.- Overrides:
abort
in classHttpChannel
- Parameters:
failure
- the failure that caused the abort.
-
contentComplete
public boolean contentComplete()Deprecated.- Specified by:
contentComplete
in interfaceHttpParser.HttpHandler
-
messageComplete
public boolean messageComplete()Deprecated.- Specified by:
messageComplete
in interfaceHttpParser.HttpHandler
-
getHeaderCacheSize
public int getHeaderCacheSize()Deprecated.- Specified by:
getHeaderCacheSize
in interfaceHttpParser.HttpHandler
- Returns:
- the size in bytes of the per parser header cache
-
onComplianceViolation
public void onComplianceViolation(HttpCompliance compliance, HttpComplianceSection violation, String reason) Deprecated.- Specified by:
onComplianceViolation
in interfaceHttpParser.ComplianceHandler
-