| AuthenticatedEchoClient | Connects to the echo server and sends messages to be echoed back. |
| AuthenticatedEchoServer | A simple authenticated server, using a static authentication algorithm. |
| AutoConfiguredServer | Shows how to use automatic configuration to simplify client connections using the new Trap 1.2 API. |
| Base64 | A Base64 encoder/decoder. |
| Block | Blocks execution until unblocked. |
| BlockingMessageQueue | A blocking message queue will halt execution when put() is called for a period of time. |
| ByteConverter | Methods for converting integers to and from bytes, while preserving signs. |
| Callback<T> | Provides a generic callback mechanism to handle asynchronous callbacks, while allowing synchronous accesses of them. |
| Callback.SingleArgumentCallback<T> | Asynchronous callback interface. |
| ConditionalBlock | Blocks execution until unblocked. |
| Configuration | A generic configuration interface, capable of serialisation, deserialisation and some primitive operations. |
| ConfiguredClient | Similar to the configured server, this sample shows how to tweak a client's configuration. |
| ConfiguredServer | This example focuses on tweaking a server's configuration. |
| DelegateEchoClient | Implements the echo client by setting multiple independent delegate objects instead. |
| EchoClient | Connects to the echo server and sends messages to be echoed back. |
| EchoServer | This example provides a simple echo server. |
| Future | Port of Java's Future interface, for compatibility with pre-1.5 |
| HexConverter | Converts bytes to/from hexadecimal format. |
| HexDump | Utility class to print out hexadecimal and pretty data, primarily for debug purposes. |
| IPUtil | A collection of checks for IP addresses. |
| ListenerTrapTransport | An interface for a Trap Transport capable of listening for incoming connections. |
| ListenerTrapTransportDelegate | Interface to be implemented by objects that wish to receive ListenerTrapTransport callbacks. |
| Lock | Port of the Java Lock class to allow 1.4 and earlier compatibility. |
| LRUCache<K, V> |
| MessageQueue | A FIFO queue for messages. |
| MultiplexedClient | Showcases how to use Trap Channels to send multiple data flows at the same time. |
| MultiplexedServer | A server capable of echoing to the MultiplexedClient. |
| OnAccept | Interface to be implemented by the object responsible for dealing with new incoming Trap connections. |
| OnClose | Interface for delegates that wish to know when the endpoint has closed (changed state to CLOSED). |
| OnData | Implement this interface to handle data callbacks from Trap Endpoints. |
| OnError | Interface for delegates to be notified that an error has occurred in the Trap Endpoint. |
| OnFailedSending | Implement this interface to receive notifications when Trap has failed sending some data. |
| OnObject | Optional interface to be implemented by applications that wish to use the optimised loopback transport. |
| OnOpen | Specifies a delegate that should be called once the endpoint changes state to OPEN. |
| OnSleep | Interface for delegates interesting when the endpoint goes into the SLEEPING state. |
| OnStateChange | Implement this interface to receive callbacks when the Trap Endpoint changes its state. |
| OnWakeup | Interface for delegates to be notified when a TrapEndpoint wakes up (changes state from SLEEPING to OPEN) |
| PackageScanner | Utility class to scan the classes in a certain package. |
| ResizableMessageQueue | For performance reasons, not all message queues can be resized. |
| SSLUtil | |
| SSLUtil.SSLMaterial | |
| StringUtil | StringUtil contains a number of Java 1.4 and Android-safe String operations that should be preferred over the Java native one. |
| ThreadPool | Provides a set of thread pools, supplying implementations for JVMs that do not ship with Thread Pools. |
| TLSEchoServer | This example provides a simple echo server. |
| TLSInsecureEchoClient | Connects to the echo server and sends messages to be echoed back. |
| TLSInsecureEchoServer | This example provides a simple echo server. |
| TrapAuthentication | Provides an interface by which applications can authenticate Trap sessions and messages. |
| TrapAuthenticationException | Exception that can be thrown by the TrapAuthentication instance to alert Trap of an unrecoverable error. |
| TrapChannel | A channel is a logical stream of Trap messages, multiplexed on the same Trap connection. |
| TrapClient | A TrapClient is a TrapEndpoint capable of opening an outgoing connection, commonly to a TrapListener. |
| TrapConfiguration | The TrapConfiguration interface provides a specification on how to interact with a runtime (deserialized) version of TrapConfiguration format. |
| TrapConstants | Contains a number of constants for Trap. |
| TrapContextKeys | Enum for the pre-defined keys that can be used for authentication context map requests. |
| TrapDelegate | General catch-all interface for Trap Delegates. |
| TrapEndpoint | The main interface to Trap, a TrapEndpoint is the shared interface between servers and clients. |
| TrapEndpointDelegate |
This interface is deprecated.
Renamed to TrapEndpointDelegate
|
| TrapEndpointDelegate | Convenience interface for implemting a delegate for OnData, OnStateChange and OnFailedSending
. |
| TrapEndpointMessage | Data structure to hold references for messages in TrapMessageBuffers. |
| TrapException | Exception type thrown by Trap. |
| TrapFactory | TrapFactory is used as an entry point to the underlying Trap implementation. |
| TrapHostingTransport | Defines interfaces for transports that are capable of hosting files. |
| TrapHostingTransport.TrapHostable | Interface for objects hosted by a transport. |
| TrapKeepaliveDelegate | Interface to be implemented by objects that want to be notified about the state of a keepalive predictor/validator. |
| TrapKeepalivePolicy | This class contains definitions for the built-in keepalive policies. |
| TrapKeepalivePredictor | A TrapKeepalivePredictor allows TrapTransports to determine on an automatic basis the next keepalive. |
| TrapListener | A TrapListener is a special kind of Trap node capable of listening for incoming connections. |
| TrapListenerDelegate |
This interface is deprecated.
Renamed to OnAccept in the new delegates package.
|
| TrapMessage | TrapMessage is a message that can be transported via Trap. |
| TrapMessage.Format | The Format class specifies the available Trap message formats. |
| TrapMessage.Operation | This subclass defines the possible message operations of a TrapMessage. |
| TrapMessage.Operation.Value | Contains numeric values for the operations, to be used in switch statements. |
| TrapMessageBuffer | A TrapMessageBuffer is a circular buffer with reordering capabilities for TrapMessage objects. |
| TrapObject | Interface that should be implemented by objects to be transported using Trap. |
| TrapPeer | Interface used to maintain peer to peer Trap connections. |
| TrapPeer.TrapPeerChannel | Callback interface to be implemented by the caller. |
| TrapSettings | A common ancestor interface for TrapEndpoint and TrapListener. |
| TrapState | TrapState defines the set of states that TrapEndpoints can have. |
| TrapTransport | Defines the methods available for interacting with the various Trap transports. |
| TrapTransportDelegate | Interface to be implemented by objects that wish to receive TrapTransport callbacks. |
| TrapTransportException | Denotes an exception that occurred within the transport, generally when trying to send messages. |
| TrapTransportPriority | Contstants representing the default values for transport priorities. |
| TrapTransportProtocol | Defines a non-exhaustive list of protocols that transports can employ. |
| TrapTransports | Container for the automatic detection of transports. |
| TrapTransportState | Acts as an enum for the possible states of a transport. |
| UID | Generator for unique identifiers. |
| UUID | Wrapper class for UUID generation. |