private long getPositionFromCookie()

in src/main/java/org/apache/sling/tail/impl/LogTailerWebConsolePlugin.java [444:456]


    private long getPositionFromCookie(HttpServletRequest request) {
        try {
            for(Cookie cookie : request.getCookies()) {
                if(cookie.getName().equals(POSITION_COOKIE)) {
                    return Long.parseLong(cookie.getValue());
                }
            }
        }
        catch (Exception e) {
            log.debug("Position specified is invalid, Tailing from beginning of the file.", e);
        }
        return -1;
    }