Search in sources :

Example 1 with SaslFrameBody

use of org.apache.qpid.server.protocol.v1_0.type.SaslFrameBody in project qpid-broker-j by apache.

the class AMQPConnection_1_0Impl method received.

private void received(int channel, Object val) {
    if (channel > getChannelMax()) {
        Error error = new Error(ConnectionError.FRAMING_ERROR, String.format("specified channel %d larger than maximum channel %d", channel, getChannelMax()));
        handleError(error);
        return;
    }
    FRAME_LOGGER.debug("RECV[{}|{}] : {}", _remoteAddress, channel, val);
    if (val instanceof FrameBody) {
        ((FrameBody) val).invoke(channel, this);
    } else if (val instanceof SaslFrameBody) {
        ((SaslFrameBody) val).invoke(channel, this);
    }
}
Also used : SaslFrameBody(org.apache.qpid.server.protocol.v1_0.type.SaslFrameBody) FrameBody(org.apache.qpid.server.protocol.v1_0.type.FrameBody) ChannelFrameBody(org.apache.qpid.server.protocol.v1_0.type.transport.ChannelFrameBody) SaslFrameBody(org.apache.qpid.server.protocol.v1_0.type.SaslFrameBody) ConnectionError(org.apache.qpid.server.protocol.v1_0.type.transport.ConnectionError) AmqpError(org.apache.qpid.server.protocol.v1_0.type.transport.AmqpError) Error(org.apache.qpid.server.protocol.v1_0.type.transport.Error)

Example 2 with SaslFrameBody

use of org.apache.qpid.server.protocol.v1_0.type.SaslFrameBody in project qpid-broker-j by apache.

the class Interaction method sendPerformativeAndChainFuture.

private void sendPerformativeAndChainFuture(final SaslFrameBody frameBody) throws Exception {
    SASLFrame transportFrame = new SASLFrame(frameBody);
    sendPerformativeAndChainFuture(transportFrame);
}
Also used : SASLFrame(org.apache.qpid.server.protocol.v1_0.framing.SASLFrame)

Aggregations

SASLFrame (org.apache.qpid.server.protocol.v1_0.framing.SASLFrame)1 FrameBody (org.apache.qpid.server.protocol.v1_0.type.FrameBody)1 SaslFrameBody (org.apache.qpid.server.protocol.v1_0.type.SaslFrameBody)1 AmqpError (org.apache.qpid.server.protocol.v1_0.type.transport.AmqpError)1 ChannelFrameBody (org.apache.qpid.server.protocol.v1_0.type.transport.ChannelFrameBody)1 ConnectionError (org.apache.qpid.server.protocol.v1_0.type.transport.ConnectionError)1 Error (org.apache.qpid.server.protocol.v1_0.type.transport.Error)1