public final class Capability extends Object implements Serializable
Channel.
Each Channel exposes its capability to Channel.getProperty(Object).
This mechanism allows two different versions of remoting.jar to talk to each other.
Channel.remoteCapability,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static String |
KEY
Key usable as a WebSocket HTTP header to negotiate capabilities.
|
static Capability |
NONE |
| Constructor and Description |
|---|
Capability() |
| Modifier and Type | Method and Description |
|---|---|
static Capability |
fromASCII(String ascii)
The inverse of
toASCII(). |
boolean |
hasMimicException()
Deprecated.
no longer used
|
static Capability |
read(InputStream is)
The opposite operation of
write(java.io.OutputStream). |
boolean |
supportsChunking()
Supports chunking to designate a command boundary.
|
boolean |
supportsGreedyRemoteInputStream()
Does
RemoteInputStream supports greedy flag. |
boolean |
supportsMultiClassLoaderRPC()
Does this implementation supports multi-classloader serialization in
UserRequest? |
boolean |
supportsPipeThrottling()
Does the implementation supports window size control over pipes?
|
boolean |
supportsPrefetch()
Does the implementation allow classes to be prefetched and JARs to be cached?
|
boolean |
supportsProxyExceptionFallback()
Supports
ProxyException as a fallback when failing to deserialize UserRequest exceptions. |
boolean |
supportsProxyWriter2_35()
Does
ProxyWriter supports proper throttling?
This flag is also used to check other improvements made in ProxyWriter at the same time. |
String |
toASCII()
Uses
write(java.io.OutputStream) to serialize this object to a Base64-encoded ASCII stream. |
String |
toString() |
public static final String KEY
public static final Capability NONE
public boolean supportsMultiClassLoaderRPC()
UserRequest?MultiClassLoaderSerializerpublic boolean supportsPipeThrottling()
ProxyOutputStream@Deprecated public boolean hasMimicException()
public boolean supportsChunking()
In this mode, the wire format of the data changes to:
ObjectOutputStream
ChunkHeaderpublic boolean supportsPrefetch()
public boolean supportsGreedyRemoteInputStream()
RemoteInputStream supports greedy flag.public boolean supportsProxyWriter2_35()
ProxyWriter supports proper throttling?
This flag is also used to check other improvements made in ProxyWriter at the same time.public boolean supportsProxyExceptionFallback()
ProxyException as a fallback when failing to deserialize UserRequest exceptions.public static Capability read(InputStream is) throws IOException
write(java.io.OutputStream).IOExceptionpublic String toASCII() throws IOException
write(java.io.OutputStream) to serialize this object to a Base64-encoded ASCII stream.IOExceptionpublic static Capability fromASCII(String ascii) throws IOException
toASCII().IOExceptionCopyright © 2004–2020. All rights reserved.