Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.sction.support.ueditor.define;
 
 import java.util.Map;
定义请求action类型

Author(s):
hancong03@baidu.com
public final class ActionMap {
	public static final Map<StringIntegermapping;
	// 获取配置请求
	public static final int CONFIG = 0;
	public static final int UPLOAD_IMAGE = 1;
	public static final int UPLOAD_SCRAWL = 2;
	public static final int UPLOAD_VIDEO = 3;
	public static final int UPLOAD_FILE = 4;
	public static final int UPLOAD_IDCARD_IMAGE = 90;
	public static final int CATCH_IMAGE = 5;
	public static final int LIST_FILE = 6;
	public static final int LIST_IMAGE = 7;
	static {
		 = new HashMap<StringInteger>(){{
			put"config". );
			put"uploadimage". );
			put"uploadscrawl". );
			put"uploadvideo". );
			put"uploadfile". );
			put"catchimage". );
			put"listfile". );
			put"listimage". );
			put"uploadidcardimage". );
		}};
	}
	public static int getType ( String key ) {
		return ..getkey );
	}
New to GrepCode? Check out our FAQ X