void setPredefinedContextRoots(Set<String> ctxRoots) {
        URIMatcher newMatcher = null;
        if (ctxRoots != null && !ctxRoots.isEmpty()) {
            newMatcher = new URIMatcher(true, true);
            for (String ctxRoot : ctxRoots) {
                try {
                    newMatcher.put(ctxRoot, ctxRoot);
                } catch (Exception e) {
                }
            }
        }

        URIMatcher oldMatcher = predefinedMatcher;
        predefinedMatcher = newMatcher;

        // decide if we need to register or deregister
        if (oldMatcher == null && newMatcher != null) {
            dhostConfig.addContextRoot(null, this);
        } else if (oldMatcher != null && newMatcher == null) {
            dhostConfig.removeContextRoot(null, this);
        }
    }
void setPredefinedContextRoots ( Set < String > ctxRoots ) { URIMatcher newMatcher = null ; if ( ctxRoots != null && ! ctxRoots . isEmpty ( ) ) { newMatcher = new URIMatcher ( true , true ) ; for ( String ctxRoot : ctxRoots ) { try { newMatcher . put ( ctxRoot , ctxRoot ) ; } catch ( Exception e ) { } } } URIMatcher oldMatcher = predefinedMatcher ; predefinedMatcher = newMatcher ; if ( oldMatcher == null && newMatcher != null ) { dhostConfig . addContextRoot ( null , this ) ; } else if ( oldMatcher != null && newMatcher == null ) { dhostConfig . removeContextRoot ( null , this ) ; } }
@param predefinedCtxRoots