com.sun.grizzly.http
Class HtmlHelper
java.lang.Object
com.sun.grizzly.http.HtmlHelper
public class HtmlHelper
- extends Object
Utility class used to generate HTML pages.
- Author:
- Jean-Francois Arcand
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 |
OK
public static final String OK
- HTTP OK header
BAD_REQUEST
public static final String BAD_REQUEST
- HTTP Bas Request
HtmlHelper
public HtmlHelper()
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 © 2010 SUN Microsystems. All Rights Reserved.