JavaBean modelling an HTTP protocol message. Doesn't provide
argument verification.
Can be used either to model a request or a response.
author: Leo Simons version: $Id: HTTPMessage.java,v 1.6 2004/03/23 13:37:48 lsimons Exp $
public void addBodyParts(ByteBuffer[] buffers)(Code)
addHeader
public void addHeader(ByteBuffer name, ByteBuffer value)(Code)
Add a parsed HTTP header to the set of headers associated with this message.
No verification of the arguments is done.
Parameters: name - The new header name Parameters: value - The new header value
Get an unmodifiable map of the HTTP headers associated with this message.
No verification of the headers is done.
an unmodifiable List of the HTTP headers, which mightbe empty
public void setMessageType(boolean isRequest)(Code)
Mark whether this message models a request or a response.
Parameters: isRequest - true if the message should behave like arequest, false if it should behave like a response
setStatusCode
public void setStatusCode(ByteBuffer statusCode)(Code)