org.glassfish.grizzly.http.server.util
Class HtmlHelper
java.lang.Object
org.glassfish.grizzly.http.server.util.HtmlHelper
public class HtmlHelper
- extends Object
Utility class used to generate HTML pages.
- Author:
- Jean-Francois Arcand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlHelper
public HtmlHelper()
getErrorPage
public static ByteBuffer getErrorPage(String headerMessage,
String message,
String serverName)
throws IOException
- Returns:
- A
ByteBuffer containing the HTTP response.
- Throws:
IOException
getExceptionErrorPage
public static ByteBuffer getExceptionErrorPage(String message,
String serverName,
Throwable t)
throws IOException
- Throws:
IOException
writeTraceMessage
public static void writeTraceMessage(Request request,
Response response)
throws IOException
- Throws:
IOException
Copyright © 2012 Oracle Corporation. All Rights Reserved.