public class HttpUtils extends Object
Constructor and Description |
---|
HttpUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
composeContentType(String contentType,
String characterEncoding) |
static float |
convertQValueToFloat(Buffer buffer,
int startIdx,
int stopIdx) |
static float |
convertQValueToFloat(char[] chars,
int startIdx,
int stopIdx) |
static float |
convertQValueToFloat(DataChunk dc,
int startIdx,
int stopIdx) |
static float |
convertQValueToFloat(String string,
int startIdx,
int stopIdx) |
static String |
filter(String message)
Filter the specified message string for characters that are sensitive in HTML.
|
static void |
longToBuffer(long value,
Buffer buffer)
Converts the specified long as a string representation to the provided buffer.
|
static int |
longToBuffer(long value,
byte[] buffer)
Converts the specified long as a string representation to the provided byte buffer.
|
public static String composeContentType(String contentType, String characterEncoding)
public static float convertQValueToFloat(DataChunk dc, int startIdx, int stopIdx)
public static float convertQValueToFloat(Buffer buffer, int startIdx, int stopIdx)
public static float convertQValueToFloat(String string, int startIdx, int stopIdx)
public static float convertQValueToFloat(char[] chars, int startIdx, int stopIdx)
public static int longToBuffer(long value, byte[] buffer)
Long.toString()
value
- the long to convert.buffer
- the buffer to write the conversion result to.public static void longToBuffer(long value, Buffer buffer)
Long.toString()
value
- the long to convert.buffer
- the buffer to write the conversion result to.public static String filter(String message)
message
- The message string to be filteredCopyright © 2014 Oracle Corporation. All rights reserved.