|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.www.http.BasicValue org.w3c.www.http.HttpWarning
public class HttpWarning
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()
HeaderValue implemenntation - Get this header value. |
protected void |
invalidateByteValue()
Invalidate the current byte value for this header, if any. |
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()
Update the RFC822 compatible header value for this object. |
Methods inherited from class org.w3c.www.http.BasicValue |
---|
addBytes, appendValue, checkByteValue, clone, emit, error, setBytes, setString, toExternalForm, toString, validate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STALE
public static final int REVALIDATION_FAILED
public static final int DISCONNECTED_OPERATION
public static final int HEURISTIC_EXPIRATION
public static final int MISCELLANEOUS
public static final int TRANSFORMATION_APPLIED
public static final int PERSISTENT_MISCELLANEOUS
protected HttpWarningList list
protected int status
protected java.lang.String agent
protected java.lang.String text
Constructor Detail |
---|
public HttpWarning()
Method Detail |
---|
protected void parse() throws HttpParserException
parse
in class BasicValue
HttpParserException
- if parsing failed.protected void updateByteValue()
BasicValue
updateByteValue
in class BasicValue
protected void invalidateByteValue()
BasicValue
invalidateByteValue
in class BasicValue
public java.lang.Object getValue()
BasicValue
getValue
in interface HeaderValue
getValue
in class BasicValue
public int getStatus()
public void setStatus(int status)
status
- The status code for this warning.public java.lang.String getAgent()
public void setAgent(java.lang.String agent)
agent
- The String describing the agent emitting the warning.public java.lang.String getText()
public void setText(java.lang.String text)
text
- The new text of the warning message.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |