|
@@ -0,0 +1,144 @@
|
|
|
+package org.hswebframework.web.logging;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.lang.reflect.Method;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * TODO 完成注释
|
|
|
+ *
|
|
|
+ * @author zhouhao
|
|
|
+ */
|
|
|
+public class AccessLoggerInfo implements Serializable {
|
|
|
+
|
|
|
+ private String action;
|
|
|
+
|
|
|
+ private String describe;
|
|
|
+
|
|
|
+ private Method method;
|
|
|
+
|
|
|
+ private Class target;
|
|
|
+
|
|
|
+ private Map<String, Object> parameters;
|
|
|
+
|
|
|
+ private String ip;
|
|
|
+
|
|
|
+ private String url;
|
|
|
+
|
|
|
+ private Map<String, String> httpHeaders;
|
|
|
+
|
|
|
+ private String httpMethod;
|
|
|
+
|
|
|
+ private Object response;
|
|
|
+
|
|
|
+ private long requestTime;
|
|
|
+
|
|
|
+ private long responseTime;
|
|
|
+
|
|
|
+ private Throwable exception;
|
|
|
+
|
|
|
+
|
|
|
+ public String getAction() {
|
|
|
+ return action;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAction(String action) {
|
|
|
+ this.action = action;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getDescribe() {
|
|
|
+ return describe;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDescribe(String describe) {
|
|
|
+ this.describe = describe;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Method getMethod() {
|
|
|
+ return method;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMethod(Method method) {
|
|
|
+ this.method = method;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Class getTarget() {
|
|
|
+ return target;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTarget(Class target) {
|
|
|
+ this.target = target;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Map<String, Object> getParameters() {
|
|
|
+ return parameters;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setParameters(Map<String, Object> parameters) {
|
|
|
+ this.parameters = parameters;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getIp() {
|
|
|
+ return ip;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setIp(String ip) {
|
|
|
+ this.ip = ip;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getUrl() {
|
|
|
+ return url;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUrl(String url) {
|
|
|
+ this.url = url;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Map<String, String> getHttpHeaders() {
|
|
|
+ return httpHeaders;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setHttpHeaders(Map<String, String> httpHeaders) {
|
|
|
+ this.httpHeaders = httpHeaders;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getHttpMethod() {
|
|
|
+ return httpMethod;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setHttpMethod(String httpMethod) {
|
|
|
+ this.httpMethod = httpMethod;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Object getResponse() {
|
|
|
+ return response;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setResponse(Object response) {
|
|
|
+ this.response = response;
|
|
|
+ }
|
|
|
+
|
|
|
+ public long getRequestTime() {
|
|
|
+ return requestTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRequestTime(long requestTime) {
|
|
|
+ this.requestTime = requestTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public long getResponseTime() {
|
|
|
+ return responseTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setResponseTime(long responseTime) {
|
|
|
+ this.responseTime = responseTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Throwable getException() {
|
|
|
+ return exception;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setException(Throwable exception) {
|
|
|
+ this.exception = exception;
|
|
|
+ }
|
|
|
+}
|