Package org.eclipse.jetty.util
package org.eclipse.jetty.util
Jetty Util : Common Utility Classes
-
ClassDescriptionUtility methods for Array manipulationAn AtomicLong with additional methods to treat it as two hi/lo integers.Abstract mechanism to support attachment of miscellaneous objects.Attributes.An
Attributes
implementation backed by anotherAttributes
instance, which is treated as immutable, but with a ConcurrentHashMap used as a mutable layer over it.AnAttributes
implementation that lazily creates a backing map iff it is actually needed.An Attributes implementation backed by aConcurrentHashMap
.An abstract implementation ofAttributes.Wrapper
that provides a mechanism for synthetic attributes that can be modified or deleted.A Wrapper of attributesDeprecated.A shared reusable Blocking source.A BlockingQueue backed by a circular array capable or growing.Buffer utility methods.Byte Array ISO 8859 writer.ByteArrayOutputStream with public internalsA callback abstraction that handles completed/failed events of asynchronous operations.ACompletableFuture
that is also aCallback
.A Callback implementation that calls theCallback.Completing.completed()
method when it either succeeds or fails.Nested Completing Callback that completes after completing the nested callbackBuild a string from a sequence of bytes and/or characters.Extended Utf8StringBuilder that mimicsCodingErrorAction.REPORT
behaviour forCharsetStringBuilder
methods.ClassLoadingObjectInputStream For re-inflating serialized objects, this class uses the thread context classloader rather than the jvm's default classloader selection.A matcher for classes based on package and/or location and/or module/ClassMatcher.Constructor<T extends ClassMatcher>Deprecated.Interface to be implemented by classes capable of checking class visibility for a context.ACompletableFuture
that implementsRunnable
to perform a one-shot task that eventually completes thisCompletableFuture
.A concurrent implementation ofPool
.A Pool entry that holds metadata and a pooled object.The type of the strategy to use for the pool.AThrowable
that may be used in static contexts.A callback wrapper that succeeds the wrapped callback when the count is reached, or on first failure.Computes String representations of Dates then caches the results so that subsequent requests within the same second will be fast.An ObjectFactory enhanced byDecorator
instances.Interface to decorate objects created by theDecoratedObjectFactory
Exception (or ratherThrowable
utility methods.A container for name/value pairs, known as fields.A named list of string values.Simple, yet surprisingly common utility methods for identifying various file types commonly seen and worked with in a deployment scenario.HostMap<TYPE>Parse an authority string (in the formhost:port
) intohost
andport
, handling IPv4 and IPv6 host formats as defined in RFC 2732IncludeExclude<ITEM>Utility class to maintain a set of inclusions and exclusions.IncludeExcludeSet<T,P> Utility class to maintain a set of inclusions and exclusions.Index<V>An immutable String lookup data structure.Builder ofIndex
instances.A mutable String lookup data structure.Builder ofIndex.Mutable
instances.A pattern representing a single or range ofInetAddress
.A set of InetAddress patterns.IntrospectionUtilIO Utilities.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.The indication of the overall progress of the iteration that implementations ofIteratingCallback.process()
must return.Iterating Nested Callback.Java Version Utility class.Lazy List creation.ClassLoader Helper.LockedPool<P>APool.Wrapper
that tracks the acquire/release/remove pool events.A receiver ofPool
events.MemoryUtils provides an abstraction over memory properties and operations.MultiMap<V>A multi valued Map.Handle a multipart MIME response.Handle a multipart MIME response.Utility class to handle a Multi Release Jar fileUtility class with methods that deal withSystem.nanoTime()
.Create a PID file for the running process.Pool<P>A pool of objects, with support for multiplexing and several optimized strategies plus an optionalThreadLocal
cache of the last released entry.Pool.Entry<E>APool
entry that holds metadata and a pooled object.A wrapper forEntry
instances.Pool.Factory<F>A factory forPool
instances.Pool.Wrapper<W>A wrapper forPool
instances.ProcessorUtils provides access to runtime info about processors, that may be overridden by system properties or environment variables.Promise<C>A callback abstraction that handles completed/failed events of asynchronous operations.Empty implementation ofPromise
.A CompletableFuture that is also a Promise.AnInvocable
Promise
that provides theInvocable.InvocationType
of calls toPromise.succeeded(Object)
.Promise.Task<T>A Tokenizer that splits a string into parts, allowing for quotes.A Set of Regular expressions strings.An implementation ofQuotedStringTokenizer
with partial handling of RFC9110 quoted-strings.RolloverFileOutputStream.Scanner Utility for scanning a directory for added, removed and changed files and reporting these events via registered Listeners.Notification of files that changed in the last scan.Notification of exact file changes in the last scan.Listener Marker for notifications re file changes.Listener that notifies when a scan has started and when it has ended.Fast search for patterns within strings, arrays of bytes andByteBuffer
s.Deprecated.CreatesSocketAddress
instances, returning them through aPromise
.CreatesInetSocketAddress
instances asynchronously in a different thread.CreatesInetSocketAddress
instances synchronously in the caller thread.This exception can safely be stored in a static variable as suppressed exceptions are disabled, meaning callingThrowable.addSuppressed(Throwable)
has no effect.Fast String Utilities.Topological sort a list or array.TYPE Utilities.Provide for a Uptime class that is compatible with Android, GAE, and the new Java 8 compact profilesURI Utility methods.Handles coding of MIME "x-www-form-urlencoded".Stateful parser for lines of UTF8 formatted text, looking for"\n"
as a line termination character.UTF-8 StringBuilder.Utility class to use to query the runtime for virtual thread support, and, if virtual threads are supported, to start virtual threads.Implementations of this interface can be configured to use virtual threads.
Attributes.Mapped