Package org.restlet.data
Class Warning
java.lang.Object
org.restlet.data.Warning
Additional information about the status or transformation of a request or
response. This is typically used to warn about a possible issues with caching
operations or transformations applied to the entity body.
Note that when used with HTTP connectors, this class maps to the "Warning" header.
Note that when used with HTTP connectors, this class maps to the "Warning" header.
- Author:
- Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Warning
public Warning()Constructor.
-
-
Method Details
-
getAgent
Returns the agent. Typically a caching agent.- Returns:
- The agent. Typically a caching agent.
-
getDate
Returns the warning date.- Returns:
- The warning date.
-
getStatus
Returns the special status.- Returns:
- The special status.
-
getText
Returns the warning text.- Returns:
- The warning text.
-
setAgent
Sets the agent. Typically a caching agent.- Parameters:
agent- The agent. Typically a caching agent.
-
setDate
Sets the warning date.- Parameters:
date- The warning date.
-
setStatus
Sets the special status.- Parameters:
status- The special status.
-
setText
Sets the warning text.- Parameters:
text- The warning text.
-