src/main/java/js/servlet/RequestContext.java
public void dump() {
		if (!attached) {
			return;
		}
		StringBuilder message = new StringBuilder();
		message.append("Request context |");
		message.append(httpRequest.getRequestURI());
		message.append("|:");

		message.append(System.lineSeparator());
		message.append("\t- remote-address: ");
		message.append(httpRequest.getRemoteHost());

		message.append(System.lineSeparator());
		message.append("\t- method: ");
		message.append(httpRequest.getMethod());

		message.append(System.lineSeparator());
		message.append("\t- query-string: ");
		if (httpRequest.getQueryString() != null) {
			message.append(httpRequest.getQueryString());
		}

		Enumeration<String> headerNames = httpRequest.getHeaderNames();
		while (headerNames.hasMoreElements()) {
			message.append(System.lineSeparator());
			String headerName = headerNames.nextElement();
			message.append("\t- ");
			message.append(headerName);
			message.append(": ");
			message.append(httpRequest.getHeader(headerName));
		}
		log.error(message.toString());
	}
public void dump() {
		if (!attached) {
			return;
		}
		StringBuilder message = new StringBuilder();
		message.append("Request context |");
		message.append(httpRequest.getRequestURI());
		message.append("|:");

		message.append(System.lineSeparator());
		message.append("\t- remote-address: ");
		message.append(httpRequest.getRemoteHost());

		message.append(System.lineSeparator());
		message.append("\t- method: ");
		message.append(httpRequest.getMethod());

		message.append(System.lineSeparator());
		message.append("\t- query-string: ");
		if (httpRequest.getQueryString() != null) {
			message.append(httpRequest.getQueryString());
		}

		Enumeration<String> headerNames = httpRequest.getHeaderNames();
		while (headerNames.hasMoreElements()) {
			message.append(System.lineSeparator());
			String headerName = headerNames.nextElement();
			message.append("\t- ");
			message.append(headerName);
			message.append(": ");
			message.append(httpRequest.getHeader(headerName));
		}
		log.error(message.toString());
	}
public void dump ( ) { if ( ! attached ) { return ; } StringBuilder message = new StringBuilder ( ) ; message . append ( "Request context |" ) ; message . append ( httpRequest . getRequestURI ( ) ) ; message . append ( "|:" ) ; message . append ( System . lineSeparator ( ) ) ; message . append ( "\t- remote-address: " ) ; message . append ( httpRequest . getRemoteHost ( ) ) ; message . append ( System . lineSeparator ( ) ) ; message . append ( "\t- method: " ) ; message . append ( httpRequest . getMethod ( ) ) ; message . append ( System . lineSeparator ( ) ) ; message . append ( "\t- query-string: " ) ; if ( httpRequest . getQueryString ( ) != null ) { message . append ( httpRequest . getQueryString ( ) ) ; } Enumeration < String > headerNames = httpRequest . getHeaderNames ( ) ; while ( headerNames . hasMoreElements ( ) ) { message . append ( System . lineSeparator ( ) ) ; String headerName = headerNames . nextElement ( ) ; message . append ( "\t- " ) ; message . append ( headerName ) ; message . append ( ": " ) ; message . append ( httpRequest . getHeader ( headerName ) ) ; } log . error ( message . toString ( ) ) ; }
Dump this request context state to error logger. If this instance is not attached this method is NOP.
Dump this request context state to error logger . If this instance is not attached this method is NOP .