public abstract class BaseAop extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.log4j.Logger |
LOG |
| 构造器和说明 |
|---|
BaseAop() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
encryptByAES(int appId,
String str)
AES加密字符串,key值为当前应用编号
|
protected AppEntity |
getApp(javax.servlet.http.HttpServletRequest request)
获取当前模块对应的appid , appid主要根据用户的请求地址获得
|
protected int |
getAppId(javax.servlet.http.HttpServletRequest request)
获取当前模块对应的appid , appid主要根据用户的请求地址获得
|
protected Object |
getBean(javax.servlet.ServletContext sc,
String beanName)
通过spring的webapplicationcontext上下文对象读取bean对象
|
protected String |
getCode(javax.servlet.http.HttpServletRequest request) |
protected String |
getDomain(javax.servlet.http.HttpServletRequest request)
获取请求域名,域名不包括http请求协议头
|
protected Object |
getSession(javax.servlet.http.HttpServletRequest request,
com.mingsoft.base.constant.e.BaseSessionEnum key)
获取session的值
|
protected <T> T |
getType(org.aspectj.lang.JoinPoint jp,
Class<T> clazz) |
protected final <T> T getType(org.aspectj.lang.JoinPoint jp,
Class<T> clazz)
protected String getCode(javax.servlet.http.HttpServletRequest request)
protected String encryptByAES(int appId, String str)
request - HttpServletRequest对象str - 需要加密的字符串protected int getAppId(javax.servlet.http.HttpServletRequest request)
request - HttpServletRequest对象protected AppEntity getApp(javax.servlet.http.HttpServletRequest request)
request - HttpServletRequest对象protected Object getBean(javax.servlet.ServletContext sc, String beanName)
sc - 上下文servletConext对象beanName - 要读取的bean的名称protected String getDomain(javax.servlet.http.HttpServletRequest request)
request - HttpServletRequest对象protected Object getSession(javax.servlet.http.HttpServletRequest request, com.mingsoft.base.constant.e.BaseSessionEnum key)
request - HttpServletRequest对象key - 枚举类中的值Copyright © 2016. All rights reserved.