Search in sources :

Example 1 with SessionId

use of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionId in project fabric8 by jboss-fuse.

the class SessionIdMarshaller method tightMarshal1.

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
    SessionId info = (SessionId) o;
    int rc = super.tightMarshal1(wireFormat, o, bs);
    rc += tightMarshalString1(info.getConnectionId(), bs);
    rc += tightMarshalLong1(wireFormat, info.getValue(), bs);
    return rc + 0;
}
Also used : SessionId(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionId)

Example 2 with SessionId

use of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionId in project fabric8 by jboss-fuse.

the class SessionIdMarshaller method looseUnmarshal.

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataByteArrayInputStream dataIn) throws IOException {
    super.looseUnmarshal(wireFormat, o, dataIn);
    SessionId info = (SessionId) o;
    info.setConnectionId(looseUnmarshalString(dataIn));
    info.setValue(looseUnmarshalLong(wireFormat, dataIn));
}
Also used : SessionId(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionId)

Example 3 with SessionId

use of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionId in project fabric8 by jboss-fuse.

the class SessionIdMarshaller method looseMarshal.

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public void looseMarshal(OpenWireFormat wireFormat, Object o, DataByteArrayOutputStream dataOut) throws IOException {
    SessionId info = (SessionId) o;
    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalString(info.getConnectionId(), dataOut);
    looseMarshalLong(wireFormat, info.getValue(), dataOut);
}
Also used : SessionId(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionId)

Example 4 with SessionId

use of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionId in project fabric8 by jboss-fuse.

the class SessionInfoMarshaller method tightUnmarshal.

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataByteArrayInputStream dataIn, BooleanStream bs) throws IOException {
    super.tightUnmarshal(wireFormat, o, dataIn, bs);
    SessionInfo info = (SessionInfo) o;
    info.setSessionId((SessionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
}
Also used : SessionInfo(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionInfo)

Example 5 with SessionId

use of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionId in project fabric8 by jboss-fuse.

the class SessionIdMarshaller method tightUnmarshal.

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataByteArrayInputStream dataIn, BooleanStream bs) throws IOException {
    super.tightUnmarshal(wireFormat, o, dataIn, bs);
    SessionId info = (SessionId) o;
    info.setConnectionId(tightUnmarshalString(dataIn, bs));
    info.setValue(tightUnmarshalLong(wireFormat, dataIn, bs));
}
Also used : SessionId(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionId)

Aggregations

SessionId (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionId)5 SessionInfo (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionInfo)2