ServletInputStream inputStream = request.getInputStream(); if (inputStream != null) { inputStream.mark(Integer.MAX_VALUE);
@Override public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ServletInputStream inputStream = request.getInputStream(); if (inputStream != null) { inputStream.mark(Integer.MAX_VALUE); } try { String pathInfo = request.getPathInfo(); if (pathInfo.startsWith(PATH_INGEST)) { stats.incIngestRequestCount(); add(request, pathInfo, response); } else if (pathInfo.startsWith(PATH_BATCH_INGEST)) { stats.incBatchIngestRequestCount(); batchAdd(request, pathInfo, response); } else { stats.incInvalidRequestCount(); response.setStatus(HttpServletResponse.SC_NOT_FOUND); } } catch (Throwable ex) { String requestTxt = readRequest(request); stats.setLastFailedRequest(readRequestHead(request) + requestTxt); stats.registerError(ex); response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } }
@Override public synchronized void mark(int readlimit) { in.mark(readlimit); }
@Override public void mark(int readlimit) { originalRequest.mark(readlimit); }
public void mark(final int readlimit) { delegate.mark(readlimit); }
@Override public void mark(int readlimit) { synchronized(lock) { in.mark(readlimit); } }
public void mark(int readlimit) { wrappedStream.mark(readlimit); }
public void mark(int readlimit) { wrappedStream.mark(readlimit); }
public void mark(int readlimit) { getStream().mark(readlimit); } public boolean markSupported() {