コード例 #1
0
 @DocAnnotation$annotation$(
     description =
         " Like [bridge](../../handler/sockjs/SockJSHandler.type.html#bridge) but specifying a handler\n that will receive bridge events.\n")
 @TypeInfo("io.vertx.ceylon.web.handler.sockjs::SockJSHandler")
 public SockJSHandler bridge(
     final @TypeInfo("io.vertx.ceylon.web.handler.sockjs::BridgeOptions") @Name("bridgeOptions")
         @DocAnnotation$annotation$(description = "options to configure the bridge with\n") io
                 .vertx.ceylon.web.handler.sockjs.BridgeOptions
             bridgeOptions,
     final @TypeInfo("ceylon.language::Anything(io.vertx.ceylon.web.handler.sockjs::BridgeEvent)")
         @Name("bridgeEventHandler") @DocAnnotation$annotation$(
             description = "handler to receive bridge events\n") Callable<?> bridgeEventHandler) {
   io.vertx.ext.web.handler.sockjs.BridgeOptions arg_0 =
       bridgeOptions == null
           ? null
           : new io.vertx.ext.web.handler.sockjs.BridgeOptions(
               io.vertx.lang.ceylon.ToJava.JsonObject.convert(bridgeOptions.toJson()));
   io.vertx.core.Handler<io.vertx.ext.web.handler.sockjs.BridgeEvent> arg_1 =
       bridgeEventHandler == null
           ? null
           : new io.vertx.core.Handler<io.vertx.ext.web.handler.sockjs.BridgeEvent>() {
             public void handle(io.vertx.ext.web.handler.sockjs.BridgeEvent event) {
               bridgeEventHandler.$call$(
                   (Object)
                       io.vertx.ceylon.web.handler.sockjs.BridgeEvent.TO_CEYLON
                           .converter()
                           .safeConvert(event));
             }
           };
   SockJSHandler ret =
       io.vertx.ceylon.web.handler.sockjs.SockJSHandler.TO_CEYLON
           .converter()
           .safeConvert(delegate.bridge(arg_0, arg_1));
   return this;
 }
コード例 #2
0
 @DocAnnotation$annotation$(
     description =
         " Set a SockJS socket handler. This handler will be called with a SockJS socket whenever a SockJS connection\n is made from a client\n")
 @TypeInfo("io.vertx.ceylon.web.handler.sockjs::SockJSHandler")
 public SockJSHandler socketHandler(
     final @TypeInfo("ceylon.language::Anything(io.vertx.ceylon.web.handler.sockjs::SockJSSocket)")
         @Name("handler") @DocAnnotation$annotation$(description = "the handler\n") Callable<?>
             handler) {
   io.vertx.core.Handler<io.vertx.ext.web.handler.sockjs.SockJSSocket> arg_0 =
       handler == null
           ? null
           : new io.vertx.core.Handler<io.vertx.ext.web.handler.sockjs.SockJSSocket>() {
             public void handle(io.vertx.ext.web.handler.sockjs.SockJSSocket event) {
               handler.$call$(
                   (Object)
                       io.vertx.ceylon.web.handler.sockjs.SockJSSocket.TO_CEYLON
                           .converter()
                           .safeConvert(event));
             }
           };
   SockJSHandler ret =
       io.vertx.ceylon.web.handler.sockjs.SockJSHandler.TO_CEYLON
           .converter()
           .safeConvert(delegate.socketHandler(arg_0));
   return this;
 }
コード例 #3
0
 @DocAnnotation$annotation$(
     description =
         " Bridge the SockJS handler to the Vert.x event bus. This basically installs a built-in SockJS socket handler\n which takes SockJS traffic and bridges it to the event bus, thus allowing you to extend the server-side\n Vert.x event bus to browsers\n")
 @TypeInfo("io.vertx.ceylon.web.handler.sockjs::SockJSHandler")
 public SockJSHandler bridge(
     final @TypeInfo("io.vertx.ceylon.web.handler.sockjs::BridgeOptions") @Name("bridgeOptions")
         @DocAnnotation$annotation$(description = "options to configure the bridge with\n") io
                 .vertx.ceylon.web.handler.sockjs.BridgeOptions
             bridgeOptions) {
   io.vertx.ext.web.handler.sockjs.BridgeOptions arg_0 =
       bridgeOptions == null
           ? null
           : new io.vertx.ext.web.handler.sockjs.BridgeOptions(
               io.vertx.lang.ceylon.ToJava.JsonObject.convert(bridgeOptions.toJson()));
   SockJSHandler ret =
       io.vertx.ceylon.web.handler.sockjs.SockJSHandler.TO_CEYLON
           .converter()
           .safeConvert(delegate.bridge(arg_0));
   return this;
 }