A Connection that handles the HTTP protocol.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| protected class | |
| protected class | |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final AtomicLong | |
| private static final ThreadLocal | |
| private final Attributes. | |
| private final ByteBufferPool | |
| private final HttpConnection. | |
| private final HttpGenerator | |
| private final AtomicBoolean | |
| private final HttpFields. | |
| private final HttpChannel | |
| private final long | |
| private Runnable | |
| private final HttpParser | |
| private final HttpConnection. | |
| private long | |
| private volatile RetainableByteBuffer | |
| private final HttpConnection. | |
| private final AtomicReference | |
| private final AtomicLong | |
| private HttpFields. | |
| private final TunnelSupport | |
| private boolean | |
| private boolean | |
| private final LongAdder | |
| private final LongAdder | |
| private static final Logger | |
| private static final HttpField |
| Access | Constructor and Description |
|---|---|
| public | HttpConnection(HttpConfiguration configuration, Connector connector, EndPoint endPoint, boolean recordComplianceViolations)
Deprecated
for removal since 12.0.6. use
HttpConnection(HttpConfiguration, Connector, EndPoint) instead.
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | clearAttributes()
Overrides default org. |
| private int | |
| public Object | getAttribute(String
the attribute to get name)Implements org. |
| public Set | getAttributeNameSet()
Implements org. |
| public long | getBytesIn()
Overrides org. Implements org. |
| public long | |
| public static HttpConnection | Returns: the current HttpConnection or nullGet the current connection that this thread is dispatched to. |
| public HttpGenerator | |
| public HttpChannel | |
| public HttpVersion | |
| public String | |
| public Invocable. | getInvocationType()
Overrides org. Overrides default org. |
| public long | |
| public long | |
| public HttpParser | |
| public String | |
| private ByteBuffer | |
| public Server | |
| public boolean | |
| public boolean | isRecordHttpComplianceViolations()
Deprecated
for removal since 12.0.6. No replacement, no longer used within
HttpConnection, will be removed in Jetty 12.1.0
|
| public boolean | |
| public boolean | |
| public boolean | |
| protected HttpChannel | |
| protected HttpGenerator | |
| protected HttpParser | |
| protected HttpConnection. | |
| protected HttpConnection. | |
| public void | onClose(Throwable
The cause of the close or null for a normal close cause)Overrides org. Implements org. Callback method invoked when this connection is closed. |
| public void | onFillable()
Implements abstract org. Callback method invoked when the endpoint is ready to be read. |
| protected void | onFillInterestedFailed(Throwable
the exception that caused the failure cause)Overrides org. Callback method invoked when the endpoint failed to be ready to be read. |
| public void | onFlushed(long
the number of bytes flushed bytes)Implements org. Invoked when a |
| public boolean | onIdleExpired(TimeoutException timeout)
Overrides org. Implements org. Callback method invoked upon an idle timeout event. |
| public void | onOpen()
Overrides org. Implements org. Callback method invoked when this connection is opened. |
| public ByteBuffer | onUpgradeFrom()
Implements org. Invoked during an |
| public void | onUpgradeTo(ByteBuffer
a non-null buffer of unconsumed bytes received from
the upgrade-from connection.
The buffer does not belong to any pool and should be discarded after
having consumed its bytes. buffer)Implements org. Invoked during an |
| pack-priv void | |
| private boolean | |
| pack-priv void | |
| public Object | removeAttribute(String
the attribute to remove name)Implements org. |
| public void | |
| public Object | setAttribute(String
the attribute to set name, Object the value to set. A null value is equivalent to removing the attribute. attribute)Implements org. |
| protected static HttpConnection | |
| public void | |
| public void | |
| public String | |
| private boolean |