Package org.forgerock.http.header
Class Warning
- java.lang.Object
-
- org.forgerock.http.header.Warning
-
public class Warning extends Object
WarningHeader
entry. This class is immutable and thread-safe.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getAgent()
Gets the warning's agent name.int
getCode()
Gets the warning's three digit code.Date
getDate()
Gets the warning's date.String
getText()
Gets the warning's text description.int
hashCode()
String
toString()
Formats aWarning
header value, according to RFC 2616 14.46.static Warning
valueOf(String value)
Parses a warning-header value (part afterWarning:
).
-
-
-
Method Detail
-
getCode
public int getCode()
Gets the warning's three digit code.- Returns:
- Three digit code
-
getAgent
public String getAgent()
Gets the warning's agent name.- Returns:
- Name or
host[:port]
of the server adding the header
-
getText
public String getText()
Gets the warning's text description.- Returns:
- Text
-
-