| Package | Description |
|---|---|
| org.marketcetera.util.except |
Nested exception framework with internationalization (i18n) and
thread interruption support.
|
| org.marketcetera.util.exec |
Process execution.
|
| org.marketcetera.util.file |
Miscellaneous utilities for file management.
|
| org.marketcetera.util.l10n |
Message localization tools.
|
| org.marketcetera.util.unicode |
Unicode en/decoding with BOMs, including I/O stream support.
|
| org.marketcetera.util.ws.stateful |
Web services infrastructure.
|
| org.marketcetera.util.ws.stateless |
Infrastructure for stateless communication between client and
server.
|
| org.marketcetera.util.ws.tags |
Tags used to identify aspects of web services, and filters for
those tags.
|
| Modifier and Type | Class and Description |
|---|---|
class |
I18NInterruptedException
An internationalized exception indicating interruption.
|
| Modifier and Type | Method and Description |
|---|---|
static I18NException |
ExceptUtils.wrap(Throwable throwable)
If the given throwable is an interruption exception per
ExceptUtils.isInterruptException(Throwable), then the throwable is
wrapped inside a I18NInterruptedException, and this
exception is returned; also, the calling thread is
interrupted. |
static I18NException |
ExceptUtils.wrap(Throwable throwable,
I18NBoundMessage message)
If the given throwable is an interruption exception per
ExceptUtils.isInterruptException(Throwable), then the throwable is
wrapped inside a I18NInterruptedException, and this
exception is returned; also, the calling thread is
interrupted. |
| Modifier and Type | Method and Description |
|---|---|
static ExecResult |
Exec.run(File directory,
Disposition disposition,
String... args)
Executes the process with the given arguments and returns the
execution result.
|
static ExecResult |
Exec.run(String name,
Disposition disposition,
String... args)
Executes the process with the given arguments and returns the
execution result.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Deleter.apply(File root)
Deletes the file tree rooted at the given root.
|
static void |
Deleter.apply(String name)
Deletes the file tree rooted at the file with the given
name.
|
static void |
CopyBytesUtils.copy(byte[] data,
String name)
Copies an in-memory byte array into the given location.
|
static void |
CopyCharsUtils.copy(char[] data,
String name)
Copies an in-memory character array into the given location.
|
static void |
CopyCharsUnicodeUtils.copy(char[] data,
String name,
SignatureCharset requestedSignatureCharset)
Copies an in-memory character array into the given location and
using the given signature/charset.
|
static long |
CopyBytesUtils.copy(InputStream in,
boolean inSkipClose,
OutputStream out,
boolean outSkipClose)
Copies a byte stream from the given source to the given sink.
|
static long |
CopyBytesUtils.copy(InputStream in,
boolean skipClose,
String out)
Copies a byte stream from the given source to the given
location.
|
static long |
CopyCharsUtils.copy(Reader in,
boolean skipClose,
String out)
Copies a character stream from the given source to the given
location.
|
static long |
CopyCharsUnicodeUtils.copy(Reader in,
boolean skipClose,
String out)
Copies a character stream from the given source to the given
location, attempting to retain signature/charset information.
|
static long |
CopyCharsUtils.copy(Reader in,
boolean inSkipClose,
Writer out,
boolean outSkipClose)
Copies a character stream from the given source to the given
sink.
|
static char[] |
CopyCharsUtils.copy(String name)
Copies the character stream at the given location into memory,
returning a character array.
|
static byte[] |
CopyBytesUtils.copy(String name)
Copies a byte stream from the given location into memory,
returning a byte array.
|
static char[] |
CopyCharsUnicodeUtils.copy(String name,
DecodingStrategy decodingStrategy)
Copies the character stream at the given location (and
interpreted using the given strategy) into memory, returning a
character array.
|
static long |
CopyCharsUnicodeUtils.copy(String in,
DecodingStrategy decodingStrategy,
String out)
Copies a character stream from one given location (and
interpreted using the given strategy) to another, attempting to
retain signature/charset information.
|
static long |
CopyCharsUnicodeUtils.copy(String in,
DecodingStrategy decodingStrategy,
Writer out,
boolean skipClose)
Copies a character stream from the given location (and
interpreted using the given strategy) to the given sink.
|
static long |
CopyBytesUtils.copy(String in,
OutputStream out,
boolean skipClose)
Copies a byte stream from the given location to the given sink.
|
static long |
CopyCharsUtils.copy(String in,
String out)
Copies a character stream from one given location to another.
|
static long |
CopyBytesUtils.copy(String in,
String out)
Copies a byte stream from one given location to another.
|
static long |
CopyCharsUtils.copy(String in,
Writer out,
boolean skipClose)
Copies a character stream from the given location to the given
sink.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ContainerClassInfo.addMessage(I18NMessage message)
Adds the given message to the receiver's meta-information.
|
| Constructor and Description |
|---|
ContainerClassInfo(Class<?> container)
Creates a new meta-information holder for the given message
container class.
|
MessageComparator(Class<?> container)
Creates a new comparator for the given container class and the
fallback properties file deduced from the class's message
provider.
|
MessageComparator(Class<?> container,
Locale locale)
Creates a new comparator for the given container class and the
properties file deduced from the class's message provider and
the given locale.
|
MessageComparator(ContainerClassInfo classInfo)
Creates a new comparator for the given container class
meta-information and the properties file deduced from the
container's message provider.
|
PropertiesFileInfo(I18NMessageProvider provider)
Creates a new meta-information holder for the fallback
properties file associated with the given provider.
|
PropertiesFileInfo(I18NMessageProvider provider,
Locale locale)
Creates a new meta-information holder for the properties file
associated with the given provider and locale.
|
| Modifier and Type | Method and Description |
|---|---|
void |
UnicodeCharset.assertSupported()
Asserts that the JVM supports the receiver's charset.
|
void |
SignatureCharset.assertSupported()
Asserts that the JVM supports the receiver's charset.
|
String |
UnicodeCharset.decode(byte[] data)
Decodes the given byte array using the receiver's charset, and
returns the result.
|
String |
SignatureCharset.decode(byte[] data)
Decodes the given byte array using the receiver's charset, and
returns the result.
|
String |
DecodingStrategy.decode(byte[] data)
Decodes the given byte array using the charset paired to a
signature (among the signature/charset pairs within the
receiver's serializations) that matches the array header, and
returns the result.
|
String |
UnicodeCharset.decode(byte[] data,
int offset,
int length)
Decodes the given portion of the given byte array using the
receiver's charset, and returns the result.
|
static String |
Serialization.decode(Serialization[] candidates,
byte[] data)
Decodes the given byte array using the charset paired to a
signature (among the pairs of the given serializations) that
matches the array header, and returns the result.
|
byte[] |
UnicodeCharset.encode(String data)
Encodes the given string using the receiver's charset, and
returns the result.
|
byte[] |
SignatureCharset.encode(String data)
Encodes the given string using the receiver's charset, and
returns the result.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Client.assertValidSession()
Asserts that an active session is in progress.
|
protected SessionHolder<T> |
RemoteCall.getSessionHolder(ClientContext context)
Asserts that the given client context matches all of the
receiver's filters.
|
void |
Client.login(String user,
char[] password)
Initiates a new session using the given credentials.
|
boolean |
Authenticator.shouldAllow(StatelessClientContext context,
String user,
char[] password)
Checks whether the given credentials can be used to initiate a
new session on behalf of the client with the given context.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
StatelessRemoteCall.assertFilterMatch(StatelessClientContext context)
Asserts that the given client context matches all of the
receiver's filters.
|
protected static void |
StatelessRemoteCall.assertFilterMatch(TagFilter filter,
Tag tag)
Asserts that the given filter matches the given tag.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ValidSessionTagFilter.assertMatch(Tag tag) |
void |
TagFilter.assertMatch(Tag tag)
Asserts that the given tag is acceptable to the receiver.
|
void |
NonNullTagFilter.assertMatch(Tag tag) |
void |
EqualsTagFilter.assertMatch(Tag tag) |
Copyright © 2015. All Rights Reserved.