📄 distributesservicepropertyhandler.java
字号:
/**
* 擖椡椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
* {@link #getInputErrorPagePath(String, String)}偱庢摼偝傟傞儁乕僕傪曉偟傑偡丅 偙偺儊僜僢僪偼
* {@link #getInputErrorPagePath(String, String, String, Locale) getInputErrorPagePath(application, service, key, (java.util.Locale)null)}
* 傪屇傫偩偲偒偲摨偠寢壥偵側傝傑偡丅
*
* @param application 傾僾儕働乕僔儑儞ID
* @param service 僒乕價僗ID
* @param key 慗堏愭偺僉乕
* @return 慗堏愭偺儁乕僕偺僷僗
* @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
* @deprecated 偙偺儊僜僢僪偱偼側偔
* {@link #getInputErrorPagePath(String, String, String, Locale)}
* 傪巊梡偟偰偔偩偝偄丅
*/
public String getInputErrorPagePath(String application, String service,
String key) throws ServicePropertyException {
return getInputErrorPagePath(application, service, key, (Locale) null);
}
/**
* 擖椡椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
* {@link #getInputErrorPagePath(String, String)}偱庢摼偝傟傞儁乕僕傪曉偟傑偡丅
*
* @param application 傾僾儕働乕僔儑儞ID
* @param service 僒乕價僗ID
* @param key 慗堏愭偺僉乕
* @param locale 儘働乕儖
* @return 慗堏愭偺儁乕僕偺僷僗
* @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
*/
public String getInputErrorPagePath(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.getInputErrorPagePath(application, service, key,
locale);
} else if (obj instanceof TextFileServicePropertyHandler) {
TextFileServicePropertyHandler handler = (TextFileServicePropertyHandler) obj;
ret = handler.getInputErrorPagePath(application, service, key,
locale);
} else if (obj instanceof XmlServicePropertyHandler) {
XmlServicePropertyHandler handler = (XmlServicePropertyHandler) obj;
ret = handler.getInputErrorPagePath(application, service, key,
locale);
}
return ret;
}
/**
* 擖椡椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
* {@link #getInputErrorPagePath(String)}偱庢摼偝傟傞儁乕僕傪曉偟傑偡丅 偙偺儊僜僢僪偼
* {@link #getInputErrorPagePath(String, String, Locale) getInputErrorPagePath(application, service, (java.util.Locale)null)}
* 傪屇傫偩偲偒偲摨偠寢壥偵側傝傑偡丅
*
* @param application 傾僾儕働乕僔儑儞ID
* @param service 僒乕價僗ID
* @return 慗堏愭偺儁乕僕偺僷僗
* @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
* @deprecated 偙偺儊僜僢僪偱偼側偔
* {@link #getInputErrorPagePath(String, String, Locale)}
* 傪巊梡偟偰偔偩偝偄丅
*/
public String getInputErrorPagePath(String application, String service)
throws ServicePropertyException {
return getInputErrorPagePath(application, service, (Locale) null);
}
/**
* 擖椡椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
* {@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 ret = new String();
Object obj = getApplicationBundle(application);
if (obj instanceof DefaultServicePropertyHandler) {
DefaultServicePropertyHandler handler = (DefaultServicePropertyHandler) obj;
ret = handler.getInputErrorPagePath(application, service, locale);
} else if (obj instanceof TextFileServicePropertyHandler) {
TextFileServicePropertyHandler handler = (TextFileServicePropertyHandler) obj;
ret = handler.getInputErrorPagePath(application, service, locale);
} else if (obj instanceof XmlServicePropertyHandler) {
XmlServicePropertyHandler handler = (XmlServicePropertyHandler) obj;
ret = handler.getInputErrorPagePath(application, service, locale);
}
return ret;
}
/**
* 擖椡椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄 {@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 {
return getInputErrorPagePath(application, (Locale) null);
}
/**
* 擖椡椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄 {@link #getInputErrorPagePath()}
* 偱庢摼偝傟傞儁乕僕傪曉偟傑偡丅
*
* @param application 傾僾儕働乕僔儑儞ID
* @param locale 儘働乕儖
* @return 慗堏愭偺儁乕僕偺僷僗
* @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
*/
public String getInputErrorPagePath(String application, Locale locale)
throws ServicePropertyException {
String ret = new String();
Object obj = getApplicationBundle(application);
if (obj instanceof DefaultServicePropertyHandler) {
DefaultServicePropertyHandler handler = (DefaultServicePropertyHandler) obj;
ret = handler.getInputErrorPagePath(application, locale);
} else if (obj instanceof TextFileServicePropertyHandler) {
TextFileServicePropertyHandler handler = (TextFileServicePropertyHandler) obj;
ret = handler.getInputErrorPagePath(application, locale);
} else if (obj instanceof XmlServicePropertyHandler) {
XmlServicePropertyHandler handler = (XmlServicePropertyHandler) obj;
ret = handler.getInputErrorPagePath(application, locale);
}
return ret;
}
/**
* 擖椡椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 偙偺儊僜僢僪偼
* {@link #getInputErrorPagePath(Locale) getInputErrorPagePath((java.util.Locale)null)}
* 傪屇傫偩偲偒偲摨偠寢壥偵側傝傑偡丅
*
* @return 慗堏愭偺儁乕僕偺僷僗
* @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
* @deprecated 偙偺儊僜僢僪偱偼側偔 {@link #getInputErrorPagePath(Locale)}傪巊梡偟偰偔偩偝偄丅
*/
public String getInputErrorPagePath() throws ServicePropertyException {
return getInputErrorPagePath((Locale) null);
}
/**
* 擖椡椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅
*
* @param locale 儘働乕儖
* @return 慗堏愭偺儁乕僕偺僷僗
* @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
*/
public String getInputErrorPagePath(Locale locale)
throws ServicePropertyException {
return ResourceBundleServicePropertyHandlerUtil
.getInputErrorPagePath(getCommonBundle(locale));
}
/**
* 慗堏愭偺儁乕僕偺僷僗傪庢摼偟傑偡丅 僒乕價僗偐傜慗堏愭偑堦堄偵寛傑傞応崌偵偙偺儊僜僢僪傪巊梡偟傑偡丅 偙偺儊僜僢僪偼
* {@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 {
return getNextPagePath(application, service, (Locale) null);
}
/**
* 慗堏愭偺儁乕僕偺僷僗傪庢摼偟傑偡丅 僒乕價僗偐傜慗堏愭偑堦堄偵寛傑傞応崌偵偙偺儊僜僢僪傪巊梡偟傑偡丅
*
* @param application 傾僾儕働乕僔儑儞ID
* @param service 僒乕價僗ID
* @param locale 儘働乕儖
* @return 慗堏愭偺儁乕僕偺僷僗
* @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
*/
public String getNextPagePath(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.getNextPagePath(application, service, locale);
} else if (obj instanceof TextFileServicePropertyHandler) {
TextFileServicePropertyHandler handler = (TextFileServicePropertyHandler) obj;
ret = handler.getNextPagePath(application, service, locale);
} else if (obj instanceof XmlServicePropertyHandler) {
XmlServicePropertyHandler handler = (XmlServicePropertyHandler) obj;
ret = handler.getNextPagePath(application, service, locale);
}
return ret;
}
/**
* 慗堏愭偺儁乕僕偺僷僗傪庢摼偟傑偡丅 僒乕價僗偐傜慗堏愭偑堦堄偵寛傑傜側偄応崌偵偙偺儊僜僢僪傪巊梡偟傑偡丅 <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 {
return getNextPagePath(application, service, key, (Locale) null);
}
/**
* 慗堏愭偺儁乕僕偺僷僗傪庢摼偟傑偡丅 僒乕價僗偐傜慗堏愭偑堦堄偵寛傑傜側偄応崌偵偙偺儊僜僢僪傪巊梡偟傑偡丅 <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 ret = new String();
Object obj = getApplicationBundle(application);
if (obj instanceof DefaultServicePropertyHandler) {
DefaultServicePropertyHandler handler = (DefaultServicePropertyHandler) obj;
ret = handler.getNextPagePath(application, service, key, locale);
} else if (obj instanceof TextFileServicePropertyHandler) {
TextFileServicePropertyHandler handler = (TextFileServicePropertyHandler) obj;
ret = handler.getNextPagePath(application, service, key, locale);
} else if (obj instanceof XmlServicePropertyHandler) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -