Package org.eclipse.jetty.util
Jetty Util : Common Utility Classes
-
Interface Summary Interface Description Attachable Abstract mechanism to support attachment of miscellaneous objects.Attributes Attributes.Callback A callback abstraction that handles completed/failed events of asynchronous operations.CharsetStringBuilder Build a string from a sequence of bytes and/or characters.ClassVisibilityChecker ClassVisibilityChecker Interface to be implemented by classes capable of checking class visibility for a context.Decorator Interface for 3rd party libraries to decorate recently created objects in Jetty.PathWatcher.EventListListener EventListListener Listener that reports accumulated events in one shotPathWatcher.Listener Listener for path change eventsPromise<C> A callback abstraction that handles completed/failed events of asynchronous operations.Retainable Scanner.BulkListener Scanner.DiscreteListener Scanner.Listener Listener Marker for notifications re file changes.Scanner.ScanCycleListener Listener that notifies when a scan has started and when it has ended.Scanner.ScanListener SocketAddressResolver CreatesSocketAddress
instances, returning them through aPromise
.Trie<V> A Trie String lookup data structure.Uptime.Impl -
Class Summary Class Description AbstractTrie<V> Abstract Trie implementation.ArrayByteBufferPoolBenchmark ArrayTernaryTrie<V> A Ternary Trie String lookup data structure.ArrayTernaryTrie.Growing<V> ArrayTrie<V> A Trie String lookup data structure using a fixed size array.ArrayUtil Utility methods for Array manipulationAtomicBiInteger An AtomicLong with additional methods to treat it as two hi/lo integers.Atomics Attributes.Wrapper AttributesMap B64Code Deprecated. useBase64
insteadBlockingArrayQueue<E> A BlockingQueue backed by a circular array capable or growing.BufferUtil Buffer utility methods.ByteArrayISO8859Writer Byte Array ISO 8859 writer.ByteArrayOutputStream2 ByteArrayOutputStream with public internalsCallback.Completable A CompletableFuture that is also a Callback.Callback.Completing Callback.Nested Nested Completing Callback that completes after completing the nested callbackCharsetStringBuilder.DecoderStringBuilder CharsetStringBuilder.Iso88591StringBuilder CharsetStringBuilder.UsAsciiStringBuilder ClassLoadingObjectInputStream ClassLoadingObjectInputStream For re-inflating serialized objects, this class uses the thread context classloader rather than the jvm's default classloader selection.ClassLoadingObjectInputStream.ClassLoaderThreadLocal CompletableCallback Deprecated. not used anymoreConcurrentHashSet<E> Deprecated. Use Java 8 methodConcurrentHashMap.newKeySet()
instead.ConstantThrowable AThrowable
that may be used in static contexts.CountingCallback A callback wrapper that succeeds the wrapped callback when the count is reached, or on first failure.DateCache Date Format Cache.DateCache.Tick DecoratedObjectFactory An ObjectFactory enhanced byDecorator
instances.DeprecationWarning Fields A container for name/value pairs, known as fields.Fields.Field A named list of string values.FutureCallback FuturePromise<C> HostMap<TYPE> HostPort Parse an authority string (in the formhost:port
) intohost
andport
, handling IPv4 and IPv6 host formats as defined in https://www.ietf.org/rfc/rfc2732.txtHttpCookieStore Implementation ofCookieStore
that delegates to an instance created byCookieManager
viaCookieManager.getCookieStore()
.HttpCookieStore.Empty IncludeExclude<ITEM> Utility class to maintain a set of inclusions and exclusions.IncludeExcludeSet<T,P> Utility class to maintain a set of inclusions and exclusions.InetAddressSet A set of InetAddress patterns.IntrospectionUtil IntrospectionUtilIO IO Utilities.IPAddressMap<TYPE> Deprecated. IteratingCallback This specialized callback implements a pattern that allows a large asynchronous task to be broken into smaller asynchronous sub-tasks using iteration rather than recursion.IteratingNestedCallback Iterating Nested Callback.JavaVersion Java Version Utility class.Jetty LazyList Lazy List creation.LeakDetector<T> A facility to detect improper usage of resource pools.Loader ClassLoader Helper.ManifestUtils MathUtils MemoryUtils MemoryUtils provides an abstraction over memory properties and operations.MultiMap<V> A multi valued Map.MultiPartInputStreamParser Deprecated. Replaced by org.eclipse.jetty.http.MultiPartFormInputStream The code for MultiPartInputStream is slower than its replacement MultiPartFormInputStream.MultiPartOutputStream Handle a multipart MIME response.MultiPartWriter Handle a multipart MIME response.MultiReleaseJarFile Utility class to handle a Multi Release Jar filePathWatcher Watch a Path (and sub directories) for Path changes.PathWatcher.Config PathWatcher.PathMatcherSet PatternMatcher Pool<T> A pool of objects, with optional support for multiplexing, max usage count and several optimized strategies plus an optionalThreadLocal
cache of the last release entry.PoolStrategyBenchmark ProcessorUtils ProcessorUtils provides access to runtime info about processors, that may be overridden by system properties or environment variables.Promise.Adapter<U> Empty implementation ofPromise
.Promise.Completable<S> A CompletableFuture that is also a Promise.Promise.Wrapper<W> QuotedStringTokenizer StringTokenizer with Quoting support.ReadLineInputStream Deprecated. RegexSet A Set of Regular expressions strings.RolloverFileOutputStream RolloverFileOutputStream.Scanner Scanner Utility for scanning a directory for added, removed and changed files and reporting these events via registered Listeners.SearchPattern SearchPattern Fast search for patterns within strings and arrays of bytes.SharedBlockingCallback Provides a reusableCallback
that can block the thread while waiting to be completed.SocketAddressResolver.Async CreatesSocketAddress
instances asynchronously in a different thread.SocketAddressResolver.Sync CreatesSocketAddress
instances synchronously in the caller thread.StringIsEmptyBenchmark StringReplaceBenchmark StringUtil Fast String Utilities.TopologicalSort<T> Topological sort a list or array.TreeTrie<V> A Trie String lookup data structure using a treeTypeUtil TYPE Utilities.Uptime Provide for a Uptime class that is compatible with Android, GAE, and the new Java 8 compact profilesUptime.DefaultImpl URIUtil URI Utility methods.UrlEncoded Handles coding of MIME "x-www-form-urlencoded".Utf8Appendable Utf8 Appendable abstract base class This abstract class wraps a standardAppendable
and provides methods to append UTF-8 encoded bytes, that are converted into characters.Utf8LineParser Stateful parser for lines of UTF8 formatted text, looking for"\n"
as a line termination character.Utf8StringBuffer UTF-8 StringBuffer.Utf8StringBuilder UTF-8 StringBuilder. -
Enum Summary Enum Description IteratingCallback.Action The indication of the overall progress of the iteration that implementations ofIteratingCallback.process()
must return.MultiPartInputStreamParser.NonCompliance PathWatcher.DirAction PathWatcher.PathWatchEventType PathWatchEventType Type of an eventPool.StrategyType The type of the strategy to use for the pool.ReadLineInputStream.Termination Scanner.Notification -
Exception Summary Exception Description MultiException Wraps multiple exceptions.Utf8Appendable.NotUtf8Exception