A B C D E F G I J L M P Q R S T V
A
- ALL_LOWERCASE -
类 com.xdnote.xdcore.Json 中的静态变量
- 全部小写
- ALL_UPCASE -
类 com.xdnote.xdcore.Json 中的静态变量
- 全部大写
B
- BaseAction - com.xdnote.xdcore 中的 类
-
业务Action的基类,包含一个没有实现的index方法,和bf_Validate方法,可返回任意对象,
业务Action必须继承BaseAction,并实现index
如果实现了bf_Validate方法则将会在执行方法之前执行bf_Validate方法
- BaseAction() -
类 com.xdnote.xdcore.BaseAction 的构造方法
-
- BaseFilter - com.xdnote.xdcore 中的 类
- MVC的控制器,配置xMap后,可以根据请求与xMap里面的的key进行匹配,匹配到则按匹配到的处理Action执行请求
- BaseFilter() -
类 com.xdnote.xdcore.BaseFilter 的构造方法
-
- bf_Validate(HttpServletRequest, HttpServletResponse, String[]) -
类 com.xdnote.xdcore.BaseAction 中的方法
- 请求之前验证方法,在你的方法之前执行,判定用户是否符合条件
如果不需要判断可以不用实现这个方法, 如果判定成功则返回null,否则返回一个框架支持的处理对象
- byteString(int) -
类 com.xdnote.xdcore.util.FormUtil 中的静态方法
- 字节转换
C
- CacheUtil - com.xdnote.xdcore.util 中的 类
- 缓存管理,基本的缓存操作,设置,取出等,使用上类似Jcs,以GROUP编组,以KEY-VALUE对为缓存,项目内小型数据缓存专用,不会过期,慎放大型数据
- CacheUtil() -
类 com.xdnote.xdcore.util.CacheUtil 的构造方法
-
- com.xdnote.xdcore - 软件包 com.xdnote.xdcore
- 框架框架主体,包含一个过滤器
BaseFilter
和一个业务处理类 BaseAction
实际使用时,需要扩展这两个类去实现MVC,请进入本包的说明查看详细教程
包括三个包,分别为util,result,plugin - com.xdnote.xdcore.plugin - 软件包 com.xdnote.xdcore.plugin
- 框架的插件相关,如果插件需要注册到控制流里面,
配置插件参数一般可以创建xPlugin.properties文件,进行配置。 - com.xdnote.xdcore.util - 软件包 com.xdnote.xdcore.util
- 这里集合了一些做WEB页面常用工具,有的时候经常去上网找,也没意思,有时候为了一个小功能下一些莫名奇妙的lib,风险太大,于是自己简单的整理了一些常用的,并用最简单的代码去实现它们。
- CookieUtil - com.xdnote.xdcore.util 中的 类
- Cookie管理,基本的Cookie操作,增加,删除等
- CookieUtil() -
类 com.xdnote.xdcore.util.CookieUtil 的构造方法
-
D
- dateString(String) -
类 com.xdnote.xdcore.util.FormUtil 中的静态方法
- 日期转换
- deleteData(String) -
类 com.xdnote.xdcore.plugin.MemcacheUtil 中的静态方法
-
- destroy() -
类 com.xdnote.xdcore.BaseFilter 中的方法
-
- doFilter(ServletRequest, ServletResponse, FilterChain) -
类 com.xdnote.xdcore.BaseFilter 中的方法
- 控制器,如果想扩展一下,可以自己写一个Filter继承本Filter,实现的被捕super.doFilter一下,再加扩展代码
- DRIVER -
类 com.xdnote.xdcore.plugin.MySqlConnectPool 中的静态变量
-
E
- execute(String, Object...) -
类 com.xdnote.xdcore.plugin.MysqlExecuter 中的静态方法
-
F
- FormUtil - com.xdnote.xdcore.util 中的 类
- 表单提交时的常用工具,包括验证邮箱地址,手机号码等等
- FormUtil() -
类 com.xdnote.xdcore.util.FormUtil 的构造方法
-
- FRIST_LOWERCASE -
类 com.xdnote.xdcore.Json 中的静态变量
- 首字母小写(默认)
- FRIST_UPCASE -
类 com.xdnote.xdcore.Json 中的静态变量
- 首字母大写
G
- genKey() -
类 com.xdnote.xdcore.util.FormUtil 中的静态方法
- 随机生成一个32位的字符串
- genKey(int) -
类 com.xdnote.xdcore.util.FormUtil 中的静态方法
- 随机生成一个指定长度位数的字符串
- getConfig(String) -
类 com.xdnote.xdcore.util.CacheUtil 中的静态方法
-
- getConn() -
类 com.xdnote.xdcore.plugin.MySqlConnectPool 中的方法
-
- getCookie(HttpServletRequest, String) -
类 com.xdnote.xdcore.util.CookieUtil 中的静态方法
-
- getData(String) -
类 com.xdnote.xdcore.plugin.MemcacheUtil 中的静态方法
-
- getInstance() -
类 com.xdnote.xdcore.plugin.MySqlConnectPool 中的静态方法
-
- getIpAddr(HttpServletRequest) -
类 com.xdnote.xdcore.util.IPUtil 中的静态方法
- 获取用户远程IP地址,(可防一般虚拟主机和代理访问获取不到真实IP,如果有IP鉴权功能不要使用)
- getRediret() -
类 com.xdnote.xdcore.Redirect 中的方法
-
- getRs() -
类 com.xdnote.xdcore.plugin.PageResultSet 中的方法
-
- getTotal_count() -
类 com.xdnote.xdcore.plugin.PageResultSet 中的方法
-
- getValue(Object) -
类 com.xdnote.xdcore.util.CacheUtil 中的静态方法
- 获取默认缓存
- getValue(String, Object) -
类 com.xdnote.xdcore.util.CacheUtil 中的静态方法
- 获取指定Group的缓存
I
- index(HttpServletRequest, HttpServletResponse, String[]) -
类 com.xdnote.xdcore.BaseAction 中的方法
- 默认执行的方法,没有方法名时执行index方法
一般情况下请务必重写此方法,以免用户目前访问引起的404
- init(FilterConfig) -
类 com.xdnote.xdcore.BaseFilter 中的方法
-
- insert(String, Object...) -
类 com.xdnote.xdcore.plugin.MysqlExecuter 中的静态方法
-
- IPUtil - com.xdnote.xdcore.util 中的 类
- 获取用户远程IP地址,(可防一般虚拟主机和代理访问获取不到真实IP,如果有IP鉴权功能不要使用)
- IPUtil() -
类 com.xdnote.xdcore.util.IPUtil 的构造方法
-
- isSimpleText(String) -
类 com.xdnote.xdcore.util.FormUtil 中的静态方法
- 判断一个文本是否是数字与字母的组合
J
- Json - com.xdnote.xdcore 中的 类
- Json结果类,在执行Action返回一个Json的子类,会直接返回一个Json格式的响应。
- Json() -
类 com.xdnote.xdcore.Json 的构造方法
-
L
- loadFileToGroup(String, String) -
类 com.xdnote.xdcore.util.CacheUtil 中的静态方法
-
M
- MailUtil - com.xdnote.xdcore.plugin 中的 类
- 邮件发送类,目前可通过MailUtil发送HTML文件或文本文件
- MailUtil() -
类 com.xdnote.xdcore.plugin.MailUtil 的构造方法
-
- main(String[]) -
类 com.xdnote.xdcore.util.FormUtil 中的静态方法
-
- MemcacheUtil - com.xdnote.xdcore.plugin 中的 类
- MC操作类
- MemcacheUtil() -
类 com.xdnote.xdcore.plugin.MemcacheUtil 的构造方法
-
- MySqlConnectPool - com.xdnote.xdcore.plugin 中的 类
-
- MysqlExecuter - com.xdnote.xdcore.plugin 中的 类
-
- MysqlExecuter() -
类 com.xdnote.xdcore.plugin.MysqlExecuter 的构造方法
-
P
- PageResultSet - com.xdnote.xdcore.plugin 中的 类
-
- PageResultSet() -
类 com.xdnote.xdcore.plugin.PageResultSet 的构造方法
-
Q
- query(String, Object...) -
类 com.xdnote.xdcore.plugin.MysqlExecuter 中的静态方法
-
- queryPage(String, int, int, Object...) -
类 com.xdnote.xdcore.plugin.MysqlExecuter 中的静态方法
-
R
- Redirect - com.xdnote.xdcore 中的 类
-
- Redirect(String) -
类 com.xdnote.xdcore.Redirect 的构造方法
-
- releaseConn(Connection) -
类 com.xdnote.xdcore.plugin.MySqlConnectPool 中的方法
-
S
- sendHtmlMail(String, String, String) -
类 com.xdnote.xdcore.plugin.MailUtil 中的静态方法
- 发送HTML格式的邮件
- setCookie(HttpServletResponse, String, String) -
类 com.xdnote.xdcore.util.CookieUtil 中的静态方法
-
- setCookie(HttpServletResponse, String, String, int) -
类 com.xdnote.xdcore.util.CookieUtil 中的静态方法
-
- setData(String, Object) -
类 com.xdnote.xdcore.plugin.MemcacheUtil 中的静态方法
-
- setData(String, Integer, T) -
类 com.xdnote.xdcore.plugin.MemcacheUtil 中的静态方法
-
- setDefaultMode(int) -
类 com.xdnote.xdcore.Json 中的方法
- 设置输出Json时,key的模式
- setRs(ResultSet) -
类 com.xdnote.xdcore.plugin.PageResultSet 中的方法
-
- setTotal_count(int) -
类 com.xdnote.xdcore.plugin.PageResultSet 中的方法
-
- setValue(Object, Object) -
类 com.xdnote.xdcore.util.CacheUtil 中的静态方法
-
- setValue(String, Object, Object) -
类 com.xdnote.xdcore.util.CacheUtil 中的静态方法
- 设置缓存
T
- toString() -
类 com.xdnote.xdcore.Json 中的方法
-
V
- validateEmail(String) -
类 com.xdnote.xdcore.util.FormUtil 中的静态方法
- 验证是不是email格式
A B C D E F G I J L M P Q R S T V