@DocAnnotation$annotation$(
     description = " @return the Vert.x-Web session corresponding to this socket\n")
 @TypeInfo("io.vertx.ceylon.web::Session?")
 public Session webSession() {
   Session ret =
       io.vertx.ceylon.web.Session.TO_CEYLON.converter().safeConvert(delegate.webSession());
   return ret;
 }
 @DocAnnotation$annotation$(
     description =
         " Return the URI corresponding to the last request for this socket or the websocket handshake\n")
 @TypeInfo("ceylon.language::String")
 public ceylon.language.String uri() {
   ceylon.language.String ret = io.vertx.lang.ceylon.ToCeylon.String.safeConvert(delegate.uri());
   return ret;
 }
 @TypeInfo("io.vertx.ceylon.web.handler.sockjs::SockJSSocket")
 public SockJSSocket resume() {
   SockJSSocket ret =
       io.vertx.ceylon.web.handler.sockjs.SockJSSocket.TO_CEYLON
           .converter()
           .safeConvert(delegate.resume());
   return this;
 }
 @DocAnnotation$annotation$(
     description = "  @return the Vert.x-Web user corresponding to this socket\n")
 @TypeInfo("io.vertx.ceylon.auth.common::User?")
 public User webUser() {
   User ret =
       io.vertx.ceylon.auth.common.User.TO_CEYLON.converter().safeConvert(delegate.webUser());
   return ret;
 }
 @DocAnnotation$annotation$(
     description =
         " Return the headers corresponding to the last request for this socket or the websocket handshake\n Any cookie headers will be removed for security reasons\n")
 @TypeInfo("io.vertx.ceylon.core::MultiMap")
 public MultiMap headers() {
   MultiMap ret =
       io.vertx.ceylon.core.MultiMap.TO_CEYLON.converter().safeConvert(delegate.headers());
   return ret;
 }
 @DocAnnotation$annotation$(description = " Return the local address for this socket\n")
 @TypeInfo("io.vertx.ceylon.core.net::SocketAddress")
 public SocketAddress localAddress() {
   SocketAddress ret =
       io.vertx.ceylon.core.net.SocketAddress.TO_CEYLON
           .converter()
           .safeConvert(delegate.localAddress());
   return ret;
 }
 @DocAnnotation$annotation$(
     description =
         " When a <code>SockJSSocket</code> is created it automatically registers an event handler with the event bus, the ID of that\n handler is given by <code>writeHandlerID</code>.\n <p>\n Given this ID, a different event loop can send a buffer to that event handler using the event bus and\n that buffer will be received by this instance in its own event loop and written to the underlying socket. This\n allows you to write data to other sockets which are owned by different event loops.\n")
 @TypeInfo("ceylon.language::String")
 public ceylon.language.String writeHandlerID() {
   ceylon.language.String ret =
       io.vertx.lang.ceylon.ToCeylon.String.safeConvert(delegate.writeHandlerID());
   return ret;
 }
 @TypeInfo("io.vertx.ceylon.web.handler.sockjs::SockJSSocket")
 public SockJSSocket setWriteQueueMaxSize(
     final @TypeInfo("ceylon.language::Integer") @Name("maxSize") long maxSize) {
   int arg_0 = (int) maxSize;
   SockJSSocket ret =
       io.vertx.ceylon.web.handler.sockjs.SockJSSocket.TO_CEYLON
           .converter()
           .safeConvert(delegate.setWriteQueueMaxSize(arg_0));
   return this;
 }
 @TypeInfo("io.vertx.ceylon.web.handler.sockjs::SockJSSocket")
 public SockJSSocket write(
     final @TypeInfo("io.vertx.ceylon.core.buffer::Buffer") @Name("data") Buffer data) {
   io.vertx.core.buffer.Buffer arg_0 =
       io.vertx.ceylon.core.buffer.Buffer.TO_JAVA.safeConvert(data);
   SockJSSocket ret =
       io.vertx.ceylon.web.handler.sockjs.SockJSSocket.TO_CEYLON
           .converter()
           .safeConvert(delegate.write(arg_0));
   return this;
 }
 @TypeInfo("io.vertx.ceylon.web.handler.sockjs::SockJSSocket")
 public SockJSSocket drainHandler(
     final @TypeInfo("ceylon.language::Anything()") @Name("handler") Callable<?> handler) {
   io.vertx.core.Handler<java.lang.Void> arg_0 =
       handler == null
           ? null
           : new io.vertx.core.Handler<java.lang.Void>() {
             public void handle(java.lang.Void event) {
               handler.$call$();
             }
           };
   SockJSSocket ret =
       io.vertx.ceylon.web.handler.sockjs.SockJSSocket.TO_CEYLON
           .converter()
           .safeConvert(delegate.drainHandler(arg_0));
   return this;
 }
 @TypeInfo("io.vertx.ceylon.web.handler.sockjs::SockJSSocket")
 public SockJSSocket handler(
     final @TypeInfo("ceylon.language::Anything(io.vertx.ceylon.core.buffer::Buffer)") @Name(
             "handler") Callable<?> handler) {
   io.vertx.core.Handler<io.vertx.core.buffer.Buffer> arg_0 =
       handler == null
           ? null
           : new io.vertx.core.Handler<io.vertx.core.buffer.Buffer>() {
             public void handle(io.vertx.core.buffer.Buffer event) {
               handler.$call$(
                   (Object)
                       io.vertx.ceylon.core.buffer.Buffer.TO_CEYLON
                           .converter()
                           .safeConvert(event));
             }
           };
   SockJSSocket ret =
       io.vertx.ceylon.web.handler.sockjs.SockJSSocket.TO_CEYLON
           .converter()
           .safeConvert(delegate.handler(arg_0));
   return this;
 }
