Ejemplo n.º 1
0
 @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;
 }
Ejemplo n.º 2
0
 @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;
 }
Ejemplo n.º 3
0
 @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;
 }
Ejemplo n.º 4
0
 @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;
 }
Ejemplo n.º 5
0
 @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;
 }
Ejemplo n.º 6
0
 @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;
 }
Ejemplo n.º 7
0
 @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;
 }
Ejemplo n.º 8
0
 @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;
 }
Ejemplo n.º 9
0
 @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;
 }
Ejemplo n.º 10
0
 @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;
 }
Ejemplo n.º 11
0
 @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;
 }
Ejemplo n.º 12
0
 public boolean writeQueueFull() {
   boolean ret = delegate.writeQueueFull();
   return ret;
 }
Ejemplo n.º 13
0
 /** @return the Vert.x-Web user corresponding to this socket */
 public User webUser() {
   User ret = User.newInstance(delegate.webUser());
   return ret;
 }
Ejemplo n.º 14
0
 public void end(Buffer t) {
   delegate.end((io.vertx.core.buffer.Buffer) t.getDelegate());
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 16
0
 /** @return the Vert.x-Web session corresponding to this socket */
 public Session webSession() {
   Session ret = Session.newInstance(delegate.webSession());
   return ret;
 }
Ejemplo n.º 17
0
 /**
  * Return the local address for this socket
  *
  * @return
  */
 public SocketAddress localAddress() {
   SocketAddress ret = SocketAddress.newInstance(delegate.localAddress());
   return ret;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 19
0
 /** Close it */
 public void close() {
   delegate.close();
 }
Ejemplo n.º 20
0
 /**
  * Return the remote address for this socket
  *
  * @return
  */
 public SocketAddress remoteAddress() {
   SocketAddress ret = SocketAddress.newInstance(delegate.remoteAddress());
   return ret;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 22
0
 @TypeInfo("ceylon.language::Boolean")
 public boolean writeQueueFull() {
   boolean ret = delegate.writeQueueFull();
   return ret;
 }
Ejemplo n.º 23
0
 @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);
 }
Ejemplo n.º 24
0
 @DocAnnotation$annotation$(
     description = " Call [end](../../handler/sockjs/SockJSSocket.type.html#end).\n")
 @TypeInfo("ceylon.language::Anything")
 public void end() {
   delegate.end();
 }
Ejemplo n.º 25
0
 @DocAnnotation$annotation$(description = " Close it\n")
 @TypeInfo("ceylon.language::Anything")
 public void close() {
   delegate.close();
 }