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

📄 xmlservicepropertyhandler.java

📁 intra_mart是日本NDD公司开发的著名企业应用解决方案中间件。集成了J2ee服务器
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
                    .getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetInputErrorPagePath");

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

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

        String result = null;

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

        if (result == null) {
            try {
                result = getInputErrorPagePath(application, locale);
            } catch (ServicePropertyException e) {
            }
        }
        if (result == null) {
            String idMessage = " : application = " + application
                    + " : service = " + service;
            String message = ServiceResourceMessage
                    .getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetInputErrorPagePath");

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

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

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

        if (serviceConfig != null) {

            result = serviceConfig.getInputErrorPagePath();
        }

        if (result == null) {
            try {
                result = getInputErrorPagePath();
            } catch (ServicePropertyException e) {
            }
        }
        if (result == null) {
            String idMessage = " : application = " + application;

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

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

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

        String result = null;

        ServiceConfigModel serviceConfig = getServiceConfigModel(application,
                locale);
        result = serviceConfig.getInputErrorPagePath();

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

            }
        }

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

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

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

        CommonServiceModel commonService = getCommonServiceModel();
        String result = null;
        if (commonService != null) {
            result = commonService.getInputErrorPagePath();
        }

        if (result == null) {

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

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

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

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

        if (result == null) {
            String message = ServiceResourceMessage
                    .getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetInputErrorPagePath");
            throw new ServicePropertyException(message);
        }
        return result;

    }

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

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

        if (serviceConfig != null) {
            result = serviceConfig.getNextPagePath(service);
        }

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

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

    /**
     * 慗堏愭偺儁乕僕偺僷僗傪庢摼偟傑偡丅 僒乕價僗偐傜慗堏愭偑堦堄偵寛傑傞応崌偵偙偺儊僜僢僪傪巊梡偟傑偡丅
     * 
     * @param application 傾僾儕働乕僔儑儞ID
     * @param service 僒乕價僗ID
     * @param locale 儘働乕儖
     * @return 慗堏愭偺儁乕僕偺僷僗
     * @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
     */
    public String getNextPagePath(String application, String service,
            Locale locale) throws ServicePropertyException {

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

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

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

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

        String result = null;

        ServiceConfigModel serviceConfig = getServiceConfigModel(application);
        if (serviceConfig != null) {
            result = serviceConfig.getNextPagePath(service, key);
        }
        if (result == null) {
            try {
                result = getNextPagePath(application, service);
            } catch (ServicePropertyException e) {

            }
        }

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

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

    /**
     * 慗堏愭偺儁乕僕偺僷僗傪庢摼偟傑偡丅 僒乕價僗偐傜慗堏愭偑堦堄偵寛傑傜側偄応崌偵偙偺儊僜僢僪傪巊梡偟傑偡丅 <CODE>key <CODE>偑
     * <CODE>null <CODE>偺応崌丄 {@link #getNextPagePath(String, String)}
     * 偲摨偠摦嶌偵側傝傑偡丅
     * 
     * @param application 傾僾儕働乕僔儑儞ID
     * @param service 僒乕價僗ID
     * @param key 慗堏愭偺僉乕
     * @param locale 儘働乕儖
     * @return 慗堏愭偺儁乕僕偺僷僗
     * @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
     */
    public String getNextPagePath(String application, String service,
            String key, Locale locale) throws ServicePropertyException {

        String result = null;

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

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

            }
        }

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

⌨️ 快捷键说明

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