Package org.forgerock.http.header
Class Warning
- java.lang.Object
-
- org.forgerock.http.header.Warning
-
public class Warning extends Object
WarningHeaderentry. This class is immutable and thread-safe.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAgent()Gets the warning's agent name.intgetCode()Gets the warning's three digit code.DategetDate()Gets the warning's date.StringgetText()Gets the warning's text description.inthashCode()StringtoString()Formats aWarningheader value, according to RFC 2616 14.46.static WarningvalueOf(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
-
-