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

📄 defaultservicepropertyhandler.java

📁 intra_mart是日本NDD公司开发的著名企业应用解决方案中间件。集成了J2ee服务器
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
     *            僒乕價僗ID
     * @return 慗堏愭偺儁乕僕偺僷僗
     * @throws ServicePropertyException
     *             慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
     * @deprecated 偙偺儊僜僢僪偱偼側偔
     *             {@link #getSystemErrorPagePath(String, String, Locale)}
     *             傪巊梡偟偰偔偩偝偄丅
     */
    public String getSystemErrorPagePath(String application, String service)
            throws ServicePropertyException {

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

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

        return ResourceBundleServicePropertyHandlerUtil.getSystemErrorPagePath(
                getCommonBundle(locale),
                getResourceBundle(application, locale), application, service);
    }

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

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

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

        return ResourceBundleServicePropertyHandlerUtil.getSystemErrorPagePath(
                getCommonBundle(locale),
                getResourceBundle(application, locale), application);
    }

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

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

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

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

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

    /**
     * 僩儔儞僕僔儑儞偺僋儔僗柤傪庢摼偟傑偡丅 巜掕偝傟偨傾僾儕働乕僔儑儞ID偲僒乕價僗ID偵懳墳偡傞僩儔儞僕僔儑儞柤傪庢摼偟傑偡丅
     * 摿偵愝掕偝傟偰偄側偄応崌丄null偑曉傝傑偡丅
     * 
     * @param application
     *            傾僾儕働乕僔儑儞ID
     * @param service
     *            僒乕價僗ID
     * @param locale
     *            儘働乕儖
     * @return 僩儔儞僕僔儑儞偺僋儔僗柤丄愝掕偝傟偰偄側偄応崌偼null
     * @throws ServicePropertyException
     *             僩儔儞僕僔儑儞偺僋儔僗柤偺庢摼帪偵椺奜偑敪惗
     * @since 4.2
     */
    public String getTransitionName(String application, String service,
            Locale locale) throws ServicePropertyException {

        return ResourceBundleServicePropertyHandlerUtil.getTransitionName(
                getResourceBundle(application, locale), application, service);
    }

    /**
     * 僒乕價僗僒乕僽儗僢僩偺僷僗傪庢摼偟傑偡丅
     * 
     * @return 僒乕價僗僒乕僽儗僢僩偺僷僗
     * @throws ServicePropertyException
     *             僒乕價僗僒乕僽儗僢僩偺僷僗偺庢摼帪偵椺奜偑敪惗
     */
    public String getServiceServletPath() throws ServicePropertyException {
        return ResourceBundleServicePropertyHandlerUtil
                .getServiceServletPath(getCommonBundle(new Locale("", "")));
    }

    /**
     * 僐儞僥僉僗僩僷僗傪庢摼偟傑偡丅
     * 
     * @return 僐儞僥僉僗僩僷僗
     * @throws ServicePropertyException
     *             僐儞僥僉僗僩僷僗偺庢摼帪偵椺奜偑敪惗
     * @deprecated 偙偺儊僜僢僪偱偼側偔丄javax.servlet.http.HttpRequest偺getContextPath傪巊梡偡傞傛偆偵偟偰偔偩偝偄丅
     */
    public String getContextPath() throws ServicePropertyException {
        return ResourceBundleServicePropertyHandlerUtil
                .getContextPath(getCommonBundle(new Locale("", "")));
    }

    /**
     * 傾僾儕働乕僔儑儞ID偵奩摉偡傞僷儔儊乕僞柤傪庢摼偟傑偡丅 愝掕偝傟偰偄側偄応崌丄
     * {@link ServicePropertyHandler#DEFAULT_APPLICATION_PARAMETER}
     * 偱掕媊偝傟偰偄傞抣傪曉偟傑偡丅
     * 
     * @return 傾僾儕働乕僔儑儞ID偵奩摉偡傞僷儔儊乕僞柤
     * @throws ServicePropertyException
     *             傾僾儕働乕僔儑儞ID偵奩摉偡傞僷儔儊乕僞柤偺庢摼帪偵椺奜偑敪惗
     * @deprecated 偙偺幚憰偼攑巭偝傟傑偟偨丅
     */
    public String getApplicationParamName() throws ServicePropertyException {
        return ResourceBundleServicePropertyHandlerUtil
                .getApplicationParamName(getCommonBundle(new Locale("", "")));
    }

    /**
     * 僒乕價僗ID偵奩摉偡傞僷儔儊乕僞柤傪庢摼偟傑偡丅 愝掕偝傟偰偄側偄応崌丄
     * {@link ServicePropertyHandler#DEFAULT_SERVICE_PARAMETER}偱掕媊偝傟偰偄傞抣傪曉偟傑偡丅
     * 
     * @return 僒乕價僗ID偵奩摉偡傞僷儔儊乕僞柤
     * @throws ServicePropertyException
     *             僒乕價僗ID偵奩摉偡傞僷儔儊乕僞柤偺庢摼帪偵椺奜偑敪惗
     * @deprecated 偙偺幚憰偼攑巭偝傟傑偟偨丅
     */
    public String getServiceParamName() throws ServicePropertyException {
        return ResourceBundleServicePropertyHandlerUtil
                .getServiceParamName(getCommonBundle(new Locale("", "")));
    }

    /**
     * 椺奜儁乕僕偵慗堏偡傞偲偒偵javax.servlet.http.HttpServletRequest偵椺奜忣曬傪懏惈偲偟偰捛壛偡傞応崌偺懏惈柤傪庢摼偟傑偡丅
     * 愝掕偝傟偰偄側偄応崌丄 {@link ServicePropertyHandler#DEFAULT_EXCEPTION_ATTRIBUTE}
     * 偱掕媊偝傟偰偄傞抣傪曉偟傑偡丅
     * 
     * @return 椺奜偺懏惈柤
     * @throws ServicePropertyException
     *             懏惈柤偺庢摼帪偵椺奜偑敪惗
     */
    public String getExceptionAttributeName() throws ServicePropertyException {
        try {
            return ResourceBundleServicePropertyHandlerUtil
                    .getExceptionAttributeName(getCommonBundle(new Locale("",
                            "")));
        } catch (MissingResourceException e) {
            return DEFAULT_EXCEPTION_ATTRIBUTE;
        }
    }

    /**
     * 儘僌僀儞儐乕僓偑巊梡偡傞僄儞僐乕僪傪曐懚偟偰偍偔偲偒偺懏惈柤傪庢摼偟傑偡丅 愝掕偝傟偰偄側偄応崌丄
     * {@link #DEFAULT_ENCODING_ATTRIBUTE}偱掕媊偝傟偰偄傞抣傪曉偟傑偡丅
     * 
     * @return 僄儞僐乕僪偺懏惈柤
     * @throws ServicePropertyException
     *             懏惈柤偺庢摼帪偵椺奜偑敪惗
     */
    public String getEncodingAttributeName() throws ServicePropertyException {
        return ResourceBundleServicePropertyHandlerUtil
                .getEncodingAttributeName(getCommonBundle(new Locale("", "")));
    }

    /**
     * 儘僌僀儞儐乕僓偑巊梡偡傞儘働乕儖傪曐懚偟偰偍偔偲偒偺懏惈柤傪庢摼偟傑偡丅 愝掕偝傟偰偄側偄応崌丄
     * {@link #DEFAULT_LOCALE_ATTRIBUTE }偱掕媊偝傟偰偄傞抣傪曉偟傑偡 丅
     * 
     * @return 儘働乕儖偺懏惈柤
     * @throws ServicePropertyException
     *             懏惈柤偺庢摼帪偵椺奜偑敪惗
     * @since 4.2
     */
    public String getLocaleAttributeName() throws ServicePropertyException {
        return ResourceBundleServicePropertyHandlerUtil
                .getLocaleAttributeName(getCommonBundle(new Locale("", "")));
    }

    /**
     * properties僼傽僀儖偑懚嵼偡傞僷僢働乕僕傪庢摼偟傑偡丅 僷僢働乕僕壔偝傟偰偄側偄応崌偼嬻暥帤傪曉媝偟傑偡丅
     * 
     * @param application
     * @return 僷僢働乕僕
     * @since 5.0
     */
    private String getPropertyPackage(String application) {
        String[] paramAry = application.split("[.]");
        StringBuffer buf = new StringBuffer();
        if (paramAry.length > 1) {
            for (int i = 0; i < paramAry.length - 1; i++) {
                buf.append(paramAry[i]);
                buf.append(File.separator);
            }
        }
        return buf.toString();
    }

    /**
     * 傾僾儕働乕僔儑儞ID傪庢摼偟傑偡丅
     * 
     * @param application
     * @return 傾僾儕働乕僔儑儞ID
     * @since 5.0
     */
    private String getApplicationID(String application) {
        String[] paramAry = application.split("[.]");
        String id = paramAry[paramAry.length - 1];
        return id;
    }
}

⌨️ 快捷键说明

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