Top Description Interfaces Classes
module org.eclipse.jetty.util

Package org.eclipse.jetty.util


Jetty Util : Common Utility Classes

Interface Summary

Modifier and TypeInterface and Description
public interface
Attachable

Abstract mechanism to support attachment of miscellaneous objects.

public interface
Attributes

Attributes.

public interface
Callback

A callback abstraction that handles completed/failed events of asynchronous operations.

public interface
CharsetStringBuilder

Build a string from a sequence of bytes and/or characters.

public interface
ClassVisibilityChecker

ClassVisibilityChecker Interface to be implemented by classes capable of checking class visibility for a context.

public interface
Decorator

Interface to decorate objects created by the DecoratedObjectFactory

public interface
Index<
the entry type
V
>

An immutable String lookup data structure.

public interface
Pool<
the type of the pooled objects
P
>

A pool of objects, with support for multiplexing and several optimized strategies plus an optional ThreadLocal cache of the last released entry.

public interface
Promise<
the type of the context object
C
>

A callback abstraction that handles completed/failed events of asynchronous operations.

public interface
QuotedStringTokenizer

A Tokenizer that splits a string into parts, allowing for quotes.

public interface
SocketAddressResolver

Creates SocketAddress instances, returning them through a Promise.

Class Summary

Modifier and TypeClass and Description
pack-priv abstract class
AbstractTrie<
the type of object that the Trie holds
V
>

Abstract Trie implementation.

pack-priv class
ArrayTernaryTrie<
the Entry type
V
>

Deprecated

A Ternary Trie String lookup data structure.

pack-priv class
ArrayTrie<
the entry type
V
>

A Trie String lookup data structure using a fixed size array.

public class
ArrayUtil

Utility methods for Array manipulation

public class
public class
AtomicBiInteger

An AtomicLong with additional methods to treat it as two hi/lo integers.

public class
public class
public class
Blocker

Utility class that provides blocking java.lang.Runnable and org.eclipse.jetty.util.Callback instances.

public class
BlockingArrayQueue<
The element type
E
>

A BlockingQueue backed by a circular array capable or growing.

public class
BufferUtil

Buffer utility methods.

public class
ByteArrayISO8859Writer

Byte Array ISO 8859 writer.

public class
ByteArrayOutputStream2

ByteArrayOutputStream with public internals

public class
ClassLoadingObjectInputStream

ClassLoadingObjectInputStream For re-inflating serialized objects, this class uses the thread context classloader rather than the jvm's default classloader selection.

public abstract class
CompletableTask<
the type of the result of the task
T
>

A CompletableFuture that implements Runnable to perform a one-shot task that eventually completes this CompletableFuture.

public class
ConcurrentPool<
the type of the pooled objects
P
>

A concurrent implementation of Pool.

public class
ConstantThrowable

A Throwable that may be used in static contexts.

public class
CountingCallback

A callback wrapper that succeeds the wrapped callback when the count is reached, or on first failure.

public class
DateCache

Computes String representations of Dates then caches the results so that subsequent requests within the same second will be fast.

public class
DecoratedObjectFactory

An ObjectFactory enhanced by Decorator instances.

public class
pack-priv class
EmptyTrie<
the entry type
V
>

An empty trie implementation that never contains anything and never accepts new entries.

public class
ExceptionUtil

Exception (or rather Throwable utility methods.

public class
Fields

A container for name/value pairs, known as fields.

public class
FileID

Simple, yet surprisingly common utility methods for identifying various file types commonly seen and worked with in a deployment scenario.

public class
public class
public class
HostMap<
the element type
TYPE
>

public class
HostPort

Parse an authority string (in the form host:port) into host and port, handling IPv4 and IPv6 host formats as defined in RFC 2732

public class
IncludeExclude<
The type of element
ITEM
>

Utility class to maintain a set of inclusions and exclusions.

public class
IncludeExcludeSet<
The type of element of the set (often a pattern)
T
,
The type of the instance passed to the predicate
P
>

Utility class to maintain a set of inclusions and exclusions.

public abstract class
InetAddressPattern

A pattern representing a single or range of InetAddress.

public class
InetAddressSet

A set of InetAddress patterns.

public class
IntrospectionUtil

IntrospectionUtil

public class
IO

IO Utilities.

public abstract class
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.

public abstract class
IteratingNestedCallback

Iterating Nested Callback.

public class
JavaVersion

Java Version Utility class.

public class
public class
LazyList

Lazy List creation.

public class
public class
Loader

ClassLoader Helper.

public class
LockedPool<
the type of the pooled objects
P
>

A Pool.Wrapper that tracks the acquire/release/remove pool events.

public class
public class
public class
MemoryUtils

MemoryUtils provides an abstraction over memory properties and operations.

public class
MultiMap<
the entry type for multimap values
V
>

A multi valued Map.

public class
MultiPartOutputStream

Handle a multipart MIME response.

public class
MultiPartWriter

Handle a multipart MIME response.

public class
MultiReleaseJarFile

Utility class to handle a Multi Release Jar file

public class
NanoTime

Utility class with methods that deal with System#nanoTime().

public class
PidFile

Create a PID file for the running process.

public class
ProcessorUtils

ProcessorUtils provides access to runtime info about processors, that may be overridden by system properties or environment variables.

public class
RegexSet

A Set of Regular expressions strings.

public class
RFC9110QuotedStringTokenizer

An implementation of QuotedStringTokenizer with partial handling of RFC9110 quoted-strings.

public class
RolloverFileOutputStream

RolloverFileOutputStream.

public class
Scanner

Scanner Utility for scanning a directory for added, removed and changed files and reporting these events via registered Listeners.

public class
SearchPattern

Fast search for patterns within strings, arrays of bytes and ByteBuffers.

pack-priv class
public class
SharedBlockingCallback

Provides a reusable Callback that can block the thread while waiting to be completed.
public class
StaticException

This exception can safely be stored in a static variable as suppressed exceptions are disabled, meaning calling addSuppressed(Throwable) has no effect.

public class
StringUtil

Fast String Utilities.

public class
TopologicalSort<
The type to be sorted. It must be able to be added to a HashSet
T
>

Topological sort a list or array.

pack-priv class
TreeTrie<
the entry type
V
>

A Trie String lookup data structure using a tree

This implementation is always case insensitive and is optimal for a variable number of fixed strings with few special characters.

public class
TypeUtil

TYPE Utilities.

public class
Uptime

Provide for a Uptime class that is compatible with Android, GAE, and the new Java 8 compact profiles

public class
UriPatternPredicate

Predicate for matching URI against a provided Regex Pattern

If the pattern is null and isNullInclusive is true, then all URIs will match.

public class
URIUtil

URI Utility methods.

public class
UrlEncoded

Handles coding of MIME "x-www-form-urlencoded".

public class
Utf8LineParser

Stateful parser for lines of UTF8 formatted text, looking for "\n" as a line termination character.

public class
Utf8StringBuilder

UTF-8 StringBuilder.

public class
VirtualThreads

Utility class to use to query the runtime for virtual thread support, and, if virtual threads are supported, to start virtual threads.