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

📄 commonservicemodel.java

📁 intra_mart是日本NDD公司开发的著名企业应用解决方案中间件。集成了J2ee服务器
💻 JAVA
字号:
/*
 * CommonServiceModel.java
 *
 * Created on 2004/01/12, 12:00
 */

package jp.co.intra_mart.framework.base.service;

import java.util.Collection;

/**
 * CommonService忣曬傪娗棟偡傞僋儔僗偱偡丅
 * 
 * @author INTRAMART
 * @since 5.0
 */
class CommonServiceModel {

	static final String ID = "service-config";

	static final String P_ID_CLIENT_ENCODING = "client-encoding";

	static final String P_ID_ENCODING_ATTRIBUTE_NAME = "encoding-attribute-name";

	static final String P_ID_CLIENT_LOCALE = "client-locale";

	static final String P_ID_LOCALE_ATTRIBUTE = "locale-attribute-name";

	static final String P_ID_CONTEXT_PATH = "context-path";

	static final String P_ID_SERVICE_SERVLET = "service-servlet";

	static final String P_ID_APPLICATION_PARAM_NAME = "application-param-name";

	static final String P_ID_SERVICE_PARAM_NAME = "service-param-name";

	static final String P_ID_EXCEPTION_ATTRIBUTE_NAME = "exception-attribute-name";

	static final String P_ID_CACHE_RULE = "cache-rule";

	static final String P_ID_CACHE_CONDITION = "cache-condition";

	static final String P_ID_CACHE_CONDITION_CLASS = "cache-condition-class";

	static final String P_ID_INIT_PARAM = "init-param";

	static final String P_ID_PARAM_NAME = "param-name";

	static final String P_ID_PARAM_VALUE = "param-value";

	static final String P_ID_CACHE = "cache";

	static final String P_ID_CACHE_CLASS = "cache-class";

	private String clientEncoding;

	private String encodingAttributeName;

	private String clientLocale;

	private String localeAttributeName;

	private String contextPath;

	private String serviceServletPath;

	private String applicationParamName;

	private String serviceParamName;

	private String exceptionAttributeName;

	private ErrorPageModel inputErrorPage;

	private ErrorPageModel systemErrorPage;

	private ErrorPageModel serviceErrorPage;

	private Collection cacheRuleInfos;

	// 懡尵岅懳墳
	private CommonServiceModel parent;

	/**
	 * EncodingAttributeName傪愝掕偟傑偡丅
	 * 
	 * @param encodingAttributeName
	 */
	void setEncodingAttributeName(String encodingAttributeName) {
		this.encodingAttributeName = encodingAttributeName;
	}

	/**
	 * EncodingAttributeName傪庢摼偟傑偡丅
	 * 
	 * @return String EncodingAttributeName
	 */
	String getEncodingAttributeName() {
		return encodingAttributeName;
	}

	/**
	 * ClientLocale傪愝掕偟傑偡丅
	 * 
	 * @param clientLocale
	 */
	void setClientLocale(String clientLocale) {
		this.clientLocale = clientLocale;
	}

	/**
	 * ClientLocale傪庢摼偟傑偡丅
	 * 
	 * @return String ClientLocale
	 */
	String getClientLocale() {
		return clientLocale;
	}

	/**
	 * LocaleAttributeName傪愝掕偟傑偡丅
	 * 
	 * @param localeAttributeName
	 */
	void setLocaleAttributeName(String localeAttributeName) {
		this.localeAttributeName = localeAttributeName;
	}

	/**
	 * LocaleAttributeName傪庢摼偟傑偡丅
	 * 
	 * @return String LocaleAttributeName
	 */
	String getLocaleAttributeName() {
		return localeAttributeName;
	}

	/**
	 * ContextPath傪愝掕偟傑偡丅
	 * 
	 * @param contextPath
	 */
	void setContextPath(String contextPath) {
		this.contextPath = contextPath;
	}

	/**
	 * ContextPath傪庢摼偟傑偡丅
	 * 
	 * @return String ContextPath
	 */
	String getContextPath() {
		return contextPath;
	}

	/**
	 * ServiceServletPath傪愝掕偟傑偡丅
	 * 
	 * @param serviceServletPath
	 */
	void setServiceServletPath(String serviceServletPath) {
		this.serviceServletPath = serviceServletPath;
	}

	/**
	 * ServiceServletPath傪庢摼偟傑偡丅
	 * 
	 * @return String ServiceServletPath
	 */
	String getServiceServletPath() {
		return serviceServletPath;
	}

	/**
	 * ApplicationParamName傪愝掕偟傑偡丅
	 * 
	 * @param applicationParamName
	 */
	void setApplicationParamName(String applicationParamName) {
		this.applicationParamName = applicationParamName;
	}

	/**
	 * ApplicationParamName傪庢摼偟傑偡丅
	 * 
	 * @return String ApplicationParamName
	 */
	String getApplicationParamName() {
		return applicationParamName;
	}

