Package org.apache.geronimo.xbeans.javaee

Examples of org.apache.geronimo.xbeans.javaee.ErrorPageType


    private void configureErrorPages(WebAppType webApp, GBeanData webModuleData) {
        ErrorPageType[] errorPageArray = webApp.getErrorPageArray();
        Map errorPageMap = new HashMap();
        for (int i = 0; i < errorPageArray.length; i++) {
            ErrorPageType errorPageType = errorPageArray[i];
            if (errorPageType.isSetErrorCode()) {
                errorPageMap.put(errorPageType.getErrorCode().getStringValue(), errorPageType.getLocation().getStringValue());
            } else {
                errorPageMap.put(errorPageType.getExceptionType().getStringValue(), errorPageType.getLocation().getStringValue());
            }
        }
        webModuleData.setAttribute("errorPages", errorPageMap);
    }
View Full Code Here


    private void configureErrorPages(WebAppType webApp, GBeanData webModuleData) {
        ErrorPageType[] errorPageArray = webApp.getErrorPageArray();
        Map errorPageMap = new HashMap();
        for (int i = 0; i < errorPageArray.length; i++) {
            ErrorPageType errorPageType = errorPageArray[i];
            if (errorPageType.isSetErrorCode()) {
                errorPageMap.put(errorPageType.getErrorCode().getStringValue(), errorPageType.getLocation().getStringValue());
            } else {
                errorPageMap.put(errorPageType.getExceptionType().getStringValue(), errorPageType.getLocation().getStringValue());
            }
        }
        webModuleData.setAttribute("errorPages", errorPageMap);
    }
View Full Code Here

    private void configureErrorPages(WebAppType webApp, GBeanData webModuleData) {
        ErrorPageType[] errorPageArray = webApp.getErrorPageArray();
        Map errorPageMap = new HashMap();
        for (int i = 0; i < errorPageArray.length; i++) {
            ErrorPageType errorPageType = errorPageArray[i];
            if (errorPageType.isSetErrorCode()) {
                errorPageMap.put(errorPageType.getErrorCode().getStringValue(), errorPageType.getLocation().getStringValue());
            } else {
                errorPageMap.put(errorPageType.getExceptionType().getStringValue(), errorPageType.getLocation().getStringValue());
            }
        }
        webModuleData.setAttribute("errorPages", errorPageMap);
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.xbeans.javaee.ErrorPageType

Copyright © 2018 www.massapicom. 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.