All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface w3c.www.http.HeaderValue

public interface HeaderValue

Method Index

 o addBytes(byte[], int, int)
Add these bytes to the header raw value.
 o appendValue(HttpBuffer)
Append this header byte value to the given buffer.
 o emit(OutputStream)
Emit this header value to the given output stream.
 o getValue()
Get this header parsed value, in its native type.
 o setBytes(byte[], int, int)
Reset the header byte value to the given byte array.
 o toExternalForm()
Return the HTTP encoding for this header value.

Methods

 o emit
 public abstract void emit(OutputStream out) throws IOException
Emit this header value to the given output stream.

Parameters:
out - The output stream to emit this value to.
Throws: IOException
If some IO error occurs while emiting the value.
 o addBytes
 public abstract void addBytes(byte value[],
                               int off,
                               int len)
Add these bytes to the header raw value.

Parameters:
value - The raw header value as a byte array.
off - The beginning of the raw value in the above byte buffer.
len - The length of the raw value in the above byte buffer.
 o setBytes
 public abstract void setBytes(byte value[],
                               int off,
                               int len)
Reset the header byte value to the given byte array.

Parameters:
value - The raw header value as a byte array.
off - The beginning of the raw value in the above byte buffer.
len - The length of the raw value in the above byte buffer.
 o getValue
 public abstract Object getValue()
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).

 o toExternalForm
 public abstract String toExternalForm()
Return the HTTP encoding for this header value. This method is slow, and defeats nearly all the over-engeneered optimization of the HTTP parser.

Returns:
A String representing the header value in a format compatible with HTTP.
 o appendValue
 public abstract void appendValue(HttpBuffer buf)
Append this header byte value to the given buffer.

Parameters:
buf - The buffer to append the byte value to.

All Packages  Class Hierarchy  This Package  Previous  Next  Index