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

📄 webcontextholder.java

📁 esri的ArcGIS Server超级学习模板程序(for java)
💻 JAVA
字号:
package com.esri.solutions.jitk.web.tasks;

import org.apache.log4j.Logger;
import com.esri.adf.web.data.WebContext;

public class WebContextHolder implements IWebContextAware {
	private static final Logger _logger = Logger.getLogger(WebContextHolder.class.getName());
	protected WebContext _webContext = null;
	
	public void setContext(WebContext context) {	
		if(context != null) {
		    this._webContext = context;	
		}
		else {
			_logger.error("WebContext set to null");
			throw new NullPointerException("WebContext set to null");
		}	
	}
	
	public WebContext getContext() {
		return _webContext;
	}
}

⌨️ 快捷键说明

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