|
OpenTop 1.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||||
#include "ot/net/MimeHeaderSequence.h"

The format of a MIME header is:-
header = name ":" <SP> value <CRLF>
| Method Summary | |
void |
clear()Removes all headers from this sequence. |
bool |
containsHeader(const String& key) constDetermines if the the specified header name exists within this sequence. |
int |
findHeader(const String& key) constLocates the index position for the first instance of the specified header name. |
String |
getHeader(const String& key) constReturns the value for the specified header name, or the empty string if the requested header is not present within this sequence. |
String |
getHeader(size_t index) constReturns the value for the specified header, or the empty string if the specified index is outside of the bounds of this sequence. |
String |
getHeaderKey(size_t index) constReturns the name for the specified header, or the empty string if the specified index is outside of the bounds of this sequence. |
void |
insertHeader(const String& key, const String& value)Adds the specified header to the end of this sequence. |
void |
removeAllHeaders(const String& key)Removes all headers with the specified name from this sequence. |
void |
setHeaderExclusive(const String& key, const String& value)Sets the value for a header field, overwriting any existing headers with the specified name. |
bool |
setHeaderIfAbsent(const String& key, const String& value)Sets the value for a header field only when there is not an existing headers within this sequence with the specified name. |
size_t |
size() constReturns the number of elements in this sequence. |
void |
writeHeaders(Writer* pWriter)Writes all the headers to the supplied Writer. |
| Methods inherited from class ot::ManagedObject |
addRef(), getRefCount(), onFinalRelease(), operator=(const ManagedObject&), release() |
| Method Detail |
void clear()
bool containsHeader(const String& key) const
key - int findHeader(const String& key) const
key - String getHeader(const String& key) const
key - String getHeader(size_t index) const
index - String getHeaderKey(size_t index) const
index - void insertHeader(const String& key,
const String& value)
key - value - void removeAllHeaders(const String& key)
key - void setHeaderExclusive(const String& key,
const String& value)
key - value - bool setHeaderIfAbsent(const String& key,
const String& value)
key - size_t size() const
void writeHeaders(Writer* pWriter)
pWriter - NullPointerException - IOException -
|
OpenTop 1.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||||