public class Warning extends Object
WarningHeader entry. This class is immutable and thread-safe.| Constructor and Description |
|---|
Warning(int code,
String agent,
String text)
Creates a new instance without optional date.
|
Warning(int code,
String agent,
String text,
Date date)
Creates a new instance with optional date.
|
| Modifier and Type | Method and 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 a
Warning header value, according to
RFC 2616 14.46. |
static Warning |
valueOf(String value)
Parses a warning-header value (part after
Warning:). |
public Warning(int code,
String agent,
String text)
code - Three digit codeagent - Name or host[:port] of the server adding the headertext - Textpublic int getCode()
public String getAgent()
host[:port] of the server adding the headerpublic String getText()
Copyright © 2025 Open Identity Platform Community. All rights reserved.