rabbit.http
Class MultipartHeader
java.lang.Object
rabbit.http.GeneralHeader
rabbit.http.MultipartHeader
- All Implemented Interfaces:
- Iterable<Header>, Storable
public class MultipartHeader
- extends GeneralHeader
A header suitable for multi part handling.
- Author:
- Robert Olofsson
Constructor Summary |
MultipartHeader(String header)
Create a a new multi-part header using the given separator |
Methods inherited from class rabbit.http.GeneralHeader |
addHeader, addHeader, copyHeader, fillBuffer, getHeader, getHeaders, iterator, read, removeHeader, removeValue, setExistingValue, setHeader, size, write |
MultipartHeader
public MultipartHeader(String header)
- Create a a new multi-part header using the given separator
- Parameters:
header
- the separator String.
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.