Beispiel #12
0
 public boolean writeQueueFull() {
   boolean ret = delegate.writeQueueFull();
   return ret;
 }
Beispiel #13
0
 /** @return the Vert.x-Web user corresponding to this socket */
 public User webUser() {
   User ret = User.newInstance(delegate.webUser());
   return ret;
 }
Beispiel #14
0
 public void end(Buffer t) {
   delegate.end((io.vertx.core.buffer.Buffer) t.getDelegate());
 }
Beispiel #15
0
 /**
  * Return the URI corresponding to the last request for this socket or the websocket handshake
  *
  * @return
  */
 public String uri() {
   String ret = delegate.uri();
   return ret;
 }
Beispiel #16
0
 /** @return the Vert.x-Web session corresponding to this socket */
 public Session webSession() {
   Session ret = Session.newInstance(delegate.webSession());
   return ret;
 }
Beispiel #17
0
 /**
  * Return the local address for this socket
  *
  * @return
  */
 public SocketAddress localAddress() {
   SocketAddress ret = SocketAddress.newInstance(delegate.localAddress());
   return ret;
 }
Beispiel #18
0
 /**
  * Return the headers corresponding to the last request for this socket or the websocket handshake
  * Any cookie headers will be removed for security reasons
  *
  * @return
  */
 public MultiMap headers() {
   MultiMap ret = MultiMap.newInstance(delegate.headers());
   return ret;
 }
Beispiel #19
0
 /** Close it */
 public void close() {
   delegate.close();
 }
Beispiel #20
0
 /**
  * Return the remote address for this socket
  *
  * @return
  */
 public SocketAddress remoteAddress() {
   SocketAddress ret = SocketAddress.newInstance(delegate.remoteAddress());
   return ret;
 }
Beispiel #21
0
 /**
  * When a <code>SockJSSocket</code> is created it automatically registers an event handler with
  * the event bus, the ID of that handler is given by <code>writeHandlerID</code>.
  *
  * <p>Given this ID, a different event loop can send a buffer to that event handler using the
  * event bus and that buffer will be received by this instance in its own event loop and written
  * to the underlying socket. This allows you to write data to other sockets which are owned by
  * different event loops.
  *
  * @return
  */
 public String writeHandlerID() {
   String ret = delegate.writeHandlerID();
   return ret;
 }
 @TypeInfo("ceylon.language::Boolean")
 public boolean writeQueueFull() {
   boolean ret = delegate.writeQueueFull();
   return ret;
 }
 @TypeInfo("ceylon.language::Anything")
 public void end(final @TypeInfo("io.vertx.ceylon.core.buffer::Buffer") @Name("t") Buffer t) {
   io.vertx.core.buffer.Buffer arg_0 = io.vertx.ceylon.core.buffer.Buffer.TO_JAVA.safeConvert(t);
   delegate.end(arg_0);
 }
 @DocAnnotation$annotation$(
     description = " Call [end](../../handler/sockjs/SockJSSocket.type.html#end).\n")
 @TypeInfo("ceylon.language::Anything")
 public void end() {
   delegate.end();
 }
 @DocAnnotation$annotation$(description = " Close it\n")
 @TypeInfo("ceylon.language::Anything")
 public void close() {
   delegate.close();
 }