📄 xmlservicepropertyhandler.java
字号:
throw new ServicePropertyException(message + idMessage);
}
return result;
}
/**
* 僒乕價僗僐儞僩儘乕儔偺僋儔僗柤傪庢摼偟傑偡丅 奩摉偡傞僒乕價僗僐儞僩儘乕儔偑懚嵼偟側偄応崌丄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 {
String result = null;
ServiceConfigModel serviceConfig = getServiceConfigModel(application);
if (serviceConfig != null) {
result = serviceConfig.getServiceControllerClassName(service);
}
return result;
}
/**
* 僒乕價僗僐儞僩儘乕儔偺僋儔僗柤傪庢摼偟傑偡丅 奩摉偡傞僒乕價僗僐儞僩儘乕儔偑懚嵼偟側偄応崌丄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 result = null;
ServiceConfigModel serviceConfig = getServiceConfigModel(application,
locale);
if (serviceConfig != null) {
result = serviceConfig.getServiceControllerClassName(service);
}
return result;
}
/**
* 張棟椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 偙偺儊僜僢僪偼
* {@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 {
String result = null;
ServiceConfigModel serviceConfig = getServiceConfigModel(application);
if (serviceConfig != null) {
result = serviceConfig.getServiceErrorPagePath(service, key);
}
if (result == null) {
try {
result = getServiceErrorPagePath(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;
}
/**
* 張棟椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅
*
* @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 result = null;
ServiceConfigModel serviceConfig = getServiceConfigModel(application,
locale);
if (serviceConfig != null) {
result = serviceConfig.getServiceErrorPagePath(service, key);
}
if (result == null) {
try {
result = getServiceErrorPagePath(application, service, locale);
} catch (ServicePropertyException e) {
}
}
if (result == null) {
String idMessage = " : application = " + application
+ " : service = " + service + " : key = " + key;
String message = ServiceResourceMessage
.getResourceString("ResourceBundleServicePropertyHandlerUtil.ResourceBundleServicePropertyHandlerUtil.FailedToGetServiceErrorPagePath");
throw new ServicePropertyException(message + idMessage);
}
return result;
}
/**
* 張棟椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
* {@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 {
String result = null;
ServiceConfigModel serviceConfig = getServiceConfigModel(application);
if (serviceConfig != null) {
result = serviceConfig.getServiceErrorPagePath(service);
}
if (result == null) {
try {
result = getServiceErrorPagePath(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 #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 result = null;
ServiceConfigModel serviceConfig = getServiceConfigModel(application,
locale);
if (serviceConfig != null) {
result = serviceConfig.getServiceErrorPagePath(service);
}
if (result == null) {
try {
result = getServiceErrorPagePath(application, locale);
} catch (ServicePropertyException e) {
}
}
if (result == null) {
String idMessage = " : application = " + application
+ " : service = " + service;
String message = ServiceResourceMessage
.getResourceString("ResourceBundleServicePropertyHandlerUtil.ResourceBundleServicePropertyHandlerUtil.FailedToGetServiceErrorPagePath");
throw new ServicePropertyException(message + idMessage);
}
return result;
}
/**
* 張棟椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
* {@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 {
String result = null;
ServiceConfigModel serviceConfig = getServiceConfigModel(application);
if (serviceConfig != null) {
result = serviceConfig.getServiceErrorPagePath();
}
if (result == null) {
try {
result = getServiceErrorPagePath();
} catch (ServicePropertyException e) {
}
}
if (result == null) {
String idMessage = " : application = " + application;
String message = ServiceResourceMessage
.getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetServiceErrorPagePath");
throw new ServicePropertyException(message + idMessage);
}
return result;
}
/**
* 張棟椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 奩摉偡傞儁乕僕偺僷僗偑庢摼偱偒側偄応崌丄
* {@link #getServiceErrorPagePath()}偱庢摼偝傟傞儁乕僕傪曉偟傑偡丅
*
* @param application 傾僾儕働乕僔儑儞ID
* @param locale 儘働乕儖
* @return 慗堏愭偺儁乕僕偺僷僗
* @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
*/
public String getServiceErrorPagePath(String application, Locale locale)
throws ServicePropertyException {
String result = null;
ServiceConfigModel serviceConfig = getServiceConfigModel(application,
locale);
if (serviceConfig != null) {
result = serviceConfig.getServiceErrorPagePath();
}
if (result == null) {
try {
result = getServiceErrorPagePath(locale);
} catch (ServicePropertyException e) {
}
}
if (result == null) {
String idMessage = " : application = " + application;
String message = ServiceResourceMessage
.getResourceString("ResourceBundleServicePropertyHandlerUtil.ResourceBundleServicePropertyHandlerUtil.FailedToGetServiceErrorPagePath");
throw new ServicePropertyException(message + idMessage);
}
return result;
}
/**
* 張棟椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅 偙偺儊僜僢僪偼
* {@link #getServiceErrorPagePath(Locale) getServiceErrorPagePath((java.util.Locale)null)}
* 傪屇傫偩偲偒偲摨偠寢壥偵側傝傑偡丅
*
* @return 慗堏愭偺儁乕僕偺僷僗
* @throws ServicePropertyException 慗堏愭偺儁乕僕偺僷僗偺庢摼帪偵椺奜偑敪惗
* @deprecated 偙偺儊僜僢僪偱偼側偔 {@link #getServiceErrorPagePath(Locale)}
* 傪巊梡偟偰偔偩偝偄丅
*/
public String getServiceErrorPagePath() throws ServicePropertyException {
String result = null;
CommonServiceModel commonService = getCommonServiceModel();
result = commonService.getServiceErrorPagePath();
if (result == null) {
String message = ServiceResourceMessage
.getResourceString("ResourceBundleServicePropertyHandlerUtil.FailedToGetServiceErrorPagePath");
throw new ServicePropertyException(message);
}
return result;
}
/**
* 張棟椺奜帪偺儁乕僕偺僷僗傪庢摼偟傑偡丅
*
* @param locale 儘働乕儖
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -