public class HtmlHelper extends Object
Constructor and Description |
---|
HtmlHelper() |
Modifier and Type | Method and Description |
---|---|
static ByteBuffer |
getErrorPage(String headerMessage,
String message,
String serverName) |
static ByteBuffer |
getExceptionErrorPage(String message,
String serverName,
Throwable t) |
static void |
writeTraceMessage(Request request,
Response response) |
public static ByteBuffer getErrorPage(String headerMessage, String message, String serverName) throws IOException
ByteBuffer
containing the HTTP response.IOException
public static ByteBuffer getExceptionErrorPage(String message, String serverName, Throwable t) throws IOException
IOException
public static void writeTraceMessage(Request request, Response response) throws IOException
IOException
Copyright © 2013 Oracle Corporation. All Rights Reserved.