rabbit.http
Class MultipartHeader

java.lang.Object
  extended by rabbit.http.GeneralHeader
      extended by rabbit.http.MultipartHeader
All Implemented Interfaces:
Iterable<Header>, Storable

public class MultipartHeader
extends GeneralHeader

A header suitable for multi part handling.

Author:
Robert Olofsson

Field Summary
 
Fields inherited from class rabbit.http.GeneralHeader
headers
 
Constructor Summary
MultipartHeader(String header)
          Create a a new multi-part header using the given separator
 
Method Summary
 void readExternal(ObjectInput in)
          Read in the state of this header from the given input.
 String toString()
          Get the text value of this header
 void writeExternal(ObjectOutput out)
          Write this MultipartHeader to the given output.
 
Methods inherited from class rabbit.http.GeneralHeader
addHeader, addHeader, copyHeader, fillBuffer, getHeader, getHeaders, iterator, read, removeHeader, removeValue, setExistingValue, setHeader, size, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultipartHeader

public MultipartHeader(String header)
Create a a new multi-part header using the given separator

Parameters:
header - the separator String.
Method Detail

toString

public String toString()
Description copied from class: GeneralHeader
Get the text value of this header

Overrides:
toString in class GeneralHeader
Returns:
a String describing this GeneralHeader.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Write this MultipartHeader to the given output.

Parameters:
out - the output to write this header to.
Throws:
IOException - if writing fails

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Read in the state of this header from the given input.

Parameters:
in - the input to read from
Throws:
IOException - if reading fails
ClassNotFoundException - if the input has bad data.