RemoteConnectionChannel(final RemoteConnectionHandler connectionHandler, final RemoteConnection connection, final int channelId, final int outboundWindow, final int inboundWindow, final int maxOutboundMessages, final int maxInboundMessages, final long maxOutboundMessageSize, final long maxInboundMessageSize) { super(connectionHandler.getConnectionContext().getConnectionProviderContext().getExecutor(), true); this.maxOutboundMessageSize = maxOutboundMessageSize; this.maxInboundMessageSize = maxInboundMessageSize; connectionHandlerContext = connectionHandler.getConnectionContext(); this.connectionHandler = connectionHandler; this.connection = connection; this.channelId = channelId; this.outboundWindow = outboundWindow; this.inboundWindow = inboundWindow; this.maxOutboundMessages = maxOutboundMessages; this.maxInboundMessages = maxInboundMessages; }
final RegisteredService registeredService = handler.getConnectionContext().getRegisteredService(serviceType); if (registeredService == null) { refuseService(channelId, "Unknown service name"); String mechName = new String(mechNameBytes, StandardCharsets.UTF_8); log.tracef("Received authentication request, id %08x, mech %s", id, mechName); ConnectionHandlerContext c = handler.getConnectionContext(); final byte[] saslBytes; if (buffer.hasRemaining()) { int id = buffer.getInt(); log.tracef("Received authentication challenge, id %08x", id); ConnectionHandlerContext c = handler.getConnectionContext(); final byte[] saslBytes; saslBytes = new byte[buffer.remaining()]; int id = buffer.getInt(); log.tracef("Received authentication response, id %08x", id); ConnectionHandlerContext c = handler.getConnectionContext(); final byte[] saslBytes; if (buffer.hasRemaining()) { int id = buffer.getInt(); log.tracef("Received authentication success, id %08x", id); ConnectionHandlerContext c = handler.getConnectionContext(); final byte[] saslBytes; if (buffer.hasRemaining()) { int id = buffer.getInt();
RemoteConnectionChannel(final RemoteConnectionHandler connectionHandler, final RemoteConnection connection, final int channelId, final int outboundWindow, final int inboundWindow, final int maxOutboundMessages, final int maxInboundMessages, final long maxOutboundMessageSize, final long maxInboundMessageSize) { super(connectionHandler.getConnectionContext().getConnectionProviderContext().getExecutor(), true); this.maxOutboundMessageSize = maxOutboundMessageSize; this.maxInboundMessageSize = maxInboundMessageSize; connectionHandlerContext = connectionHandler.getConnectionContext(); this.connectionHandler = connectionHandler; this.connection = connection; this.channelId = channelId; this.outboundWindow = outboundWindow; this.inboundWindow = inboundWindow; this.maxOutboundMessages = maxOutboundMessages; this.maxInboundMessages = maxInboundMessages; }
RemoteConnectionChannel(final RemoteConnectionHandler connectionHandler, final RemoteConnection connection, final int channelId, final int outboundWindow, final int inboundWindow, final int maxOutboundMessages, final int maxInboundMessages, final long maxOutboundMessageSize, final long maxInboundMessageSize) { super(connectionHandler.getConnectionContext().getConnectionProviderContext().getExecutor(), true); this.maxOutboundMessageSize = maxOutboundMessageSize; this.maxInboundMessageSize = maxInboundMessageSize; connectionHandlerContext = connectionHandler.getConnectionContext(); this.connectionHandler = connectionHandler; this.connection = connection; this.channelId = channelId; this.outboundWindow = outboundWindow; this.inboundWindow = inboundWindow; this.maxOutboundMessages = maxOutboundMessages; this.maxInboundMessages = maxInboundMessages; }
final RegisteredService registeredService = handler.getConnectionContext().getRegisteredService(serviceType); if (registeredService == null) { refuseService(channelId, "Unknown service name"); String mechName = new String(mechNameBytes, StandardCharsets.UTF_8); log.tracef("Received authentication request, id %08x, mech %s", id, mechName); ConnectionHandlerContext c = handler.getConnectionContext(); final byte[] saslBytes; if (buffer.hasRemaining()) { int id = buffer.getInt(); log.tracef("Received authentication challenge, id %08x", id); ConnectionHandlerContext c = handler.getConnectionContext(); final byte[] saslBytes; saslBytes = new byte[buffer.remaining()]; int id = buffer.getInt(); log.tracef("Received authentication response, id %08x", id); ConnectionHandlerContext c = handler.getConnectionContext(); final byte[] saslBytes; if (buffer.hasRemaining()) { int id = buffer.getInt(); log.tracef("Received authentication success, id %08x", id); ConnectionHandlerContext c = handler.getConnectionContext(); final byte[] saslBytes; if (buffer.hasRemaining()) { int id = buffer.getInt();
final RegisteredService registeredService = handler.getConnectionContext().getRegisteredService(serviceType); if (registeredService == null) { refuseService(channelId, "Unknown service name");