public static byte getByte(Buffer _buffer) { return _buffer.get(); }
public static Buffer getHeaderName(Buffer _buffer, View tok) { int len=((_buffer.peek()&0xFF)<<8)|(_buffer.peek(_buffer.getIndex()+1)&0xFF); if ((0xFF00&len)==0xA000) { _buffer.skip(1); return Ajp13RequestHeaders.CACHE.get(_buffer.get()); } int start=_buffer.getIndex(); tok.update(start+2,start+len+2); _buffer.skip(len+3); return tok; }
public static Buffer get(Buffer buffer, int length) { return buffer.get(length); }
public static boolean getBool(Buffer _buffer) { return _buffer.get()>0; }
_eol=_buffer.get();
public static Buffer getMethod(Buffer _buffer) { return Ajp13PacketMethods.CACHE.get(_buffer.get()); }
_eol=_buffer.get();
@Override public int read(byte[] b, int off, int len) throws IOException { int l=-1; Buffer content=_parser.blockForContent(_connection.getMaxIdleTime()); if (content!=null) l= content.get(b, off, len); else if (_connection.isEarlyEOF()) throw new EofException("early EOF"); return l; }
@Override public int read(byte[] b, int off, int len) throws IOException { int l=-1; Buffer content=_parser.blockForContent(_connection.getMaxIdleTime()); if (content!=null) l= content.get(b, off, len); else if (_connection.isEarlyEOF()) throw new EofException("early EOF"); return l; }
_eol=_buffer.get();
@Override public int read(byte[] b, int off, int len) throws IOException { int l=-1; Buffer content=_parser.blockForContent(_connection.getMaxIdleTime()); if (content!=null) l= content.get(b, off, len); else if (_connection.isEarlyEOF()) throw new EofException("early EOF"); return l; }
_eol=_buffer.get();
@Override public int read(byte[] b, int off, int len) throws IOException { int l=-1; Buffer content=_parser.blockForContent(_connection.getMaxIdleTime()); if (content!=null) l= content.get(b, off, len); else if (_connection.isEarlyEOF()) throw new EofException("early EOF"); return l; }
_eol=_buffer.get();
@Override public int read(byte[] b, int off, int len) throws IOException { int l=-1; Buffer content=_parser.blockForContent(_connection.getMaxIdleTime()); if (content!=null) l= content.get(b, off, len); else if (_connection.isEarlyEOF()) throw new EofException("early EOF"); return l; }