@Override public void init(SocketWrapper<NioChannel> socketWrapper, AbstractEndpoint<NioChannel> endpoint) throws IOException { socket = socketWrapper.getSocket(); pool = ((NioEndpoint)endpoint).getSelectorPool(); }
@Override public void init(SocketWrapper<NioChannel> socketWrapper, AbstractEndpoint endpoint) throws IOException { socket = socketWrapper.getSocket(); pool = ((NioEndpoint)endpoint).getSelectorPool(); }
@Override public void init(SocketWrapper<NioChannel> socketWrapper, AbstractEndpoint endpoint) throws IOException { socket = socketWrapper.getSocket(); pool = ((NioEndpoint)endpoint).getSelectorPool(); }
public NioSocketWrapper(NioChannel channel, NioEndpoint endpoint) { super(channel, endpoint); pool = endpoint.getSelectorPool(); socketBufferHandler = channel.getBufHandler(); }
public AjpNioProcessor(int packetSize, NioEndpoint endpoint) { super(packetSize, endpoint); response.setOutputBuffer(new SocketOutputBuffer()); pool = endpoint.getSelectorPool(); }
public AjpNioProcessor(int packetSize, NioEndpoint endpoint) { super(packetSize, endpoint); response.setOutputBuffer(new SocketOutputBuffer()); pool = endpoint.getSelectorPool(); }
public AjpNioProcessor(int packetSize, NioEndpoint endpoint) { super(packetSize, endpoint); response.setOutputBuffer(new SocketOutputBuffer()); pool = endpoint.getSelectorPool(); }
@Override protected void init(SocketWrapper<NioChannel> socketWrapper, AbstractEndpoint endpoint) throws IOException { socket = socketWrapper.getSocket(); socketReadBufferSize = socket.getBufHandler().getReadBuffer().capacity(); int bufLength = headerBufferSize + socketReadBufferSize; if (buf == null || buf.length < bufLength) { buf = new byte[bufLength]; } pool = ((NioEndpoint)endpoint).getSelectorPool(); }
@Override protected void init(SocketWrapper<NioChannel> socketWrapper, AbstractEndpoint endpoint) throws IOException { socket = socketWrapper.getSocket(); socketReadBufferSize = socket.getBufHandler().getReadBuffer().capacity(); int bufLength = skipBlankLinesSize + headerBufferSize + socketReadBufferSize; if (buf == null || buf.length < bufLength) { buf = new byte[bufLength]; } pool = ((NioEndpoint)endpoint).getSelectorPool(); }
@Override protected Processor<NioChannel> createUpgradeProcessor( SocketWrapper<NioChannel> socket, HttpUpgradeHandler httpUpgradeProcessor) throws IOException { return new NioProcessor(socket, httpUpgradeProcessor, ((Http11NioProtocol) getProtocol()).getEndpoint().getSelectorPool()); }
@Override protected Processor<NioChannel> createUpgradeProcessor( SocketWrapper<NioChannel> socket, UpgradeInbound inbound) throws IOException { return new UpgradeNioProcessor(socket, inbound, ((Http11NioProtocol) getProtocol()).getEndpoint().getSelectorPool()); } }
@Override protected void init(SocketWrapper<NioChannel> socketWrapper, AbstractEndpoint<NioChannel> endpoint) throws IOException { socket = socketWrapper.getSocket(); if (socket == null) { // Socket has been closed in another thread throw new IOException(sm.getString("iib.socketClosed")); } socketReadBufferSize = socket.getBufHandler().getReadBuffer().capacity(); int bufLength = headerBufferSize + socketReadBufferSize; if (buf == null || buf.length < bufLength) { buf = new byte[bufLength]; } pool = ((NioEndpoint)endpoint).getSelectorPool(); }
inputBuffer.setSocket(socket); outputBuffer.setSocket(socket); inputBuffer.setSelectorPool(endpoint.getSelectorPool()); outputBuffer.setSelectorPool(endpoint.getSelectorPool());
inputBuffer.setSocket(socket); outputBuffer.setSocket(socket); inputBuffer.setSelectorPool(endpoint.getSelectorPool()); outputBuffer.setSelectorPool(endpoint.getSelectorPool());