日志检索->国家代理->HTTP(S) 修正界面无法显示原始请求体和原始应答体数据问题

(cherry picked from commit 859b3c72f9)
This commit is contained in:
李皓宸
2019-01-22 02:08:58 +00:00
committed by 王鑫
parent daac82f77a
commit 0756af0d6e
2 changed files with 22 additions and 15 deletions

View File

@@ -31,7 +31,7 @@ public class PxyHttpLog extends BaseLogEntity<NtcIpLog> {
@ExcelField(title="req_body",sort=78) @ExcelField(title="req_body",sort=78)
private String reqBody; private String reqBody;
@ExcelField(title="resp_body",sort=79) @ExcelField(title="resp_body",sort=79)
private String resBody; private String respBody;
@ExcelField(title="website",sort=8) @ExcelField(title="website",sort=8)
private String website; private String website;
@@ -115,23 +115,30 @@ public class PxyHttpLog extends BaseLogEntity<NtcIpLog> {
public void setReqBody(String reqBody) { public void setReqBody(String reqBody) {
this.reqBody = reqBody; this.reqBody = reqBody;
} }
public String getResBody() { public String getRespBody() {
return resBody; return respBody;
} }
public void setResBody(String resBody) { public void setRespBody(String respBody) {
this.resBody = resBody; this.respBody = respBody;
} }
@Override @Override
public String toString() { public String toString() {
return "{\"url\"=\"" + url + "\", \"reqLine\"=\"" + reqLine return "PxyHttpLog [url=" + url + ", reqLine=" + reqLine + ", resLine=" + resLine + ", cookie=" + cookie
+ "\", \"resLine\"=\"" + resLine + "\", \"cookie\"=\"" + cookie + ", referer=" + referer + ", userAgent=" + userAgent + ", contentLen=" + contentLen + ", contentType="
+ "\", \"referer\"=\"" + referer + "\", \"userAgent\"=\"" + contentType + ", setCookie=" + setCookie + ", reqHeader=" + reqHeader + ", respHeader=" + respHeader
+ userAgent + "\", \"contentLen\"=\"" + contentLen + ", reqBody=" + reqBody + ", respBody=" + respBody + ", website=" + website + ", cfgId=" + cfgId
+ "\", \"contentType\"=\"" + contentType + ", foundTime=" + foundTime + ", recvTime=" + recvTime + ", transProto=" + transProto + ", addrType="
+ "\", \"setCookie\"=\"" + setCookie + "\", \"reqHeader\"=\"" + addrType + ", dIp=" + dIp + ", sIp=" + sIp + ", dPort=" + dPort + ", sPort=" + sPort + ", service="
+ reqHeader + "\", \"respHeader\"=\"" + respHeader + service + ", entranceId=" + entranceId + ", deviceId=" + deviceId + ", direction=" + direction
+ "\", \"reqBody\"=\"" + reqBody + "\", \"resBody\"=\"" + ", streamDir=" + streamDir + ", capIp=" + capIp + ", addrList=" + addrList + ", serverLocate="
+ resBody + "\"}"; + serverLocate + ", clientLocate=" + clientLocate + ", sAsn=" + sAsn + ", dAsn=" + dAsn
+ ", sSubscribeId=" + sSubscribeId + ", dSubscribeId=" + dSubscribeId + ", sceneFile=" + sceneFile
+ ", functionId=" + functionId + ", action=" + action + ", date=" + date + ", seltype=" + seltype
+ ", searchFoundStartTime=" + searchFoundStartTime + ", searchFoundEndTime=" + searchFoundEndTime
+ ", isLogTotalSearch=" + isLogTotalSearch + ", orderBy=" + orderBy + ", encapType=" + encapType
+ ", linkId=" + linkId + ", innerSmac=" + innerSmac + ", innerDmac=" + innerDmac + ", id=" + id
+ ", currentUser=" + currentUser + ", page=" + page + ", pageLog=" + pageLog + ", sqlMap=" + sqlMap
+ ", isNewRecord=" + isNewRecord + ", isFilterAction=" + isFilterAction + "]";
} }
} }

View File

@@ -409,7 +409,7 @@
<%-- <td>${log.userRegion}</td> --%> <%-- <td>${log.userRegion}</td> --%>
<c:if test="${fns:getUser().isAdmin()}"><td>${log.sceneFile}</td></c:if> <c:if test="${fns:getUser().isAdmin()}"><td>${log.sceneFile}</td></c:if>
<td>${log.reqBody}</td> <td>${log.reqBody}</td>
<td>${log.resBody}</td> <td>${log.respBody}</td>
</tr> </tr>
</c:forEach> </c:forEach>
</tbody> </tbody>