Package org.eclipse.jetty.io
package org.eclipse.jetty.io
Jetty IO : Core classes for Jetty IO subsystem
-
ClassDescriptionA convenience base implementation of
Connection.Partial implementation of EndPoint that usesFillInterestandWriteFlusher.Abstract implementation ofRetainableByteBufferwith reference counting.ARetainableByteBufferpool where RetainableByteBuffers are held inPools that are held in array elements.A variant of theArrayByteBufferPoolthat uses buckets of buffers that increase in size by a power of 2 (e.g. 1k, 2k, 4k, 8k, etc.).A variant ofArrayByteBufferPoolthat tracks buffer acquires/releases, useful to identify buffer leaks.ByteArrayEndPoint.Accumulates data into a list of ByteBuffers which can then be combined into a single buffer or written to an OutputStream.Aggregates data into a single ByteBuffer of a specified maximum size.This class can be used to accumulate pairs ofByteBufferandCallback, and eventually copy these into a singleByteBufferor byte array and succeed the callbacks.Present a ByteBuffer as an InputStream.Simple wrapper of a ByteBuffer as an OutputStream.This class implements an output stream in which the data is written into a list of ByteBuffer, the buffer list automatically grows as data is written to it, the buffers are taken from the suppliedByteBufferPoolor freshly allocated if one is not supplied.A pool forRetainableByteBufferinstances.Accumulates a sequence ofRetainableByteBufferthat are typically created during the generation of protocol bytes.AByteBufferPoolthat does not pool itsRetainableByteBuffers.A ByteBufferPool with an additional no-argsByteBufferPool.Sized.acquire()method to obtain a buffer of a preconfigured specific size and type.A wrapper forByteBufferPoolinstances.An accumulator ofContent.Chunks used to facilitate minimal copy aggregation of multiple chunks.Factory for client-sideConnectioninstances.Wraps another ClientConnectionFactory.A holder for a list of protocol strings identifiers (for example["h2", "h2-17", "h2-16"]) and aClientConnectionFactorythat creates connections that speak an application protocol such as HTTP.The client-side component that connects to server sockets.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.replaced byTransportA listener for events aboutSocketChannel.connect(SocketAddress).AConnectionis associated to anEndPointso that I/O events happening on theEndPointcan be processed by theConnection.A Listener for connection events.Connectionimplementations implement this interface when they can upgrade from the protocol they speak (for example HTTP/1.1) to a different protocol (e.g.Connectionimplementations implement this interface when they can be upgraded to the protocol they speak (e.g.AConnection.Listenerthat tracks connection statistics.Namespace class that contains the definitions of acontent source, acontent sinkand acontent chunk.A chunk of content indicating whether it is the last chunk.Implementations of this interface may processContent.Chunks being copied by theContent.copy(Source, Sink, Processor, Callback)method, so thatContent.Chunks of unknown types can be copied.A content sink that writes the content to its implementation (a socket, a file, etc.).A source of content that can be read with a read/demand model.Factory ofContent.Source.An abstract implementation of a timeout.CyclicTimeouts<T extends CyclicTimeouts.Expirable>An implementation of a timeout that manages manyexpirableentities whose timeouts are mostly cancelled or re-scheduled.An entity that may expire.AnEndPointimplementation based onDatagramChannel.EndPoint is the abstraction for I/O communication using bytes.A communication conduit between two peers.Interface representing bundle of SSLSession associated data.Marks anEndPointthat wraps anotherEndPoint.A Jetty specialization of EOFException.A Utility class to help implementEndPoint.fillInterested(Callback)by keeping state and calling the context and callback objects.An Abstract implementation of an Idle Timeout.Common IO operations forResourcecontent.ManagedSelectorwraps aSelectorsimplifying non-blocking operations on channels.AManagedSelector.Selectableis anEndPointthat wish to be notified of non-blocking events by theManagedSelector.A selector update to be done when the selector has been woken.Memory-based implementation ofEndPoint.Pipe.A listener for raw network traffic within Jetty.A specialized version ofSocketChannelEndPointthat supportsNetworkTrafficListeners.A Quiet Exception.A reference counted resource, for example one that is borrowed from a pool, that may be retained an additional number of times, and released a correspondent number of times, over its lifecycle.A reference count implementation for aRetainableresource.A wrapper ofRetainableinstances.A pooledByteBufferwhich maintains a reference count that is incremented withRetainable.retain()and decremented withRetainable.release().A wrapper forRetainableByteBufferinstancesSubclass ofRuntimeExceptionused to signal that there was anIOExceptionthrown by underlyingWriterA partialEndPointimplementation based onSelectableChannel.SelectorManagermanages a number ofManagedSelectors that simplify the non-blocking primitives provided by the JVM via thejava.niopackage.A listener for accept events.AnEndPointimplementation based onSocketChannel.The low-level transport used by clients.Abstract implementation ofTransportbased on IP.Abstract implementation ofTransportbased on sockets.The TCP/IPTransport.The stream Unix-Domain socketTransport.The UDP/IPTransport.The datagram Unix-Domain socketTransport.Abstract implementation ofTransportbased on Unix-Domain sockets.A wrapper forTransportinstances to allow layering ofTransports.A Utility class to help implementEndPoint.write(Callback, ByteBuffer...)by callingEndPoint.flush(ByteBuffer...)until all content is written.Deprecated, for removal: This API element is subject to removal in a future version.functionality removed, no replacementWrap a Writer as an OutputStream.An alternate toOutputStreamWriterthat supports several optimized implementation for well knownCharsets, specificallyStandardCharsets.UTF_8andStandardCharsets.ISO_8859_1.
Transport