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

📄 distributesservicepropertyhandler.java

📁 intra_mart是日本NDD公司开发的著名企业应用解决方案中间件。集成了J2ee服务器
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
            XmlServicePropertyHandler handler = (XmlServicePropertyHandler) obj;
            ret = handler.getNextPagePath(application, service, key, locale);

        }

        return ret;
    }

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

        return getServiceControllerName(application, service, null);
    }

    /**
     * 僒乕價僗僐儞僩儘乕儔偺僋儔僗柤傪庢摼偟傑偡丅 奩摉偡傞僒乕價僗僐儞僩儘乕儔偑懚嵼偟側偄応崌丄null傪曉偟傑偡丅
     * 
     * @param application 傾僾儕働乕僔儑儞ID
     * @param service 僒乕價僗ID
     * @param locale 儘働乕儖
     * @return 僒乕價僗僐儞僩儘乕儔偺僋儔僗柤丄懚嵼偟側偄応崌偼null
     * @throws ServicePropertyException 僒乕價僗僐儞僩儘乕儔偺僋儔僗柤偺庢摼帪偵椺奜偑敪惗
     */
    public String getServiceControllerName(String application, String service,
            Locale locale) throws ServicePropertyException {

        String ret = new String();

        Object obj = getApplicationBundle(application);

        if (obj instanceof DefaultServicePropertyHandler) {

            DefaultServicePropertyHandler handler = (DefaultServicePropertyHandler) obj;
            ret = handler
                    .getServiceControllerName(application, service, locale);

        } else if (obj instanceof TextFileServicePropertyHandler) {

            TextFileServicePropertyHandler handler = (TextFileServicePropertyHandler) obj;
            ret = handler
                    .getServiceControllerName(application, service, locale);

        } else if (obj instanceof XmlServicePropertyHandler) {

            XmlServicePropertyHandler handler = (XmlServicePropertyHandler) obj;
            ret = handler
                    .getServiceControllerName(application, service, locale);

        }

        return ret;
    }

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

        return getServiceErrorPagePath(application, service, key, (Locale) null);
    }

    /**
     * 張棟椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅
     * 
     * @param application 傾僾儕働乕僔儑儞ID
     * @param service 僒乕價僗ID
     * @param key 慗堏愭偺僉乕
     * @param locale 儘働乕儖
     * @return 慗堏愭偺儁乕僕偺僷僗
     * @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
     */
    public String getServiceErrorPagePath(String application, String service,
            String key, Locale locale) throws ServicePropertyException {

        String ret = new String();

        Object obj = getApplicationBundle(application);

        if (obj instanceof DefaultServicePropertyHandler) {

            DefaultServicePropertyHandler handler = (DefaultServicePropertyHandler) obj;
            ret = handler.getServiceErrorPagePath(application, service, key,
                    locale);

        } else if (obj instanceof TextFileServicePropertyHandler) {

            TextFileServicePropertyHandler handler = (TextFileServicePropertyHandler) obj;
            ret = handler.getServiceErrorPagePath(application, service, key,
                    locale);

        } else if (obj instanceof XmlServicePropertyHandler) {

            XmlServicePropertyHandler handler = (XmlServicePropertyHandler) obj;
            ret = handler.getServiceErrorPagePath(application, service, key,
                    locale);

        }

        return ret;

    }

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

        return getServiceErrorPagePath(application, service, (Locale) null);
    }

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

        String ret = new String();

        Object obj = getApplicationBundle(application);

        if (obj instanceof DefaultServicePropertyHandler) {

            DefaultServicePropertyHandler handler = (DefaultServicePropertyHandler) obj;
            ret = handler.getServiceErrorPagePath(application, service, locale);

        } else if (obj instanceof TextFileServicePropertyHandler) {

            TextFileServicePropertyHandler handler = (TextFileServicePropertyHandler) obj;
            ret = handler.getServiceErrorPagePath(application, service, locale);

        } else if (obj instanceof XmlServicePropertyHandler) {

            XmlServicePropertyHandler handler = (XmlServicePropertyHandler) obj;
            ret = handler.getServiceErrorPagePath(application, service, locale);

        }

        return ret;
    }

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

        return getServiceErrorPagePath(application, (Locale) null);
    }

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

        String ret = new String();

        Object obj = getApplicationBundle(application);

        if (obj instanceof DefaultServicePropertyHandler) {

            DefaultServicePropertyHandler handler = (DefaultServicePropertyHandler) obj;
            ret = handler.getServiceErrorPagePath(application, locale);

        } else if (obj instanceof TextFileServicePropertyHandler) {

            TextFileServicePropertyHandler handler = (TextFileServicePropertyHandler) obj;
            ret = handler.getServiceErrorPagePath(application, locale);

        } else if (obj instanceof XmlServicePropertyHandler) {

            XmlServicePropertyHandler handler = (XmlServicePropertyHandler) obj;
            ret = handler.getServiceErrorPagePath(application, locale);

        }

        return ret;
    }

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

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

        return ResourceBundleServicePropertyHandlerUtil
                .getServiceErrorPagePath(getCommonBundle(locale));
    }

    /**
     * 僔僗僥儉椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
     * {@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 {

        return getSystemErrorPagePath(application, service, key, (Locale) null);
    }

    /**
     * 僔僗僥儉椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
     * {@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 ret = new String();

        Object obj = getApplicationBundle(application);

        if (obj instanceof DefaultServicePropertyHandler) {

⌨️ 快捷键说明

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