|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.could.webdav.DAVUtilities
A collection of static utilities.
| Field Summary | |
static String |
SERVLET_INFORMATION
The information detail of this package usable from a servlet. |
static String |
SERVLET_SIGNATURE
The signature of this package usable from a servlet. |
| Method Summary | |
static String |
formatHttpDate(Date date)
Format a Date according to the HTTP/1.1 RFC. |
static String |
formatIsoDate(Date date)
Format a Date according to the ISO 8601 specification. |
static String |
formatNumber(Number number)
Format a Number into a String making sure that
NullPointerExceptions are not thrown. |
static String |
getMimeType(String name)
Return the MIME Type configured for a given resource. |
static String |
getProperty(String name)
Return the value of a property configured for this package. |
static String |
getStatusMessage(int status)
Return a String message given an HTTP status code. |
static Date |
parseHttpDate(String string)
Parse a String into a Date according to the
HTTP/1.1 RFC (Mon, 31 Jan 2000 11:59:00 GMT). |
static Date |
parseIsoDate(String string)
Parse a String into a Date according to the ISO 8601
specification (2000-12-31T11:59:00Z). |
static Long |
parseNumber(String string)
Parse a String into a Long. |
static String |
toHexString(byte number)
Return the HEX representation of a byte. |
static String |
toHexString(byte[] buffer)
Return the HEX representation of an array of bytes. |
static String |
toHexString(char number)
Return the HEX representation of a char. |
static String |
toHexString(int number)
Return the HEX representation of an integer. |
static String |
toHexString(long number)
Return the HEX representation of a long integer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String SERVLET_SIGNATURE
The signature of this package usable from a servlet.
public static final String SERVLET_INFORMATION
The information detail of this package usable from a servlet.
| Method Detail |
public static String getProperty(String name)
Return the value of a property configured for this package.
name - the property name
String instance or null if unknown.public static String getMimeType(String name)
Return the MIME Type configured for a given resource.
name - the resource name whose MIME Type needs to be looked up.
String instance or null if the type is unknown.public static String getStatusMessage(int status)
Return a String message given an HTTP status code.
public static String formatNumber(Number number)
Format a Number into a String making sure that
NullPointerExceptions are not thrown.
number - the Number to format.
String instance or null if the object was null.public static Long parseNumber(String string)
string - the String to parse.
Long instance or null if the date was null or
if there was an error parsing the specified String.public static String formatHttpDate(Date date)
Format a Date according to the HTTP/1.1 RFC.
date - the Date to format.
String instance or null if the date was null.public static String formatIsoDate(Date date)
Format a Date according to the ISO 8601 specification.
date - the Date to format.
String instance or null if the date was null.public static Date parseHttpDate(String string)
Parse a String into a Date according to the
HTTP/1.1 RFC (Mon, 31 Jan 2000 11:59:00 GMT).
string - the String to parse.
Date instance or null if the date was null or
if there was an error parsing the specified String.public static Date parseIsoDate(String string)
Parse a String into a Date according to the ISO 8601
specification (2000-12-31T11:59:00Z).
string - the String to parse.
Date instance or null if the date was null or
if there was an error parsing the specified String.public static String toHexString(byte[] buffer)
Return the HEX representation of an array of bytes.
buffer - the array of bytes to convert in a HEX String.
String instance.public static String toHexString(long number)
Return the HEX representation of a long integer.
number - the long to convert in a HEX String.
String instance.public static String toHexString(int number)
Return the HEX representation of an integer.
number - the int to convert in a HEX String.
String instance.public static String toHexString(char number)
Return the HEX representation of a char.
number - the char to convert in a HEX String.
String instance.public static String toHexString(byte number)
Return the HEX representation of a byte.
number - the byte to convert in a HEX String.
String instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||