⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmlservicepropertyhandler.java

📁 intra_mart是日本NDD公司开发的著名企业应用解决方案中间件。集成了J2ee服务器
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
     * @return 慗堏愭偺儁乕僕偺僷僗
     * @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
     */
    public String getServiceErrorPagePath(Locale locale)
            throws ServicePropertyException {

        String result = null;

        CommonServiceModel commonService = getCommonServiceModel(locale);
        result = commonService.getServiceErrorPagePath();

        if (result == null) {

            String message = ServiceResourceMessage
                    .getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetServiceErrorPagePath");

            throw new ServicePropertyException(message);
        }
        return result;
    }

    /**
     * 僔僗僥儉椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
     * {@link #getSystemErrorPagePath(String, String)}偱庢摼偝傟傞儁乕僕傪曉偟傑偡丅 偙偺儊僜僢僪偼
     * {@link #getSystemErrorPagePath(String, String, String, Locale) getSystemErrorPagePath(application, service, key, (java.util.Locale)null)}
     * 傪屇傫偩偲偒偲摨偠寢壥偵側傝傑偡丅
     * 
     * @param application 傾僾儕働乕僔儑儞ID
     * @param service 僒乕價僗ID
     * @param key 慗堏愭偺僉乕
     * @return 慗堏愭偺儁乕僕偺僷僗
     * @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
     * @deprecated 偙偺儊僜僢僪偱偼側偔
     *             {@link #getSystemErrorPagePath(String, String, String, Locale)}
     *             傪巊梡偟偰偔偩偝偄丅
     */
    public String getSystemErrorPagePath(String application, String service,
            String key) throws ServicePropertyException {

        String result = null;
        ServiceConfigModel serviceConfig = getServiceConfigModel(application);

        if (serviceConfig != null) {
            result = serviceConfig.getSystemErrorPagePath(service, key);
        }
        if (result == null) {
            try {
                result = getSystemErrorPagePath(application, service);
            } catch (ServicePropertyException e) {
            }
        }
        if (result == null) {
            String idMessage = " : application = " + application
                    + " : service = " + service + " : key = " + key;
            String message = ServiceResourceMessage
                    .getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetServiceErrorPagePath");

            throw new ServicePropertyException(message + idMessage);
        }
        return result;
    }

    /**
     * 僔僗僥儉椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
     * {@link #getSystemErrorPagePath(String, String)}偱庢摼偝傟傞儁乕僕傪曉偟傑偡丅
     * 
     * @param application 傾僾儕働乕僔儑儞ID
     * @param service 僒乕價僗ID
     * @param key 慗堏愭偺僉乕
     * @param locale 儘働乕儖
     * @return 慗堏愭偺儁乕僕偺僷僗
     * @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
     */
    public String getSystemErrorPagePath(String application, String service,
            String key, Locale locale) throws ServicePropertyException {

        String result = null;

        ServiceConfigModel serviceConfig = getServiceConfigModel(application,
                locale);
        if (serviceConfig != null) {
            result = serviceConfig.getSystemErrorPagePath(service, key);
        }

        if (result == null) {
            try {
                result = getSystemErrorPagePath(application, service, locale);
            } catch (ServicePropertyException e) {

            }
        }
        if (result == null) {
            String idMessage = " : application = " + application
                    + " : service = " + service + " : key = " + key;
            String message = ServiceResourceMessage
                    .getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetServiceErrorPagePath");

            throw new ServicePropertyException(message + idMessage);
        }
        return result;

    }

    /**
     * 僔僗僥儉椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
     * {@link #getSystemErrorPagePath(String)}偱庢摼偝傟傞儁乕僕傪曉偟傑偡丅 偙偺儊僜僢僪偼
     * {@link #getSystemErrorPagePath(String, String, Locale) getSystemErrorPagePath(application, service, (java.util.Locale)null)}
     * 傪屇傫偩偲偒偲摨偠寢壥偵側傝傑偡丅
     * 
     * @param application 傾僾儕働乕僔儑儞ID
     * @param service 僒乕價僗ID
     * @return 慗堏愭偺儁乕僕偺僷僗
     * @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
     * @deprecated 偙偺儊僜僢僪偱偼側偔
     *             {@link #getSystemErrorPagePath(String, String, Locale)}
     *             傪巊梡偟偰偔偩偝偄丅
     */
    public String getSystemErrorPagePath(String application, String service)
            throws ServicePropertyException {

        String result = null;
        ServiceConfigModel serviceConfig = getServiceConfigModel(application);

        if (serviceConfig != null) {
            result = serviceConfig.getSystemErrorPagePath(service);
        }
        if (result == null) {
            try {
                result = getSystemErrorPagePath(application);
            } catch (ServicePropertyException e) {
            }
        }
        if (result == null) {
            String idMessage = " : application = " + application
                    + " : service = " + service;
            String message = ServiceResourceMessage
                    .getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetServiceErrorPagePath");

            throw new ServicePropertyException(message + idMessage);
        }
        return result;
    }

    /**
     * 僔僗僥儉椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
     * {@link #getSystemErrorPagePath(String)}偱庢摼偝傟傞儁乕僕傪曉偟傑偡丅
     * 
     * @param application 傾僾儕働乕僔儑儞ID
     * @param service 僒乕價僗ID
     * @param locale 儘働乕儖
     * @return 慗堏愭偺儁乕僕偺僷僗
     * @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
     */
    public String getSystemErrorPagePath(String application, String service,
            Locale locale) throws ServicePropertyException {

        String result = null;
        ServiceConfigModel serviceConfig = getServiceConfigModel(application,
                locale);
        if (serviceConfig != null) {
            result = serviceConfig.getSystemErrorPagePath(service);
        }

        if (result == null) {
            try {
                result = getSystemErrorPagePath(application, locale);
            } catch (ServicePropertyException e) {
            }
        }

        if (result == null) {
            String idMessage = " : application = " + application
                    + " : service = " + service;
            String message = ServiceResourceMessage
                    .getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetServiceErrorPagePath");

            throw new ServicePropertyException(message + idMessage);
        }
        return result;
    }

    /**
     * 僔僗僥儉椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
     * {@link #getSystemErrorPagePath()}偱庢摼偝傟傞儁乕僕傪曉偟傑偡丅 偙偺儊僜僢僪偼
     * {@link #getSystemErrorPagePath(String, Locale) getSystemErrorPagePath(application, (java.util.Locale)null)}
     * 傪屇傫偩偲偒偲摨偠寢壥偵側傝傑偡丅
     * 
     * @param application 傾僾儕働乕僔儑儞ID
     * @return 慗堏愭偺儁乕僕偺僷僗
     * @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
     * @deprecated 偙偺儊僜僢僪偱偼側偔 {@link #getSystemErrorPagePath(String, Locale)}
     *             傪巊梡偟偰偔偩偝偄丅
     */
    public String getSystemErrorPagePath(String application)
            throws ServicePropertyException {

        String result = null;
        ServiceConfigModel serviceConfig = getServiceConfigModel(application);

        if (serviceConfig != null) {
            result = serviceConfig.getSystemErrorPagePath();
        }
        if (result == null) {
            try {
                result = getSystemErrorPagePath();
            } catch (ServicePropertyException e) {

            }
        }
        if (result == null) {
            String idMessage = " : application = " + application;
            String message = ServiceResourceMessage
                    .getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetServiceErrorPagePath");

            throw new ServicePropertyException(message + idMessage);
        }
        return result;
    }

    /**
     * 僔僗僥儉椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
     * {@link #getSystemErrorPagePath()}偱庢摼偝傟傞儁乕僕傪曉偟傑偡丅
     * 
     * @param application 傾僾儕働乕僔儑儞ID
     * @param locale 儘働乕儖
     * @return 慗堏愭偺儁乕僕偺僷僗
     * @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
     */
    public String getSystemErrorPagePath(String application, Locale locale)
            throws ServicePropertyException {

        String result = null;

        ServiceConfigModel serviceConfig = getServiceConfigModel(application,
                locale);
        if (serviceConfig != null) {
            result = serviceConfig.getSystemErrorPagePath();
        }

        if (result == null) {
            try {
                result = getSystemErrorPagePath(locale);
            } catch (ServicePropertyException e) {

            }
        }

        if (result == null) {
            String idMessage = " : application = " + application;
            String message = ServiceResourceMessage
                    .getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetServiceErrorPagePath");

            throw new ServicePropertyException(message + idMessage);
        }
        return result;
    }

    /**
     * 僔僗僥儉椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 偙偺儊僜僢僪偼
     * {@link #getSystemErrorPagePath(Locale) getSystemErrorPagePath((java.util.Locale)null)}
     * 傪屇傫偩偲偒偲摨偠寢壥偵側傝傑偡丅
     * 
     * @return 慗堏愭偺儁乕僕偺僷僗
     * @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
     * @deprecated 偙偺儊僜僢僪偱偼側偔 {@link #getSystemErrorPagePath(Locale)}傪巊梡偟偰偔偩偝偄丅
     */
    public String getSystemErrorPagePath() throws ServicePropertyException {
        String result = null;

        CommonServiceModel commonService = getCommonServiceModel();
        result = commonService.getSystemErrorPagePath();
        if (result == null) {

            String message = ServiceResourceMessage
                    .getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetSystemErrorPagePath");

            throw new ServicePropertyException(message);
        }
        return result;
    }

    /**
     * 僔僗僥儉椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅
     * 
     * @param locale 儘働乕儖
     * @return 慗堏愭偺儁乕僕偺僷僗
     * @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
     */
    public String getSystemErrorPagePath(Locale locale)
            throws ServicePropertyException {
        String result = null;

        CommonServiceModel commonService = getCommonServiceModel(locale);
        if (commonService != null) {
            result = commonService.getSystemErrorPagePath();
        }

        if (result == null) {

            String message = ServiceResourceMessage
                    .getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetSystemErrorPagePath");

            throw new ServicePropertyException(message);
        }
        return result;
    }

    /**
     * 僩儔儞僕僔儑儞偺僋儔僗柤傪庢摼偟傑偡丅 巜掕偝傟偨傾僾儕働乕僔儑儞ID偲僒乕價僗ID偵懳墳偡傞僩儔儞僕僔儑儞柤傪庢摼偟傑偡丅
     * 摿偵愝掕偝傟偰偄側偄応崌丄null偑曉傝傑偡丅 偙偺儊僜僢僪偼
     * {@link #getTransitionName(String, String, Locale) getTransitionName(application, service, (java.util.Locale)null)}
     * 傪屇傫偩偲偒偲摨偠寢壥偵側傝傑偡丅
     * 
     * @param application 傾僾儕働乕僔儑儞ID
     * @param service 僒乕價僗ID
     * @return 僩儔儞僕僔儑儞偺僋儔僗柤丄愝掕偝傟偰偄側偄

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -