Jetty Util : Common Utility Classes
Interface Summary Interface Description 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. 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 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 CompletableCallbackA callback to be used by driver code that needs to know whether the callback has been succeeded or failed (that is, completed) just after the asynchronous operation or not, typically because further processing depends on the callback being completed. 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 into Host and Port HttpCookieStoreImplementation of
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 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 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 ReadLineInputStream.Termination Scanner.Notification
Exception Summary Exception Description MultiExceptionWraps multiple exceptions. Utf8Appendable.NotUtf8Exception