## org.w3c.www.http
Class HttpWarning

    java.lang.Object
      |
      +--org.w3c.www.http.BasicValue
            |
            +--org.w3c.www.http.HttpWarning

public class HttpWarning
extends BasicValue

Field Summary
`protected java.lang.String` | `agent`
`static int` | `DISCONNECTED_OPERATION` Warning status - Disconnected opertaion.
`static int` | `HEURISTIC_EXPIRATION` Warning status - Heuristic expiration.
`protected HttpWarningList` | `list`
`static int` | `MISCELLANEOUS` Warning status - Miscellaneous warning
`static int` | `PERSISTENT_MISCELLANEOUS` Warning status - Miscellaneous warning
`static int` | `REVALIDATION_FAILED` Warning status - Revalidation failed.
`static int` | `STALE` Warning status - Response is stale.
`protected int` | `status`
`protected java.lang.String` | `text`
`static int` | `TRANSFORMATION_APPLIED` Warning status - Transformation applied.

Fields inherited from class org.w3c.www.http.BasicValue
`isValid, raw, rlen, roff`

Constructor Summary
`HttpWarning()`

Method Summary
`java.lang.String` | `getAgent()` Get this warning agent.
`int` | `getStatus()` Get this warning status code.
`java.lang.String` | `getText()` Get the warning text message.
`java.lang.Object` | `getValue()`
`protected void` | `invalidateByteValue()`
`protected void` | `parse()` parse.
`void` | `setAgent(java.lang.String agent)` Set the agent that is generating the warning.
`void` | `setStatus(int status)` Set this warning status code.
`void` | `setText(java.lang.String text)` Set the text warning message.
`protected void` | `updateByteValue()`

Methods inherited from class org.w3c.www.http.BasicValue
`addBytes, appendValue, checkByteValue, emit, error, setBytes, setString, toExternalForm, toString, validate`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### STALE

    public static final int STALE

  Warning status - Response is stale.

### REVALIDATION_FAILED

    public static final int REVALIDATION_FAILED

  Warning status - Revalidation failed.

### DISCONNECTED_OPERATION

    public static final int DISCONNECTED_OPERATION

  Warning status - Disconnected opertaion.

### HEURISTIC_EXPIRATION

    public static final int HEURISTIC_EXPIRATION

  Warning status - Heuristic expiration.

### MISCELLANEOUS

    public static final int MISCELLANEOUS

  Warning status - Miscellaneous warning

### TRANSFORMATION_APPLIED

    public static final int TRANSFORMATION_APPLIED

  Warning status - Transformation applied.

### PERSISTENT_MISCELLANEOUS

    public static final int PERSISTENT_MISCELLANEOUS

  Warning status - Miscellaneous warning

### list

    protected HttpWarningList list

### status

    protected int status

### agent

    protected java.lang.String agent

### text

    protected java.lang.String text

Constructor Detail

### HttpWarning

    public HttpWarning()

Method Detail

### parse

    protected void parse()
                  throws HttpParserException

  parse.
  Throws:
    HttpParserException - if parsing failed.
  Overrides:
    parse in class BasicValue

### updateByteValue

    protected void updateByteValue()

  Overrides:
    updateByteValue in class BasicValue

### invalidateByteValue

    protected void invalidateByteValue()

  Overrides:
    invalidateByteValue in class BasicValue

### getValue

    public java.lang.Object getValue()

  Overrides:
    getValue in class BasicValue

### getStatus

    public int getStatus()

  Get this warning status code.
  Returns:
    An integer giving the warning status code.

### setStatus

    public void setStatus(int status)

  Set this warning status code.
  Parameters:
    `status` - The status code for this warning.

### getAgent

    public java.lang.String getAgent()

  Get this warning agent.
  Returns:
    A String encoding the agent that generated the warning.

### setAgent

    public void setAgent(java.lang.String agent)

  Set the agent that is generating the warning.
  Parameters:
    `agent` - The String describing the agent emitting the warning.

### getText

    public java.lang.String getText()

  Get the warning text message.
  Returns:
    A String encoding the text message.

### setText

    public void setText(java.lang.String text)

  Set the text warning message.
  Parameters:
    `text` - The new text of the warning message.