ejbcajsfimageresource.java

来自「一个免费的CA,基于EJB平台的,老师叫我们测试,现把之共享出来让大家参考」· Java 代码 · 共 75 行

JAVA
75
字号
package org.ejbca.ui.web.admin.configuration;import java.util.Collection;import java.util.Map;import java.util.Set;import javax.ejb.EJBException;/** * Class used to retrieve EJBCA image resources in JSF views *  * Implements a Map used for retrieving resources. * @author Philip Vendil * $id$ * @see org.ejbca.ui.web.admin.configuration.EjbcaWebBean#getImagefileInfix(String) */public class EjbcaJSFImageResource implements Map {	private EjbcaWebBean ejbcawebbean;		public EjbcaJSFImageResource(EjbcaWebBean ejbcawebbean){		this.ejbcawebbean = ejbcawebbean;	}		public void clear() {		throw new EJBException("Method clear not supported");	}	public boolean containsKey(Object arg0) {				return ejbcawebbean.getImagefileInfix((String) arg0) != null;	}	public boolean containsValue(Object arg0) {		throw new EJBException("Method containsValue not supported");	}	public Set entrySet() {		throw new EJBException("Method entrySet not supported");	}	public Object get(Object arg0) {		return ejbcawebbean.getImagefileInfix((String) arg0);	}	public boolean isEmpty() {		throw new EJBException("Method isEmpty not supported");	}	public Set keySet() {		throw new EJBException("Method keySet not supported");	}	public Object put(Object arg0, Object arg1) {		throw new EJBException("Method put not supported");	}	public void putAll(Map arg0) {		throw new EJBException("Method putAll not supported");	}	public Object remove(Object arg0) {		throw new EJBException("Method remove not supported");	}	public int size() {		throw new EJBException("Method size not supported");	}	public Collection values() {		throw new EJBException("Method values not supported");	}}

⌨️ 快捷键说明

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