org.glassfish.grizzly.http.util
Class Utils
java.lang.Object
org.glassfish.grizzly.http.util.Utils
public class Utils
- extends Object
Utility class.
- Author:
- Alexey Stashok
|
Constructor Summary |
Utils()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
getHttpStatusMessage
public static Buffer getHttpStatusMessage(int httpStatus)
- Parameters:
httpStatus - HTTP status code
- Returns:
- the standard HTTP message associated with the specified
status code. If there is no message for the specified
httpStatus,
null shall be returned.
getHttpStatus
public static Buffer getHttpStatus(int httpStatus)
- Parameters:
httpStatus - HTTP status code
- Returns:
Buffer representation of the status.
longToBuffer
public static void longToBuffer(long value,
Buffer buffer)
- Converts the specified long as a string representation to the provided
buffer.
This code is based off
Long.toString()
- Parameters:
value - the long to convert.buffer - the buffer to write the conversion result to.
Copyright © 2010 Oracle Corpration. All Rights Reserved.