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 to decorate objects created by the
Index<V>An immutable String lookup data structure. Index.Mutable<V>A mutable String lookup data structure. 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.BulkListenerNotification of files that changed in the last scan. Scanner.DiscreteListenerNotification of exact file changes in the last scan. Scanner.ListenerListener Marker for notifications re file changes. Scanner.ScanCycleListenerListener that notifies when a scan has started and when it has ended. SocketAddressResolverCreates
SocketAddressinstances, returning them through a
Class Summary Class Description ArrayUtilUtility methods for Array manipulation AsciiLowerCaseSet AtomicBiIntegerAn AtomicLong with additional methods to treat it as two hi/lo integers. Atomics Attributes.WrapperA Wrapper of attributes AttributesMap 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.CompletingA Callback implementation that calls the
Callback.Completing.completed()method when it either succeeds or fails.
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 ConstantThrowableA
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. Index.Builder<V>Builder of
InetAddressPatternA pattern representing a single or range of
InetAddressSetA set of InetAddress patterns. IntrospectionUtilIntrospectionUtil IOIO Utilities. 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. 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.
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. 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.
InetSocketAddressinstances asynchronously in a different thread.
InetSocketAddressinstances synchronously in the caller thread.
StringUtilFast String Utilities. TopologicalSort<T>Topological sort a list or array. 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
PathWatcher.DirAction PathWatcher.PathWatchEventTypePathWatchEventType Type of an event Pool.StrategyTypeThe type of the strategy to use for the pool.
Exception Summary Exception Description MultiExceptionWraps multiple exceptions. Utf8Appendable.NotUtf8Exception