Search in sources :

Example 1 with SomeSerializable

use of io.vertx.ext.web.handler.SomeSerializable in project vertx-web by vert-x3.

the class ClusteredSessionHandlerTest method stuffSession.

private void stuffSession(Session session) {
    session.put("somelong", 123456L);
    session.put("someint", 1234);
    session.put("someshort", (short) 123);
    session.put("somebyte", (byte) 12);
    session.put("somedouble", 123.456d);
    session.put("somefloat", 123.456f);
    session.put("somechar", 'X');
    session.put("somebooleantrue", true);
    session.put("somebooleanfalse", false);
    session.put("somestring", "wibble");
    session.put("somebytes", bytes);
    session.put("somebuffer", buffer);
    session.put("someserializable", new SomeSerializable("eek"));
    session.put("someclusterserializable", new JsonObject().put("foo", "bar"));
}
Also used : JsonObject(io.vertx.core.json.JsonObject) SomeSerializable(io.vertx.ext.web.handler.SomeSerializable)

Aggregations

JsonObject (io.vertx.core.json.JsonObject)1 SomeSerializable (io.vertx.ext.web.handler.SomeSerializable)1