@Override protected SessionInputBuffer createSessionInputBuffer( final Socket socket, int buffersize, final HttpParams params) throws IOException { SessionInputBuffer inbuffer = super.createSessionInputBuffer( socket, buffersize, params); if (wireLog.isDebugEnabled()) { inbuffer = new LoggingSessionInputBuffer(inbuffer, new Wire(wireLog)); } return inbuffer; }
public void input(InputStream instream) throws IOException { if (instream == null) { throw new IllegalArgumentException("Input may not be null"); } wire("<< ", instream); }
public void output(int b) throws IOException { output(new byte[] {(byte) b}); }
public void input(int b) throws IOException { input(new byte[] {(byte) b}); }
@Override protected InputStream getSocketInputStream(final Socket socket) throws IOException { InputStream in = super.getSocketInputStream(socket); if (this.wire.enabled()) { in = new LoggingInputStream(in, this.wire); } return in; }
public void output(InputStream outstream) throws IOException { if (outstream == null) { throw new IllegalArgumentException("Output may not be null"); } wire(">> ", outstream); }
public void output(final String s) throws IOException { if (s == null) { throw new IllegalArgumentException("Output may not be null"); } output(s.getBytes()); }
public void input(final String s) throws IOException { if (s == null) { throw new IllegalArgumentException("Input may not be null"); } input(s.getBytes()); } }
@Override protected OutputStream getSocketOutputStream(final Socket socket) throws IOException { OutputStream out = super.getSocketOutputStream(socket); if (this.wire.enabled()) { out = new LoggingOutputStream(out, this.wire); } return out; }
public void output(byte[] b, int off, int len) throws IOException { if (b == null) { throw new IllegalArgumentException("Output may not be null"); } wire(">> ", new ByteArrayInputStream(b, off, len)); }
public void input(final String s) throws IOException { if (s == null) { throw new IllegalArgumentException("Input may not be null"); } input(s.getBytes()); } }
@Override protected SessionOutputBuffer createSessionOutputBuffer( final Socket socket, int buffersize, final HttpParams params) throws IOException { SessionOutputBuffer outbuffer = super.createSessionOutputBuffer( socket, buffersize, params); if (wireLog.isDebugEnabled()) { outbuffer = new LoggingSessionOutputBuffer(outbuffer, new Wire(wireLog)); } return outbuffer; }
public void input(byte[] b) throws IOException { if (b == null) { throw new IllegalArgumentException("Input may not be null"); } wire("<< ", new ByteArrayInputStream(b)); }