From d1f26741bddf6f512d62c0100d42c52be8d37e76 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 06 二月 2021 15:35:40 +0800 Subject: [PATCH] 工具类优化 --- utils/src/main/java/org/yeshi/utils/statistic/http/HttpRequestInfo.java | 153 ++++++++++++++++++++++++++++---------------------- 1 files changed, 86 insertions(+), 67 deletions(-) diff --git a/utils/src/main/java/org/yeshi/utils/statistic/http/HttpRequestInfo.java b/utils/src/main/java/org/yeshi/utils/statistic/http/HttpRequestInfo.java index e117cf1..8bad051 100644 --- a/utils/src/main/java/org/yeshi/utils/statistic/http/HttpRequestInfo.java +++ b/utils/src/main/java/org/yeshi/utils/statistic/http/HttpRequestInfo.java @@ -1,67 +1,86 @@ -package org.yeshi.utils.statistic.http; - -import java.util.Map; - -/** - * http璇锋眰淇℃伅 - * - * @author Administrator - * - */ -public class HttpRequestInfo { - private String url; - private String method; - private String protocal; - private int stateCode; - private int time; - private Map<String, Object> params; - - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public String getMethod() { - return method; - } - - public void setMethod(String method) { - this.method = method; - } - - public String getProtocal() { - return protocal; - } - - public void setProtocal(String protocal) { - this.protocal = protocal; - } - - public int getStateCode() { - return stateCode; - } - - public void setStateCode(int stateCode) { - this.stateCode = stateCode; - } - - public int getTime() { - return time; - } - - public void setTime(int time) { - this.time = time; - } - - public Map<String, Object> getParams() { - return params; - } - - public void setParams(Map<String, Object> params) { - this.params = params; - } - -} +package org.yeshi.utils.statistic.http; + +import java.util.Date; +import java.util.Map; + +/** + * http璇锋眰淇℃伅 + * + * @author Administrator + * + */ +public class HttpRequestInfo { + private String url; + private String method; + private String protocal; + private int stateCode; + private int time; + private Map<String, Object> params; + private Date date; + private String ip; + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public Date getDate() { + return date; + } + + public void setDate(Date date) { + this.date = date; + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + public String getProtocal() { + return protocal; + } + + public void setProtocal(String protocal) { + this.protocal = protocal; + } + + public int getStateCode() { + return stateCode; + } + + public void setStateCode(int stateCode) { + this.stateCode = stateCode; + } + + public int getTime() { + return time; + } + + public void setTime(int time) { + this.time = time; + } + + public Map<String, Object> getParams() { + return params; + } + + public void setParams(Map<String, Object> params) { + this.params = params; + } + +} -- Gitblit v1.8.0