	/**
	 * ServiceParamName傪愝掕偟傑偡丅
	 * 
	 * @param serviceParamName
	 */
	void setServiceParamName(String serviceParamName) {
		this.serviceParamName = serviceParamName;
	}

	/**
	 * ServiceParamName傪庢摼偟傑偡丅
	 * 
	 * @return String ServiceParamName
	 */
	String getServiceParamName() {
		return serviceParamName;
	}

	/**
	 * ClientEncoding傪愝掕偟傑偡丅
	 * 
	 * @param clientEncoding
	 */
	void setClientEncoding(String clientEncoding) {
		this.clientEncoding = clientEncoding;
	}

	/**
	 * ClientEncoding傪庢摼偟傑偡丅
	 * 
	 * @return String ClientEncoding
	 */
	String getClientEncoding() {
		return clientEncoding;
	}

	/**
	 * ExceptionAttributeName傪愝掕偟傑偡丅
	 * 
	 * @param exceptionAttributeName
	 */
	void setExceptionAttributeName(String exceptionAttributeName) {
		this.exceptionAttributeName = exceptionAttributeName;
	}

	/**
	 * ExceptionAttributeName傪庢摼偟傑偡丅
	 * 
	 * @return String ExceptionAttributeName
	 */
	String getExceptionAttributeName() {
		return exceptionAttributeName;
	}

	/**
	 * CacheRuleInfo傪愝掕偟傑偡丅
	 * 
	 * @param cacheRuleInfos
	 */
	void setCacheRuleInfos(Collection cacheRuleInfos) {
		this.cacheRuleInfos = cacheRuleInfos;
	}

	/**
	 * CacheRuleInfo傪庢摼偟傑偡丅
	 * 
	 * @return Collection CacheRuleInfo
	 */
	Collection getCacheRuleInfos() {
		return cacheRuleInfos;
	}

	/**
	 * InputErrorPage傪愝掕偟傑偡丅
	 * 
	 * @param inputErrorPage
	 */
	void setInputErrorPage(ErrorPageModel inputErrorPage) {
		this.inputErrorPage = inputErrorPage;
	}

	/**
	 * InputErrorPage傪庢摼偟傑偡丅
	 * 
	 * @return ErrorPageModel InputErrorPage
	 */
	ErrorPageModel getInputErrorPage() {
		return inputErrorPage;
	}

	/**
	 * SystemErrorPage傪愝掕偟傑偡丅
	 * 
	 * @param systemErrorPage
	 */
	void setSystemErrorPage(ErrorPageModel systemErrorPage) {
		this.systemErrorPage = systemErrorPage;
	}

	/**
	 * SystemErrorPage傪庢摼偟傑偡丅
	 * 
	 * @return ErrorPageModel SystemErrorPage
	 */
	ErrorPageModel getSystemErrorPage() {
		return systemErrorPage;
	}

	/**
	 * ServiceErrorPage傪愝掕偟傑偡丅
	 * 
	 * @param serviceErrorPage
	 */
	void setServiceErrorPage(ErrorPageModel serviceErrorPage) {
		this.serviceErrorPage = serviceErrorPage;
	}

	/**
	 * ServiceErrorPage傪庢摼偟傑偡丅
	 * 
	 * @return ErrorPageModel ServiceErrorPage
	 */
	ErrorPageModel getServiceErrorPage() {
		return serviceErrorPage;
	}

	/**
	 * InputErrorPagePath傪庢摼偟傑偡丅
	 * 
	 * @return String InputErrorPagePath
	 */
	String getInputErrorPagePath() {
		String result = null;
		if (inputErrorPage != null) {
			result = inputErrorPage.getErrorPage();
		}
		if (result == null && parent != null) {
			result = parent.getInputErrorPagePath();
		}
		return result;
	}

	/**
	 * ServiceErrorPagePath傪庢摼偟傑偡丅
	 * 
	 * @return String ServiceErrorPagePath
	 */
	String getServiceErrorPagePath() {
		String result = null;
		if (serviceErrorPage != null) {
			result = serviceErrorPage.getErrorPage();
		}
		if (result == null && parent != null) {
			result = parent.getServiceErrorPagePath();
		}
		return result;
	}

	/**
	 * SystemErrorPagePath傪庢摼偟傑偡丅
	 * 
	 * @return String SystemErrorPagePath
	 */
	String getSystemErrorPagePath() {
		String result = null;
		if (systemErrorPage != null) {
			result = systemErrorPage.getErrorPage();
		}
		if (result == null && parent != null) {
			result = parent.getSystemErrorPagePath();
		}
		return result;
	}

	/**
	 * CommonServiceModel傪愝掕偟傑偡丅
	 * 
	 * @param parent
	 */
	void setParent(CommonServiceModel parent) {
		this.parent = parent;
	}

	/**
	 * CommonServiceModel傪庢摼偟傑偡丅
	 * 
	 * @return CommonServiceModel
	 */
	CommonServiceModel getParent() {
		return parent;
	}

}

⌨️ 快捷键说明

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