Index
All Classes and Interfaces|All Packages|Serialized Form
C
- CauseTag - Class in net.thauvin.erik.httpstatus.taglibs
-
Outputs the cause (if any) of the current HTTP status error.
- CauseTag() - Constructor for class net.thauvin.erik.httpstatus.taglibs.CauseTag
- CLIENT_ERROR - Enum constant in enum class net.thauvin.erik.httpstatus.StatusCodeClass
-
Status codes starting with
4. - CodeTag - Class in net.thauvin.erik.httpstatus.taglibs
-
Outputs the HTTP status code associated with the current error being processed by the JSP container.
- CodeTag() - Constructor for class net.thauvin.erik.httpstatus.taglibs.CodeTag
D
- defaultValue - Variable in class net.thauvin.erik.httpstatus.taglibs.XmlSupport
-
The default value to use when the tag produces no output.
- doTag() - Method in class net.thauvin.erik.httpstatus.taglibs.CauseTag
-
Writes the localized message of the cause associated with the current HTTP status error.
- doTag() - Method in class net.thauvin.erik.httpstatus.taglibs.CodeTag
-
Writes the HTTP status code to the current output stream.
- doTag() - Method in class net.thauvin.erik.httpstatus.taglibs.MessageTag
-
Writes the error message associated with the current request.
- doTag() - Method in class net.thauvin.erik.httpstatus.taglibs.ReasonTag
-
Writes the Reason Phrase for the current or specified HTTP status code.
E
- escapeXml - Variable in class net.thauvin.erik.httpstatus.taglibs.XmlSupport
-
Whether XML escaping is enabled.
- escapeXml(String) - Static method in class net.thauvin.erik.httpstatus.Utils
-
Converts the characters
<,>,&,', and"to their corresponding XML entity codes.
F
- fromFirstDigit(int) - Static method in enum class net.thauvin.erik.httpstatus.StatusCodeClass
-
Returns the classification corresponding to the given first digit.
G
- getCause(Throwable) - Method in class net.thauvin.erik.httpstatus.taglibs.CauseTag
-
Returns the localized message of the given cause, or
nullif no cause or message is available. - getCode() - Method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns the stored status code.
- getFirstDigit() - Method in enum class net.thauvin.erik.httpstatus.StatusCodeClass
-
Returns the first digit representing this HTTP status code class.
- getReason() - Method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns the reason phrase for the stored status code, or
nullif no reason is defined. - getReason(int) - Static method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns the reason phrase for the given status code, or
nullif no reason is defined. - getReasonClass(StatusCodeClass) - Static method in class net.thauvin.erik.httpstatus.Reasons
-
Returns all reason phrases belonging to the given status code class.
- getReasonPhrase(Object) - Static method in class net.thauvin.erik.httpstatus.Reasons
-
Returns the reason phrase for the given status code, or null if none exists.
- getReasonPhrase(Object, String) - Static method in class net.thauvin.erik.httpstatus.Reasons
-
Returns the reason phrase for the given status code, or the provided default value if no phrase is defined.
I
- INFORMATIONAL - Enum constant in enum class net.thauvin.erik.httpstatus.StatusCodeClass
-
Status codes starting with
1. - isClientError() - Method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the stored code represents a client error (4xx). - isClientError(int) - Static method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the code represents a client error (4xx). - isError() - Method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the stored code represents any error (4xx or 5xx). - isError(int) - Static method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the code represents any error (4xx or 5xx). - isInfo() - Method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the stored code represents an informational response (1xx). - isInfo(int) - Static method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the code represents an informational response (1xx). - isInformational() - Method in class net.thauvin.erik.httpstatus.StatusCode
-
Alias for
StatusCode.isInfo(). - isInformational(int) - Static method in class net.thauvin.erik.httpstatus.StatusCode
-
Alias for
StatusCode.isInfo(int). - isRedirect() - Method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the stored code represents a redirect (3xx). - isRedirect(int) - Static method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the code represents a redirect (3xx). - isServerError() - Method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the stored code represents a server error (5xx). - isServerError(int) - Static method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the code represents a server error (5xx). - isSuccess() - Method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the stored code represents a successful response (2xx). - isSuccess(int) - Static method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the code represents a successful response (2xx). - isSuccessful() - Method in class net.thauvin.erik.httpstatus.StatusCode
-
Alias for
StatusCode.isSuccess(). - isSuccessful(int) - Static method in class net.thauvin.erik.httpstatus.StatusCode
-
Alias for
StatusCode.isSuccess(int). - isValid() - Method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the stored code is a valid HTTP status code. - isValid(int) - Static method in class net.thauvin.erik.httpstatus.StatusCode
-
Returns
trueif the code is a valid HTTP status code.
M
- main(String...) - Static method in class net.thauvin.erik.httpstatus.Reasons
-
Prints reason phrases for the given status code(s) or status code class(es).
- MessageTag - Class in net.thauvin.erik.httpstatus.taglibs
-
Outputs the error message associated with the current HTTP status error.
- MessageTag() - Constructor for class net.thauvin.erik.httpstatus.taglibs.MessageTag
N
- net.thauvin.erik.httpstatus - package net.thauvin.erik.httpstatus
-
A simple library to search for and display information about HTTP status codes.
- net.thauvin.erik.httpstatus.taglibs - package net.thauvin.erik.httpstatus.taglibs
-
This package contains the JSP tags used to display the code, reason and/or cause for HTTP status codes.
O
- outWrite(Writer, String, String, boolean) - Static method in class net.thauvin.erik.httpstatus.Utils
-
Writes a string value to the given writer, optionally escaping XML characters.
R
- Reasons - Class in net.thauvin.erik.httpstatus
-
Loads HTTP status reason phrases from the resource bundle and provides lookup utilities for individual status codes and status code classes.
- ReasonTag - Class in net.thauvin.erik.httpstatus.taglibs
-
Outputs the HTTP status Reason Phrase for either the explicitly supplied status code or, when none is provided, the status code associated with the current error being processed by the JSP container.
- ReasonTag() - Constructor for class net.thauvin.erik.httpstatus.taglibs.ReasonTag
- REDIRECTION - Enum constant in enum class net.thauvin.erik.httpstatus.StatusCodeClass
-
Status codes starting with
3.
S
- SERVER_ERROR - Enum constant in enum class net.thauvin.erik.httpstatus.StatusCodeClass
-
Status codes starting with
5. - setCode(int) - Method in class net.thauvin.erik.httpstatus.StatusCode
-
Sets the stored status code.
- setCode(int) - Method in class net.thauvin.erik.httpstatus.taglibs.ReasonTag
-
Sets the HTTP status code to be used when resolving the Reason Phrase.
- setDefault(String) - Method in class net.thauvin.erik.httpstatus.taglibs.XmlSupport
-
Sets the default value used when the tag produces no output.
- setEscapeXml(boolean) - Method in class net.thauvin.erik.httpstatus.taglibs.XmlSupport
-
Enables or disables XML escaping for the tag output.
- StatusCode - Class in net.thauvin.erik.httpstatus
-
Represents an HTTP status code and provides convenience methods for determining its classification (informational, success, redirect, client error, server error, or project-defined extension codes).
- StatusCode() - Constructor for class net.thauvin.erik.httpstatus.StatusCode
-
Creates a new StatusCode with no initial value.
- StatusCode(int) - Constructor for class net.thauvin.erik.httpstatus.StatusCode
-
Creates a new StatusCode with the given value.
- StatusCodeClass - Enum Class in net.thauvin.erik.httpstatus
-
Represents the classification of HTTP status codes based on their first digit.
- SUCCESSFUL - Enum constant in enum class net.thauvin.erik.httpstatus.StatusCodeClass
-
Status codes starting with
2.
U
- Utils - Class in net.thauvin.erik.httpstatus
-
A collection of utility methods used throughout the project.
V
- valueOf(String) - Static method in enum class net.thauvin.erik.httpstatus.StatusCodeClass
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class net.thauvin.erik.httpstatus.StatusCodeClass
-
Returns an array containing the constants of this enum class, in the order they are declared.
X
- XmlSupport - Class in net.thauvin.erik.httpstatus.taglibs
-
Base class providing support for the
defaultandescapeXmlattributes shared by several tags in the HttpStatus tag library. - XmlSupport() - Constructor for class net.thauvin.erik.httpstatus.taglibs.XmlSupport
All Classes and Interfaces|All Packages|Serialized Form