All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.j2mvc.framework.action.ActionBean Maven / Gradle / Ivy

Go to download

强烈建议使用J2mvc 2.1以后的版本。 version 2.1.01 1.优化路径跳转,Servlet和Filter方式的路径设置 2.优化内存销毁 3.更换JSON依赖包 4.优化接收方法RequestMethod,封装不同ContentType格式提交 封装JSON,XML数据提交模块 JSON请求示例 { "id":"JSON134851", "title":"JSON提交的标题", "price":65.1, "stock":100 } XML请求示例 <!DOCTYPE root [ <!ELEMENT root ANY> <!ATTLIST Product SSN ID #REQUIRED>]> <root> <Product SSN='id'>XMLID12354</Product> <Product SSN='title'>XML提交的标题 </Product> <Product SSN='price'>55 </Product> <Product SSN='stock'>32 </Product> </root> version 2.1.02 1.解决URL无后缀情况无法加载静态资源,解决无法渲染CSS文件。 version 2.1.03 1.移除com.j2mvc.StringUtils.getUtf8()方法调用 更改为getCharset() version 2.1.04 1.去除Servlet和Filter的全局变量销毁,只交给Listener处理。 version 2.1.05,2.1.06,2.1.07 1.完善POST提交的JSON数据 支持接收基础数据类型、任意对象类型、任意数组类型。 不支持接收参数为集合类型或Map类型,但可以定义为接收对象类型的元素。 version 2.1.05,2.1.06,2.1.07 1.修改连接池变量 version 2.1.09 增加上传功能,修改RequestMethod,ContentType设置方式 version 2.1.10,2.1.11 更改上传文件名格式为UUID格式,移除JSON映射类,更改接收多文件上传。 version 2.1.12 删除文件列有的空对象 version 2.1.13 增加配置文件目录/conf,加载上传功能配置/conf/upload.properties version 2.1.18 拦截器也能获取ActionBean version 2.1.20 添加上传文件只读权限 version 2.1.21 支持同时接收文件和文本数据 version 2.1.22 增加文件接收类型media version 2.1.23 删除upload类printJson方法

The newest version!
package com.j2mvc.framework.action;

import java.lang.reflect.Method;
import java.util.Map;

/**
 * ActionBean
 * 
 * @version 1.0 2014-2-23创建@杨朔
 * @version 1.1 2014-8-21更改@杨朔
 */
public class ActionBean {
	/** 是否为包含页面 */
	private boolean incude = false;
	/** 包名 */
	private String packageName; 
	/** URL上层路径 */
	private String path;
	/** 路径描述 */
	private String pathDescription;
	/** 路径开启权限控制 */
	private boolean pathAuth;
	/** 文件目录 */
	private String dir;
	/** URI */
	private String uri;
	/** URL请求参数串 */
	private Map querys;
	/** 类名 */
	private String className;
	/** 方法 */
	private Method method;
	/** 标题 */
	private String title;
	/** 关键字 */
	private String keywords;
	/** 描述 */
	private String description;
	/** 标签,相当于分组或分类 */
	private String tag;
	/** 是否开启权限控制 */
	private boolean auth;
	/** 无权限代码 */
	private String authNone;
	/** 请求方式 */
	private String requestMethod;
	/** 数据方式 */
	private String contentType;
	/** 上传实例 */
	private ActionUpload actionUpload;
	
	public String getPackageName() {
		return packageName;
	}
	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getDir() {
		return dir;
	}
	public void setDir(String dir) {
		this.dir = dir;
	}
	public String getUri() {
		return uri;
	}
	public void setUri(String uri) {
		this.uri = uri;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public Method getMethod() {
		return method;
	}
	public void setMethod(Method method) {
		this.method = method;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public boolean isAuth() {
		return auth;
	}
	public void setAuth(boolean auth) {
		this.auth = auth;
	}
	public String getPathDescription() {
		return pathDescription;
	}
	public void setPathDescription(String pathDescription) {
		this.pathDescription = pathDescription;
	}
	public boolean isPathAuth() {
		return pathAuth;
	}
	public void setPathAuth(boolean pathAuth) {
		this.pathAuth = pathAuth;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getKeywords() {
		return keywords;
	}
	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}
	public Map getQuerys() {
		return querys;
	}
	public void setQuerys(Map querys) {
		this.querys = querys;
	}
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public String getAuthNone() {
		return authNone;
	}
	public void setAuthNone(String authNone) {
		this.authNone = authNone;
	}
	public boolean isIncude() {
		return incude;
	}
	public void setIncude(boolean incude) {
		this.incude = incude;
	}
	public String getRequestMethod() {
		return requestMethod;
	}
	public void setRequestMethod(String requestMethod) {
		this.requestMethod = requestMethod;
	}
	public String getContentType() {
		return contentType;
	}
	public void setContentType(String contentType) {
		this.contentType = contentType;
	}
	public ActionUpload getActionUpload() {
		return actionUpload;
	}
	public void setActionUpload(ActionUpload actionUpload) {
		this.actionUpload = actionUpload;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy