MCPcopy Index your code
hub / github.com/XF-FS/APIKit / createApiDetailEntity

Method createApiDetailEntity

src/main/java/burp/PassiveScanner.java:117–122  ·  view source on GitHub ↗
(ApiEndpoint endpoint, IHttpRequestResponse response, ApiType apiType)

Source from the content-addressed store, hash-verified

115 }
116
117 private ApiDetailEntity createApiDetailEntity(ApiEndpoint endpoint, IHttpRequestResponse response, ApiType apiType) {
118 if (response.getResponse() != null && response.getResponse().length != 0) {
119 return new ApiDetailEntity(endpoint.getUrl(), BurpExtender.getHelpers().analyzeResponse(response.getResponse()).getStatusCode(), apiType.getApiTypeName(), String.valueOf(CommonUtils.isUnAuthResponse(response)), response, CommonUtils.getCurrentDateTime(), Integer.parseInt(CommonUtils.getContentLength(response)));
120 }
121 return new ApiDetailEntity(endpoint.getUrl(), 0, apiType.getApiTypeName(), "false", response, CommonUtils.getCurrentDateTime(), 0);
122 }
123
124 @Override
125 public List<IScanIssue> doActiveScan(IHttpRequestResponse httpRequestResponse, IScannerInsertionPoint insertionPoint) {

Callers 1

runMethod · 0.95

Calls 7

getHelpersMethod · 0.95
isUnAuthResponseMethod · 0.95
getCurrentDateTimeMethod · 0.95
getContentLengthMethod · 0.95
getApiTypeNameMethod · 0.65
getResponseMethod · 0.45
getUrlMethod · 0.45

Tested by

no test coverage detected