Module org.eclipse.jetty.util
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
.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.A CompletableFuture that is also a Callback.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.ClassLoadingObjectInputStream For re-inflating serialized objects, this class uses the thread context classloader rather than the jvm's default classloader selection.ClassVisibilityChecker Interface to be implemented by classes capable of checking class visibility for a context.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.Date Format Cache.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 https://www.ietf.org/rfc/rfc2732.txtImplementation ofCookieStore
that delegates to an instance created byCookieManager
viaCookieManager.getCookieStore()
.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.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 job to be broken into smaller tasks using iteration rather than recursion.The indication of the overall progress of the overall job that implementations ofIteratingCallback.process()
must return.Iterating Nested Callback.Java Version Utility class.Lazy List creation.LeakDetector<T>A facility to detect improper usage of resource pools.ClassLoader Helper.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()
.Watch a Path (and sub directories) for Path changes.Listener that reports accumulated events in one shotListener for path change eventsType of an eventPool<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.The type of the strategy to use for the pool.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.StringTokenizer with Quoting support.A Set of Regular expressions 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".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.Stateful parser for lines of UTF8 formatted text, looking for"\n"
as a line termination character.UTF-8 StringBuffer.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.Lazy