com.sun.enterprise.web.connector.grizzly
Class HtmlHelper
java.lang.Object
com.sun.enterprise.web.connector.grizzly.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 © 2005-2015 Oracle Corporation. All Rights Reserved.