/** * Pre process the request by decoding the request line and the header. * @param input the InputStream to read bytes * @param output the OutputStream to write bytes */ public void preProcess(InputStream input, OutputStream output) throws Exception { // Make sure this object has been initialized. if ( !started ){ initialize(); } // Setting up the I/O inputBuffer.setInputStream(input); if ( key != null ) { SocketChannelOutputBuffer channelOutputBuffer = ((SocketChannelOutputBuffer)outputBuffer); channelOutputBuffer.setChannel((SocketChannel)key.channel()); } configPreProcess(); }
/** * Pre process the request by decoding the request line and the header. * @param input the InputStream to read bytes * @param output the OutputStream to write bytes */ @Override public void preProcess(InputStream input, OutputStream output) throws Exception { // Make sure this object has been initialized. if ( !started ){ initialize(); } // Setting up the I/O inputBuffer.setInputStream(input); outputBuffer.setOutputStream(output); configPreProcess(); }
inputBuffer.setInputStream(socket.getInputStream()); outputBuffer.setOutputStream(socket.getOutputStream());
inputBuffer.setInputStream(socket.getInputStream()); outputBuffer.setOutputStream(socket.getOutputStream());
inputBuffer.setInputStream(socket.getInputStream()); outputBuffer.setOutputStream(socket.getOutputStream());
inputBuffer.setInputStream(socket.getSocket().getInputStream()); outputBuffer.setOutputStream(socket.getSocket().getOutputStream());