com.sun.grizzly.util.http
Class HtmlHelper
java.lang.Object
com.sun.grizzly.util.http.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 |
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,
String serverName)
throws IOException
- Return a defauk error page.
- Returns:
- A
ByteBuffer
containings the HTTP response.
- Throws:
IOException
Copyright © 2012 Oracle Corporation. All Rights Reserved.