public int fillBuffer(final ReadableByteChannel channel) throws IOException { return this.parser.fillBuffer(channel); }
@Override public void resetInput() { this.request = null; this.contentDecoder = null; this.requestParser.reset(); }
int bytesRead; do { bytesRead = this.responseParser.fillBuffer(this.session.channel()); if (bytesRead > 0) { this.inTransportMetrics.incrementBytesTransferred(bytesRead); this.response = this.responseParser.parse(); } while (bytesRead > 0 && this.response == null); if (this.response != null) {
public HttpRequest parse() throws IOException, HttpException { HttpRequest message = this.parser.parse(); if (message != null && headerlog.isDebugEnabled()) { String skipLogging = System.getProperty("skip.logging"); if ("true".equals(skipLogging)) { String uri = message.getRequestLine().toString(); Pattern pattern = LoggingUtils.getSkipLoggingMatcher(); if (pattern != null && !pattern.matcher(uri).find()) { printLog(message); } } else { printLog(message); } } if (message != null && accesslog.isInfoEnabled()) { HttpRequest request = (HttpRequest) message; HttpParams params = request.getParams(); final SocketAddress remoteAddress = session.getRemoteAddress(); if (remoteAddress instanceof InetSocketAddress) { final InetSocketAddress remote = (( InetSocketAddress) remoteAddress); params.setParameter("http.remote.addr", remote.getAddress().getHostAddress()); } AccessHandler.getAccess().addAccessToQueue(message); } return message; }
int bytesRead; do { bytesRead = this.responseParser.fillBuffer(this.session.channel()); if (bytesRead > 0) { this.inTransportMetrics.incrementBytesTransferred(bytesRead); this.response = this.responseParser.parse(); } while (bytesRead > 0 && this.response == null); if (this.response != null) {
public HttpResponse parse() throws IOException, HttpException { HttpResponse message = this.parser.parse(); if (message != null && headerlog.isDebugEnabled()) { String skipLogging = System.getProperty("skip.logging"); Object request = session.getAttribute("http.request"); if ("true".equals(skipLogging) && request != null) { String uri = ((HttpRequest) request).getRequestLine().toString(); Pattern pattern = LoggingUtils.getSkipLoggingMatcher(); if (pattern != null && !pattern.matcher(uri).find()) { printLog(message); } } else { printLog(message); } } if (message != null && accesslog.isInfoEnabled()) { HttpResponse response = (HttpResponse) message; HttpParams params = response.getParams(); final SocketAddress remoteAddress = session.getRemoteAddress(); if (remoteAddress instanceof InetSocketAddress) { final InetSocketAddress remote = (( InetSocketAddress) remoteAddress); params.setParameter("http.remote.addr", remote.getAddress().getHostAddress()); } AccessHandler.getAccess().addAccessToQueue(message); } return message; }
int bytesRead; do { bytesRead = this.responseParser.fillBuffer(this.session.channel()); if (bytesRead > 0) { this.inTransportMetrics.incrementBytesTransferred(bytesRead); this.response = this.responseParser.parse(); } while (bytesRead > 0 && this.response == null); if (this.response != null) {
@Override public void resetInput() { this.response = null; this.contentDecoder = null; this.responseParser.reset(); }
public int fillBuffer(final ReadableByteChannel channel) throws IOException { return this.parser.fillBuffer(channel); }
int bytesRead; do { bytesRead = this.requestParser.fillBuffer(this.session.channel()); if (bytesRead > 0) { this.inTransportMetrics.incrementBytesTransferred(bytesRead); this.request = this.requestParser.parse(); } while (bytesRead > 0 && this.request == null); if (this.request != null) {
@Override public void resetInput() { this.request = null; this.contentDecoder = null; this.requestParser.reset(); }
int bytesRead; do { bytesRead = this.requestParser.fillBuffer(this.session.channel()); if (bytesRead > 0) { this.inTransportMetrics.incrementBytesTransferred(bytesRead); this.request = this.requestParser.parse(); } while (bytesRead > 0 && this.request == null); if (this.request != null) {
@Override public void resetInput() { this.response = null; this.contentDecoder = null; this.responseParser.reset(); }
int bytesRead; do { bytesRead = this.requestParser.fillBuffer(this.session.channel()); if (bytesRead > 0) { this.inTransportMetrics.incrementBytesTransferred(bytesRead); this.request = this.requestParser.parse(); } while (bytesRead > 0 && this.request == null); if (this.request != null) {
public void reset() { this.parser.reset(); }
public void reset() { this.parser.reset(); }