private void printInfoContexts(StringBuilder buf, String uri, boolean reduceDisplay, boolean allowCmd, long host, Node.VHostMapping vhost, Node node) {
        if (!reduceDisplay)
            buf.append("<h3>Contexts:</h3>");
        buf.append("<pre>");
        for (Context context : node.getContexts()) {
            if (context.getVhost() == vhost) {
                String status = "REMOVED";
                switch (context.getStatus()) {
                    case ENABLED:
                        status = "ENABLED";
                        break;
                    case DISABLED:
                        status = "DISABLED";
                        break;
                    case STOPPED:
                        status = "STOPPED";
                        break;
                }
                buf.append(context.getPath() + " , Status: " + status + " Request: " + context.getActiveRequests() + " ");
                if (allowCmd) {
                    contextCommandString(buf, uri, context.getStatus(), context.getPath(), vhost.getAliases(), node.getJvmRoute());
                }
                buf.append("\n");
            }
        }
        buf.append("</pre>");
    }
private void printInfoContexts ( StringBuilder buf , String uri , boolean reduceDisplay , boolean allowCmd , long host , Node . VHostMapping vhost , Node node ) { if ( ! reduceDisplay ) buf . append ( "<h3>Contexts:</h3>" ) ; buf . append ( "<pre>" ) ; for ( Context context : node . getContexts ( ) ) { if ( context . getVhost ( ) == vhost ) { String status = "REMOVED" ; switch ( context . getStatus ( ) ) { case ENABLED : status = "ENABLED" ; break ; case DISABLED : status = "DISABLED" ; break ; case STOPPED : status = "STOPPED" ; break ; } buf . append ( context . getPath ( ) + " , Status: " + status + " Request: " + context . getActiveRequests ( ) + " " ) ; if ( allowCmd ) { contextCommandString ( buf , uri , context . getStatus ( ) , context . getPath ( ) , vhost . getAliases ( ) , node . getJvmRoute ( ) ) ; } buf . append ( "\n" ) ; } } buf . append ( "</pre>" ) ; }
/* based on manager_info_contexts