org.glassfish.grizzly.http.server.util
Class HtmlHelper

java.lang.Object
  extended by org.glassfish.grizzly.http.server.util.HtmlHelper

public class HtmlHelper
extends Object

Utility class used to generate HTML pages.

Author:
Jean-Francois Arcand

Constructor Summary
HtmlHelper()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlHelper

public HtmlHelper()
Method Detail

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.