|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weborganic.berlioz.http.HttpStatusCodes
public final class HttpStatusCodes
A utility class for HTTP Status codes.
Method Summary | |
---|---|
static String |
getClassOfStatus(int code)
Returns the class of the HTTP status code based on the class defined in the RFC. |
static String |
getTitle(int code)
Returns the title for the specified code based on the name defined in the RFC. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getTitle(int code)
code
- the HTTP status code.
null
if the code does not exist.public static String getClassOfStatus(int code)
Will return for range:
"Informational"
"Successful"
"Redirection"
"Client Error"
"Server Error"
code
- the HTTP status code.
null
if code is out of range (less than 100 or greater than 599)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |