| org.w3c.www.http.HeaderValue
All known Subclasses: org.w3c.www.http.BasicValue,
HeaderValue | public interface HeaderValue (Code) | | |
Method Summary | |
public void | addBytes(byte value, int off, int len) Add these bytes to the header raw value. | public void | appendValue(HttpBuffer buf) Append this header byte value to the given buffer. | public void | emit(OutputStream out) Emit this header value to the given output stream. | public Object | getValue() Get this header parsed value, in its native type.
HeaderValue implementors can be used as wrappers for the actual
parsed header value. | public void | setBytes(byte value, int off, int len) Reset the header byte value to the given byte array. | public String | toExternalForm() Return the HTTP encoding for this header value. |
addBytes | public void addBytes(byte value, int off, int len)(Code) | | Add these bytes to the header raw value.
Parameters: value - The raw header value as a byte array. Parameters: off - The beginning of the raw value in the above byte buffer. Parameters: len - The length of the raw value in the above byte buffer. |
appendValue | public void appendValue(HttpBuffer buf)(Code) | | Append this header byte value to the given buffer.
Parameters: buf - The buffer to append the byte value to. |
emit | public void emit(OutputStream out) throws IOException(Code) | | Emit this header value to the given output stream.
Parameters: out - The output stream to emit this value to. exception: IOException - If some IO error occurs while emiting the value. |
getValue | public Object getValue()(Code) | | Get this header parsed value, in its native type.
HeaderValue implementors can be used as wrappers for the actual
parsed header value. In such case this method should return the wrapped
value (you would otherwise, probably want to return
this).
|
setBytes | public void setBytes(byte value, int off, int len)(Code) | | Reset the header byte value to the given byte array.
Parameters: value - The raw header value as a byte array. Parameters: off - The beginning of the raw value in the above byte buffer. Parameters: len - The length of the raw value in the above byte buffer. |
toExternalForm | public String toExternalForm()(Code) | | Return the HTTP encoding for this header value.
This method is slow, and defeats nearly all the over-engeneered
optimization of the HTTP parser.
A String representing the header value in a format compatible with HTTP. |
|
|