/** * * @param content The http message as bytes. * @return True if JSON is found in the message. */ private boolean isJSON(byte[] content) { IRequestInfo iri = helpers.analyzeRequest(content); return (iri.getContentType() == IRequestInfo.CONTENT_TYPE_JSON); }
if(isRequest){ IRequestInfo iri = helpers.analyzeRequest(content); if(iri.getContentType() == IRequestInfo.CONTENT_TYPE_JSON){ String body = (new String(content)).substring(iri.getBodyOffset()); String tmp_body = null;
String request_id = host + info.getContentType(); List<IParameter> params = info.getParameters(); String param_names = params.stream().map(IParameter::getName).collect(Collectors.toList()).toString();
if (IRequestInfo.CONTENT_TYPE_XML != reqInfo.getContentType()){ return issues;
private boolean isSAMLMessage(byte[] content) { IRequestInfo info = helpers.analyzeRequest(content); httpMethod = helpers.analyzeRequest(content).getMethod(); if (info.getContentType() == IRequestInfo.CONTENT_TYPE_XML) { isSOAPMessage = true; try { try { IRequestInfo requestInfo = helpers.analyzeRequest(content); isWSSUrlEncoded = requestInfo.getContentType() == IRequestInfo.CONTENT_TYPE_URL_ENCODED; isWSSMessage = true; IParameter parameter = helpers.getRequestParameter(content, "wresult");
if (IRequestInfo.CONTENT_TYPE_XML != reqInfo.getContentType()){ return issues;