Examples of AdditionalDocBase


Examples of org.apache.tomee.catalina.naming.resources.AdditionalDocBase

                    if (!new File(trim).isDirectory()) {
                        logger.warning("Can't add docBase which are not directory: " + trim);
                        continue;
                    }

                    final FileDirContext altDirContext = new AdditionalDocBase();
                    altDirContext.setDocBase(trim);
                    altDirContext.setAllowLinking(standardContext.isAllowLinking());
                    altDirContext.setAliases(standardContext.getAliases());
                    altDirContext.setCacheTTL(standardContext.getCacheTTL());
                    altDirContext.setCacheMaxSize(standardContext.getCacheMaxSize());
                    altDirContext.setCacheObjectMaxSize(standardContext.getCacheObjectMaxSize());
                    if (cache != null) {
                        altDirContext.setCached(Boolean.parseBoolean(cache));
                    } else {
                        altDirContext.setCached(standardContext.isCachingAllowed());
                    }

                    standardContext.addResourcesDirContext(altDirContext);
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.