zero.core.connection.transports

Class GenericGetTransportHandler

public class GenericGetTransportHandler
extends java.lang.Object

A simple handler for the getTransport event.

This handler can be used to select a custom Transport implementation for a specific protocol using the following configuration in zero.config:

 /config/handlers += [{
 "events" : "getTransport",
 "handler" : "zero.core.connection.transports.GenericGetTransportHandler.class",
 "conditions" : ["/event/protocol =~ protocol_name"],
 "instanceData" : {"transport" : "full_name_of_protocol_Transport_class"}
 }]
 

Note that additional conditions elements may be used to further refine Transport selection. For example /event/target and /event/operation identify the target and operation for the protocol invocation.

For more advanced scenarios that require more subtle Transport selection, a custom getTransport can be used in place of this simple handler.

Constructor

GenericGetTransportHandler()

Method Summary

void onGetTransport()