@Override protected Transport createTransport(Socket socket, WireFormat format) throws IOException { StompNIOSSLTransport transport = new StompNIOSSLTransport(format, socket); if (context != null) { transport.setSslContext(context); } transport.setNeedClientAuth(isNeedClientAuth()); transport.setWantClientAuth(isWantClientAuth()); return transport; } };
@Override public TcpTransport createTransport(WireFormat wireFormat, Socket socket, SSLEngine engine, InitBuffer initBuffer, ByteBuffer inputBuffer) throws IOException { return new StompNIOSSLTransport(wireFormat, socket, engine, initBuffer, inputBuffer); }
@Override public void doConsume(Object command) { StompFrame frame = (StompFrame) command; if (cachedPeerCerts == null) { cachedPeerCerts = getPeerCertificates(); } frame.setTransportContext(cachedPeerCerts); super.doConsume(command); }
@Override protected void doInit() throws Exception { if (initBuffer != null) { nextFrameSize = -1; receiveCounter += initBuffer.readSize; initBuffer.buffer.flip(); processCommand(initBuffer.buffer); } super.doInit(); } }
@Override protected void initializeStreams() throws IOException { codec = new StompCodec(this); super.initializeStreams(); if (inputBuffer.position() != 0 && inputBuffer.hasRemaining()) { serviceRead(); } }
@Override public TcpTransport createTransport(WireFormat wireFormat, Socket socket, SSLEngine engine, InitBuffer initBuffer, ByteBuffer inputBuffer) throws IOException { return new StompNIOSSLTransport(wireFormat, socket, engine, initBuffer, inputBuffer); }
@Override public void doConsume(Object command) { StompFrame frame = (StompFrame) command; if (cachedPeerCerts == null) { cachedPeerCerts = getPeerCertificates(); } frame.setTransportContext(cachedPeerCerts); super.doConsume(command); }
@Override protected void doInit() throws Exception { if (initBuffer != null) { nextFrameSize = -1; receiveCounter += initBuffer.readSize; initBuffer.buffer.flip(); processCommand(initBuffer.buffer); } super.doInit(); } }
@Override protected void initializeStreams() throws IOException { codec = new StompCodec(this); super.initializeStreams(); if (inputBuffer.position() != 0 && inputBuffer.hasRemaining()) { serviceRead(); } }
@Override protected Transport createTransport(Socket socket, WireFormat format) throws IOException { StompNIOSSLTransport transport = new StompNIOSSLTransport(format, socket); if (context != null) { transport.setSslContext(context); } transport.setNeedClientAuth(isNeedClientAuth()); transport.setWantClientAuth(isWantClientAuth()); return transport; } };
@Override protected TcpTransport createTcpTransport(WireFormat wf, SocketFactory socketFactory, URI location, URI localLocation) throws UnknownHostException, IOException { return new StompNIOSSLTransport(wf, socketFactory, location, localLocation); }
@Override public void doConsume(Object command) { StompFrame frame = (StompFrame) command; if (cachedPeerCerts == null) { cachedPeerCerts = getPeerCertificates(); } frame.setTransportContext(cachedPeerCerts); super.doConsume(command); }
@Override protected void doInit() throws Exception { if (initBuffer != null) { nextFrameSize = -1; receiveCounter += initBuffer.readSize; initBuffer.buffer.flip(); processCommand(initBuffer.buffer); } super.doInit(); } }
@Override protected void initializeStreams() throws IOException { codec = new StompCodec(this); super.initializeStreams(); if (inputBuffer.position() != 0 && inputBuffer.hasRemaining()) { serviceRead(); } }
@Override protected Transport createTransport(Socket socket, WireFormat format) throws IOException { StompNIOSSLTransport transport = new StompNIOSSLTransport(format, socket); if (context != null) { transport.setSslContext(context); } transport.setNeedClientAuth(isNeedClientAuth()); transport.setWantClientAuth(isWantClientAuth()); return transport; } };
@Override public TcpTransport createTransport(WireFormat wireFormat, Socket socket, SSLEngine engine, InitBuffer initBuffer, ByteBuffer inputBuffer) throws IOException { return new StompNIOSSLTransport(wireFormat, socket, engine, initBuffer, inputBuffer); }
@Override protected TcpTransport createTcpTransport(WireFormat wf, SocketFactory socketFactory, URI location, URI localLocation) throws UnknownHostException, IOException { return new StompNIOSSLTransport(wf, socketFactory, location, localLocation); }
@Override protected TcpTransport createTcpTransport(WireFormat wf, SocketFactory socketFactory, URI location, URI localLocation) throws UnknownHostException, IOException { return new StompNIOSSLTransport(wf, socketFactory, location, localLocation); }