Code example for CharArrayWriter

Methods: append

0
            } else { 
                Session session = request.getSessionInternal(false);
                if (session == null) {
                    buf.append('-');
                } else { 
                    buf.append(session.getIdInternal());
                } 
            } 
        } 
    } 
 
    /** 
     * write requested URL path - %U 
     */ 
    protected static class RequestURIElement implements AccessLogElement { 
        @Override 
        public void addElement(CharArrayWriter buf, Date date, Request request,
                Response response, long time) {
            if (request != null) {
                buf.append(request.getRequestURI());
            } else {