@Override public String getComment() { return actual.getComment(); }
reqsDet.append("Port:").append(singleMsg.getHttpService().getPort()).append(System.getProperty("line.separator")); reqsDet.append("Protocol:").append(singleMsg.getHttpService().getProtocol()).append(System.getProperty("line.separator")); reqsDet.append("Comment:").append(singleMsg.getComment()).append(System.getProperty("line.separator")); if (exportRequests) { reqsDet.append("HTTP Request:").append(System.getProperty("line.separator")).append(xstream.toXML(AMFUtil.extractAM(singleMsg.getRequest(), manager.getStdOut(), manager.getStdErr())).replaceAll("\n", System.getProperty("line.separator"))).append(System.getProperty("line.separator"));
private void markRequestResponse(IHttpRequestResponse httpRequestResponse, String message, String colour) { if(UIOptions.isHighlighted()){ httpRequestResponse.setHighlight(colour); } final String oldComment = httpRequestResponse.getComment(); if (oldComment != null && !oldComment.isEmpty()) { httpRequestResponse.setComment(String.format("%s, %s", oldComment, message)); } else { httpRequestResponse.setComment(message); } Logging.getInstance().log(getClass(), message, Logging.DEBUG); } }
byte[] request = originalRequestResponse.getRequest(); byte[] response = originalRequestResponse.getResponse(); String comment = originalRequestResponse.getComment(); String highlight = originalRequestResponse.getHighlight(); IHttpService httpService = originalRequestResponse.getHttpService();