| java.lang.Object org.w3c.www.http.HttpMessage org.w3c.www.http.HttpEntityMessage org.w3c.www.http.HttpReplyMessage
All known Subclasses: org.w3c.jigsaw.http.Reply, org.w3c.www.protocol.http.Reply,
H_ACCEPT_RANGES | public static int H_ACCEPT_RANGES(Code) | | |
H_AGE | public static int H_AGE(Code) | | |
H_AUTHENTICATION_INFO | public static int H_AUTHENTICATION_INFO(Code) | | |
H_LOCATION | public static int H_LOCATION(Code) | | |
H_PROXY_AUTHENTICATE | public static int H_PROXY_AUTHENTICATE(Code) | | |
H_PUBLIC | public static int H_PUBLIC(Code) | | |
H_RETRY_AFTER | public static int H_RETRY_AFTER(Code) | | |
H_SERVER | public static int H_SERVER(Code) | | |
H_VARY | public static int H_VARY(Code) | | |
H_WARNING | public static int H_WARNING(Code) | | |
H_WWW_AUTHENTICATE | public static int H_WWW_AUTHENTICATE(Code) | | |
status | protected int status(Code) | | The status associated with this reply.
|
HttpReplyMessage | public HttpReplyMessage()(Code) | | |
addAuthenticationInfo | public void addAuthenticationInfo(String name, String value)(Code) | | Add the given parameter/value pair to the Authentication Info
header
Parameters: String - the name of the value Parameters: String - the value |
addWarning | public void addWarning(HttpWarning warning)(Code) | | Add a warning to this reply message.
Parameters: warning - The warning to add. |
checkMustRevalidate | public boolean checkMustRevalidate()(Code) | | Check the must-revalidate directive of the cache control
header.
A boolean true if set, falseotherwise. |
checkProxyRevalidate | public boolean checkProxyRevalidate()(Code) | | Check the proxy-revalidate directive of the cache control
header.
A boolean true if set, falseotherwise. |
checkPublic | public boolean checkPublic()(Code) | | Check the public directive of the cache control header.
A boolean true if set, falseotherwise. |
getAcceptRanges | public String[] getAcceptRanges()(Code) | | Get the list of accepted ranges.
The list of units in which range requests are accepted, encodedas an array of String, or null if undefined. |
getAge | public int getAge()(Code) | | Get the age of the attached entity.
An integer giving the age as a number of seconds, or -1 if undefined. |
getAuthenticationInfo | public HttpParamList getAuthenticationInfo()(Code) | | Get the Authentication Info (see digest auth) attached to this reply.
An instance of HttpParamList, or null ifundefined. |
getLocation | public String getLocation()(Code) | | Get the location of the reply.
The location header field keeps track of where to relocate clients
if needed.
The location encoded as a String. |
getPrivate | public String[] getPrivate()(Code) | | Get the private directive of the cache control header.
A list of fields (potentially empty) encoded as an array ofString (with 0 length if empty), or null ifundefined. |
getProxyAuthenticate | public HttpChallenge getProxyAuthenticate()(Code) | | Get the proxy authentication challenge from this reply.
An instance of HttpChallenge, or null if undefined. |
getPublic | public String[] getPublic()(Code) | | Get the list of publicly allowed methods on queried resource.
The list of methods, encoded as a String array, or null if undefined. |
getReason | public String getReason()(Code) | | Get the reason phrase for this reply.
A String encoded reason phrase. |
getServer | public String getServer()(Code) | | Get the description of the server that generated this reply.
A String giving the description, or nullif undefined. |
getStandardReason | public String getStandardReason(int status)(Code) | | Get the standard HTTP reason phrase for the given status code.
Parameters: status - The given status code. A String giving the standard reason phrase, ornull if the status doesn't match any knowned error. |
getStatus | public int getStatus()(Code) | | Get this reply status code.
An integer, giving the reply status code. |
getVary | public String[] getVary()(Code) | | Get the vary header value.
A list of field-names on which the negotiated resource vary,or a list containing only * (if varies on all headers),or null if undefined. |
getWWWAuthenticate | public HttpChallenge getWWWAuthenticate()(Code) | | Get the challenge attached to this reply.
An instance of HttpChallenge, or null ifundefined. |
getWarning | public HttpWarning[] getWarning()(Code) | | Get the list of warnings attached to this reply.
An array of HttpWarning, or null ifundefined. |
notifyBeginParsing | public boolean notifyBeginParsing(MimeParser parser) throws HttpParserException, IOException(Code) | | MimeHeaderHolder implementation - Begining of reply parsing.
If we can determine that this reply version number is less then
1.0, then we skip the header parsing by returning true
to the MIME parser.
Otherwise, we parse the status line, and return false
to make the MIME parser continue.
A boolean true if the MIME parser should stopparsing, false otherwise. exception: IOException - If some IO error occured while reading the stream. exception: HttpParserException - if parsing failed. |
setAcceptRanges | public void setAcceptRanges(String units)(Code) | | Set the list of units in which range requests are accepted.
Parameters: units - The list of units, encoded as a String array, ornull to reset the value. |
setAge | public void setAge(int age)(Code) | | Set the age of the attached entity.
Parameters: age - The age of the attached entity as a number of seconds,or null to reset the value. |
setAuthenticationInfo | public void setAuthenticationInfo(HttpParamList plist)(Code) | | Attach Authentication Info to this reply.
plist, the parameter list to be attached to the reply, ornull to reset the value. |
setLocation | public void setLocation(URL location)(Code) | | Set the location value of the reply.
Parameters: location - The location an URL instance, or nullto reset the value. |
setLocation | public void setLocation(String location)(Code) | | Set the location value of the reply.
Parameters: location - The location a String, or null to reset the value. |
setMustRevalidate | public void setMustRevalidate(boolean onoff)(Code) | | Set the must-revalidate cache control directive.
Parameters: onoff - Set it on or off. |
setProxyAuthenticate | public void setProxyAuthenticate(HttpChallenge challenge)(Code) | | Set thye proxy authentication challenge on this reply.
Parameters: challenge - The challenge to set, or nullto reset the value. |
setProxyRevalidate | public void setProxyRevalidate(boolean onoff)(Code) | | Set the proxy-revalidate cache control directive.
Parameters: onoff - Set it on or off. |
setPublic | public void setPublic(boolean onoff)(Code) | | Set the public cache control directive.
Parameters: onoff - Set it on or off. |
setPublic | public void setPublic(String mth)(Code) | | Set the list of allowed method on queried resource.
Parameters: mth - The list of public methods, encoded as a String array, ornull to reset the value. |
setReason | public void setReason(String reason)(Code) | | Set the reason phrase of this reply.
Parameters: reason - The reason phrase for this reply. |
setRetryAfter | public void setRetryAfter(int delay)(Code) | | set the retry after as a delay
Parameters: an - integer representing the delay, in seconds |
setRetryAfter | public void setRetryAfter(long date)(Code) | | set the retry after as a date
long the date as a long |
setServer | public void setServer(String server)(Code) | | Set the description of the server.
Parameters: server - The String decribing the server, or nullto reset the value. |
setStatus | public void setStatus(int status)(Code) | | Set this reply status code.
This will also set the reply reason, to the default HTTP/1.1 reason
phrase.
Parameters: status - The status code for this reply. |
setVary | public void setVary(String varies)(Code) | | Set the vary header value.
Parameters: varies - The list of headers on which this resource varies, ornull to reset the value. |
setWWWAuthenticate | public void setWWWAuthenticate(HttpChallenge challenge)(Code) | | Attach a challenge to this reply.
Parameters: challenge - The challenge to be attached to the reply, ornull to reset the value. |
setWarning | public void setWarning(HttpWarning warnings)(Code) | | Set the warning list attached to this reply.
Parameters: warnings - An array of warnings to attach to the given reply,or null to reset the value. |
startEmit | protected void startEmit(OutputStream out, int what) throws IOException(Code) | | Emit the status line before emiting the actual reply headers.
Parameters: out - The output stream to emit the reply to. |
Methods inherited from org.w3c.www.http.HttpMessage | public void addConnection(String name)(Code)(Java Doc) public void addNoCache(String name)(Code)(Java Doc) public void addPragma(String name)(Code)(Java Doc) public void addProxyConnection(String name)(Code)(Java Doc) public void addTransferEncoding(String name)(Code)(Java Doc) public void addVia(String via)(Code)(Java Doc) public boolean checkNoStore()(Code)(Java Doc) public boolean checkOnlyIfCached()(Code)(Java Doc) public void delState(String name)(Code)(Java Doc) public void dump(OutputStream out)(Code)(Java Doc) public void emit(OutputStream out) throws IOException(Code)(Java Doc) public void emit(OutputStream out, int what) throws IOException(Code)(Java Doc) protected void emitHeaders(OutputStream out, int what) throws IOException(Code)(Java Doc) protected void endEmit(OutputStream out, int what) throws IOException(Code)(Java Doc) public Enumeration enumerateHeaderDescriptions(boolean all)(Code)(Java Doc) public Enumeration enumerateHeaderDescriptions()(Code)(Java Doc) protected synchronized String generateExtNamespace()(Code)(Java Doc) public String getCManExtHeader(String ext, String header)(Code)(Java Doc) public String getCOptExtHeader(String ext, String header)(Code)(Java Doc) public HttpCacheControl getCacheControl()(Code)(Java Doc) public HttpMessage getClone()(Code)(Java Doc) public String[] getConnection()(Code)(Java Doc) public HttpCookieList getCookie()(Code)(Java Doc) public long getDate()(Code)(Java Doc) public HttpMessage getDeeperClone()(Code)(Java Doc) public long getEmitDate()(Code)(Java Doc) public String getExtHeader(String ext, String header)(Code)(Java Doc) public HttpExtList getExtList(String id)(Code)(Java Doc) public Dictionary getExtensionHeaders(HttpExt ext)(Code)(Java Doc) public HeaderValue getHeaderValue(String name, HeaderValue def)(Code)(Java Doc) final public HeaderValue getHeaderValue(String name)(Code)(Java Doc) final public HeaderValue getHeaderValue(int idx)(Code)(Java Doc) public HeaderValue getHeaderValue(HeaderDescription d)(Code)(Java Doc) public HttpExtList getHttpCManExtDecl()(Code)(Java Doc) public HttpExtList getHttpCOptExtDecl()(Code)(Java Doc) public HttpExtList getHttpManExtDecl()(Code)(Java Doc) public HttpExtList getHttpOptExtDecl()(Code)(Java Doc) public short getMajorVersion()(Code)(Java Doc) public String getManExtHeader(String ext, String header)(Code)(Java Doc) public int getMaxAge()(Code)(Java Doc) public short getMinorVersion()(Code)(Java Doc) public String[] getNoCache()(Code)(Java Doc) public String getOptExtHeader(String ext, String header)(Code)(Java Doc) public String[] getPragma()(Code)(Java Doc) public HttpBag getProtocol()(Code)(Java Doc) public HttpBag getProtocolInfo()(Code)(Java Doc) public HttpBag getProtocolQuery()(Code)(Java Doc) public HttpBag getProtocolRequest()(Code)(Java Doc) public String[] getProxyConnection()(Code)(Java Doc) public int getSMaxAge()(Code)(Java Doc) public HttpSetCookieList getSetCookie()(Code)(Java Doc) public Object getState(String name)(Code)(Java Doc) public Enumeration getStateNames()(Code)(Java Doc) public String[] getTrailer()(Code)(Java Doc) public String[] getTransferEncoding()(Code)(Java Doc) public String[] getUpgrade()(Code)(Java Doc) public String getValue(String name)(Code)(Java Doc) public String getValue(HeaderDescription d)(Code)(Java Doc) public String getVersion()(Code)(Java Doc) public String[] getVia()(Code)(Java Doc) public boolean hasConnection(String tok)(Code)(Java Doc) public boolean hasHeader(String name)(Code)(Java Doc) public boolean hasHeader(int idx)(Code)(Java Doc) public boolean hasPragma(String pragma)(Code)(Java Doc) public boolean hasProxyConnection(String tok)(Code)(Java Doc) public boolean hasState(String name)(Code)(Java Doc) public boolean hasTransferEncoding(String encoding)(Code)(Java Doc) public boolean notifyBeginParsing(MimeParser parser) throws HttpParserException, IOException(Code)(Java Doc) public void notifyEndParsing(MimeParser parser) throws HttpParserException, IOException(Code)(Java Doc) public void notifyHeader(String name, byte buf, int off, int len)(Code)(Java Doc) final public static void registerExtHeader(String name, String cls)(Code)(Java Doc) final protected static void registerHeader(String name, String cls)(Code)(Java Doc) final protected static void registerHeader(String name, String c, int i)(Code)(Java Doc) public void removeHeader(String name)(Code)(Java Doc) final public void removeHeader(int idx)(Code)(Java Doc) public void setCacheControl(HttpCacheControl control)(Code)(Java Doc) public void setConnection(String tokens)(Code)(Java Doc) public void setCookie(HttpCookieList cookie)(Code)(Java Doc) public void setDate(long date)(Code)(Java Doc) public void setEnd2EndExtensionAcknowledgmentHeader()(Code)(Java Doc) public synchronized void setExtensionHeader(HttpExt ext, String name, String value)(Code)(Java Doc) public void setHeaderValue(String name, HeaderValue value)(Code)(Java Doc) public void setHeaderValue(HeaderDescription d, HeaderValue v)(Code)(Java Doc) final public void setHeaderValue(int idx, HeaderValue value)(Code)(Java Doc) public void setHopByHopExtensionAcknowledgmentHeader()(Code)(Java Doc) public void setHttpCManExtDecl(HttpExtList exts)(Code)(Java Doc) public void setHttpCOptExtDecl(HttpExtList exts)(Code)(Java Doc) public void setHttpExtDecl(HttpExtList exts)(Code)(Java Doc) public void setHttpManExtDecl(HttpExtList exts)(Code)(Java Doc) public void setHttpOptExtDecl(HttpExtList exts)(Code)(Java Doc) public void setMaxAge(int maxage)(Code)(Java Doc) protected void setNamespaces(HttpExtList extl)(Code)(Java Doc) public void setNoCache(String nocache)(Code)(Java Doc) public void setNoCache()(Code)(Java Doc) public void setNoStore(boolean onoff)(Code)(Java Doc) public void setOnlyIfCached(boolean onoff)(Code)(Java Doc) public void setPragma(String tokens)(Code)(Java Doc) public void setProtocol(HttpBag bag)(Code)(Java Doc) public void setProtocolInfo(HttpBag bag)(Code)(Java Doc) public void setProtocolQuery(HttpBag bag)(Code)(Java Doc) public void setProtocolRequest(HttpBag bag)(Code)(Java Doc) public void setProxyConnection(String tokens)(Code)(Java Doc) public void setSMaxAge(int smaxage)(Code)(Java Doc) public void setSetCookie(HttpSetCookieList setcookie)(Code)(Java Doc) public void setState(String name, Object value)(Code)(Java Doc) public void setTrailer(String trailers)(Code)(Java Doc) public void setTransferEncoding(String tokens)(Code)(Java Doc) public void setUpgrade(String products)(Code)(Java Doc) public void setValue(String name, String strval)(Code)(Java Doc) public void setVia(String vias)(Code)(Java Doc) protected void startEmit(OutputStream out, int what) throws IOException(Code)(Java Doc)
|
|
|