Package org.restlet.data
Class Warning
- java.lang.Object
- 
- org.restlet.data.Warning
 
- 
 public class Warning extends java.lang.ObjectAdditional 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.- Author:
- Jerome Louvel
 
- 
- 
Constructor SummaryConstructors Constructor Description Warning()Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAgent()Returns the agent.java.util.DategetDate()Returns the warning date.StatusgetStatus()Returns the special status.java.lang.StringgetText()Returns the warning text.voidsetAgent(java.lang.String agent)Sets the agent.voidsetDate(java.util.Date date)Sets the warning date.voidsetStatus(Status status)Sets the special status.voidsetText(java.lang.String text)Sets the warning text.
 
- 
- 
- 
Method Detail- 
getAgentpublic java.lang.String getAgent() Returns the agent. Typically a caching agent.- Returns:
- The agent. Typically a caching agent.
 
 - 
getDatepublic java.util.Date getDate() Returns the warning date.- Returns:
- The warning date.
 
 - 
getStatuspublic Status getStatus() Returns the special status.- Returns:
- The special status.
 
 - 
getTextpublic java.lang.String getText() Returns the warning text.- Returns:
- The warning text.
 
 - 
setAgentpublic void setAgent(java.lang.String agent) Sets the agent. Typically a caching agent.- Parameters:
- agent- The agent. Typically a caching agent.
 
 - 
setDatepublic void setDate(java.util.Date date) Sets the warning date.- Parameters:
- date- The warning date.
 
 - 
setStatuspublic void setStatus(Status status) Sets the special status.- Parameters:
- status- The special status.
 
 - 
setTextpublic void setText(java.lang.String text) Sets the warning text.- Parameters:
- text- The warning text.
 
 
- 
 
-