Jetty Util : Common Utility Classes
Interface Summary Interface Description AttachableAbstract mechanism to support attachment of miscellaneous objects. AttributesAttributes. CallbackA callback abstraction that handles completed/failed events of asynchronous operations. ClassVisibilityCheckerClassVisibilityChecker Interface to be implemented by classes capable of checking class visibility for a context. DecoratorInterface for 3rd party libraries to decorate recently created objects in Jetty. PathWatcher.EventListListenerEventListListener Listener that reports accumulated events in one shot PathWatcher.ListenerListener for path change events Promise<C>A callback abstraction that handles completed/failed events of asynchronous operations. Retainable Scanner.BulkListener Scanner.DiscreteListener Scanner.ListenerListener Marker for notifications re file changes. Scanner.ScanCycleListenerListener that notifies when a scan has started and when it has ended. Scanner.ScanListener SocketAddressResolverCreates
SocketAddressinstances, returning them through a
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. ArrayUtilUtility methods for Array manipulation AtomicBiIntegerAn AtomicLong with additional methods to treat it as two hi/lo integers. Atomics Attributes.Wrapper AttributesMap B64Code Deprecated.use
BlockingArrayQueue<E>A BlockingQueue backed by a circular array capable or growing. BufferUtilBuffer utility methods. ByteArrayISO8859WriterByte Array ISO 8859 writer. ByteArrayOutputStream2ByteArrayOutputStream with public internals Callback.CompletableA CompletableFuture that is also a Callback. Callback.Completing Callback.NestedNested Completing Callback that completes after completing the nested callback ClassLoadingObjectInputStreamClassLoadingObjectInputStream 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 anymore ConcurrentHashSet<E> Deprecated.Use Java 8 method
Throwablethat may be used in static contexts.
CountingCallbackA callback wrapper that succeeds the wrapped callback when the count is reached, or on first failure. DateCacheDate Format Cache. DateCache.Tick DecoratedObjectFactoryAn ObjectFactory enhanced by
DeprecationWarning FieldsA container for name/value pairs, known as fields. Fields.FieldA named list of string values. FutureCallback FuturePromise<C> HostMap<TYPE> HostPortParse an authority string (in the form
port, handling IPv4 and IPv6 host formats as defined in https://www.ietf.org/rfc/rfc2732.txt
CookieStorethat delegates to an instance created by
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. InetAddressSetA set of InetAddress patterns. IntrospectionUtilIntrospectionUtil IOIO Utilities. IPAddressMap<TYPE> Deprecated. IteratingCallbackThis specialized callback implements a pattern that allows a large job to be broken into smaller tasks using iteration rather than recursion. IteratingNestedCallbackIterating Nested Callback. JavaVersionJava Version Utility class. Jetty LazyListLazy List creation. LeakDetector<T>A facility to detect improper usage of resource pools. LoaderClassLoader Helper. ManifestUtils MathUtils MemoryUtilsMemoryUtils 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. MultiPartOutputStreamHandle a multipart MIME response. MultiPartWriterHandle a multipart MIME response. MultiReleaseJarFileUtility class to handle a Multi Release Jar file PathWatcherWatch 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 optional
ThreadLocalcache of the last release entry.
PoolStrategyBenchmark ProcessorUtilsProcessorUtils provides access to runtime info about processors, that may be overridden by system properties or environment variables. Promise.Adapter<U>Empty implementation of
Promise.Completable<S>A CompletableFuture that is also a Promise. Promise.Wrapper<W> QuotedStringTokenizerStringTokenizer with Quoting support. ReadLineInputStream Deprecated. RegexSetA Set of Regular expressions strings. RolloverFileOutputStreamRolloverFileOutputStream. ScannerScanner Utility for scanning a directory for added, removed and changed files and reporting these events via registered Listeners. SearchPatternSearchPattern Fast search for patterns within strings and arrays of bytes. SharedBlockingCallbackProvides a reusable
Callbackthat can block the thread while waiting to be completed.
SocketAddressinstances asynchronously in a different thread.
SocketAddressinstances synchronously in the caller thread.
StringIsEmptyBenchmark StringReplaceBenchmark StringUtilFast String Utilities. TopologicalSort<T>Topological sort a list or array. TreeTrie<V>A Trie String lookup data structure using a tree TypeUtilTYPE Utilities. UptimeProvide for a Uptime class that is compatible with Android, GAE, and the new Java 8 compact profiles Uptime.DefaultImpl URIUtilURI Utility methods. UrlEncodedHandles coding of MIME "x-www-form-urlencoded". Utf8AppendableUtf8 Appendable abstract base class This abstract class wraps a standard
Appendableand provides methods to append UTF-8 encoded bytes, that are converted into characters.
Utf8LineParserStateful parser for lines of UTF8 formatted text, looking for
"\n"as a line termination character.
Utf8StringBufferUTF-8 StringBuffer. Utf8StringBuilderUTF-8 StringBuilder.
Enum Summary Enum Description IteratingCallback.ActionThe indication of the overall progress of the overall job that implementations of
MultiPartInputStreamParser.NonCompliance PathWatcher.DirAction PathWatcher.PathWatchEventTypePathWatchEventType Type of an event Pool.StrategyTypeThe type of the strategy to use for the pool. ReadLineInputStream.Termination Scanner.Notification
Exception Summary Exception Description MultiExceptionWraps multiple exceptions. Utf8Appendable.NotUtf8Exception