com.sun.grizzly.http
Class HtmlHelper

java.lang.Object
  extended by com.sun.grizzly.http.HtmlHelper

public class HtmlHelper
extends Object

Utility class used to generate HTML pages.

Author:
Jean-Francois Arcand

Field Summary
static String BAD_REQUEST
          HTTP Bas Request
static String OK
          HTTP OK header
 
Constructor Summary
HtmlHelper()
           
 
Method Summary
static ByteBuffer getErrorPage(String message, String code)
          When Grizzlu has reached its connection-queue pool limits, an HTML error pages will to be returned to the clients.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

public static final String OK
HTTP OK header


BAD_REQUEST

public static final String BAD_REQUEST
HTTP Bas Request

Constructor Detail

HtmlHelper

public HtmlHelper()
Method Detail

getErrorPage

public static ByteBuffer getErrorPage(String message,
                                      String code)
                               throws IOException
When Grizzlu has reached its connection-queue pool limits, an HTML error pages will to be returned to the clients.

Returns:
A ByteBuffer containings the HTTP response.
Throws:
IOException


Copyright © 2011 SUN Microsystems. All Rights Reserved.