/** * Configure a {@link MessageHeaderInitializer} to apply to the headers of all * messages created from decoded STOMP frames and other messages sent to the * client inbound channel. * <p>By default this property is not set. */ public void setHeaderInitializer(@Nullable MessageHeaderInitializer headerInitializer) { this.headerInitializer = headerInitializer; this.stompDecoder.setHeaderInitializer(headerInitializer); }
private ReactorNettyTcpClient<byte[]> initTcpClient() { StompDecoder decoder = new StompDecoder(); if (this.headerInitializer != null) { decoder.setHeaderInitializer(this.headerInitializer); } ReactorNettyCodec<byte[]> codec = new StompReactorNettyCodec(decoder); ReactorNettyTcpClient<byte[]> client = new ReactorNettyTcpClient<>(this.relayHost, this.relayPort, codec); client.setLogger(SimpLogging.forLog(client.getLogger())); return client; }
private ReactorNettyTcpClient<byte[]> initTcpClient() { StompDecoder decoder = new StompDecoder(); if (this.headerInitializer != null) { decoder.setHeaderInitializer(this.headerInitializer); } ReactorNettyCodec<byte[]> codec = new StompReactorNettyCodec(decoder); ReactorNettyTcpClient<byte[]> client = new ReactorNettyTcpClient<>(this.relayHost, this.relayPort, codec); client.setLogger(SimpLogging.forLog(client.getLogger())); return client; }
/** * Configure a {@link MessageHeaderInitializer} to apply to the headers of all * messages created from decoded STOMP frames and other messages sent to the * client inbound channel. * <p>By default this property is not set. */ public void setHeaderInitializer(@Nullable MessageHeaderInitializer headerInitializer) { this.headerInitializer = headerInitializer; this.stompDecoder.setHeaderInitializer(headerInitializer); }
/** * Configure a {@link MessageHeaderInitializer} to apply to the headers of all * messages created from decoded STOMP frames and other messages sent to the * client inbound channel. * <p>By default this property is not set. */ public void setHeaderInitializer(@Nullable MessageHeaderInitializer headerInitializer) { this.headerInitializer = headerInitializer; this.stompDecoder.setHeaderInitializer(headerInitializer); }
private ReactorNettyTcpClient<byte[]> initTcpClient() { StompDecoder decoder = new StompDecoder(); if (this.headerInitializer != null) { decoder.setHeaderInitializer(this.headerInitializer); } ReactorNettyCodec<byte[]> codec = new StompReactorNettyCodec(decoder); ReactorNettyTcpClient<byte[]> client = new ReactorNettyTcpClient<>(this.relayHost, this.relayPort, codec); client.setLogger(SimpLogging.forLog(client.getLogger())); return client; }
private ReactorNettyTcpClient<byte[]> initTcpClient() { StompDecoder decoder = new StompDecoder(); if (this.headerInitializer != null) { decoder.setHeaderInitializer(this.headerInitializer); } ReactorNettyCodec<byte[]> codec = new StompReactorNettyCodec(decoder); ReactorNettyTcpClient<byte[]> client = new ReactorNettyTcpClient<>(this.relayHost, this.relayPort, codec); client.setLogger(SimpLogging.forLog(client.getLogger())); return client; }