MimeHeaderLine Class Reference
MIME header line.
More...
#include <yatemime.h>
List of all members.
Detailed Description
MIME header line.
A MIME header line. The NamedString's value contain the first parameter after the header name
Constructor & Destructor Documentation
Constructor. Builds a MIME header line from a string buffer. Splits the value into header parameters
- Parameters:
-
| name | The header name |
| value | The header value |
| sep | Optional parameter separator. If 0, the default ';' will be used |
Constructor. Builds this MIME header line from another one
- Parameters:
-
| original | Original header line to build from. |
| newName | Optional new header name. If 0, the original name will be used |
Member Function Documentation
static void addQuotes |
( |
String & |
str |
) |
[static] |
Utility function, puts quotes around a string.
- Parameters:
-
| str | String to put quotes around. |
static void buildHeaders |
( |
String & |
buf, |
|
|
const ObjList & |
headers | |
|
) |
| | [static] |
Build a string from a list of MIME header lines. Add a CR/LF terminator after each line
- Parameters:
-
| buf | Destination string |
| headers | The list with the header lines |
Referenced by MimeBody::buildHeaders().
virtual void buildLine |
( |
String & |
line |
) |
const [virtual] |
Build a string line from this MIME header without adding a line separator
- Parameters:
-
Reimplemented in MimeAuthLine.
virtual MimeHeaderLine* clone |
( |
const char * |
newName = 0 |
) |
const [virtual] |
Duplicate this MIME header line.
- Parameters:
-
| newName | Optional new header name. If 0, this header's name will be used |
- Returns:
- Copy of this MIME header line
Reimplemented in MimeAuthLine.
void delParam |
( |
const char * |
name |
) |
|
Remove a parameter from list
- Parameters:
-
static void delQuotes |
( |
String & |
str |
) |
[static] |
Utility function, removes quotes around a string.
- Parameters:
-
static int findSep |
( |
const char * |
str, |
|
|
char |
sep, |
|
|
int |
offs = 0 | |
|
) |
| | [static] |
Utility function to find a separator not in "quotes" or inside <uri>.
- Parameters:
-
| str | Input string used to find the separator. |
| sep | The separator to find. |
| offs | Starting offset in input string. |
- Returns:
- The position of the separator in input string or -1 if not found.
virtual void* getObject |
( |
const String & |
name |
) |
const [virtual] |
RTTI method, get a pointer to a derived class given the class name.
- Parameters:
-
| name | Name of the class we are asking for |
- Returns:
- Pointer to the requested class or NULL if this object doesn't implement it
Reimplemented from NamedString.
Reimplemented in MimeAuthLine.
const NamedString* getParam |
( |
const char * |
name |
) |
const |
Get a header parameter
- Parameters:
-
- Returns:
- Pointer to the desired parameter or 0 if not found
const ObjList& params |
( |
|
) |
const [inline] |
Get the header's parameters
- Returns:
- This header's list of parameters
Utility function, puts quotes around a string.
- Parameters:
-
| str | String to put quotes around. |
- Returns:
- The input string enclosed in quotes.
char separator |
( |
|
) |
const [inline] |
Get the character used as separator in header line
- Returns:
- This header's separator
void setParam |
( |
const char * |
name, |
|
|
const char * |
value = 0 | |
|
) |
| | |
Replace the value of an existing parameter or add a new one
- Parameters:
-
| name | Parameter's name |
| value | Parameter's value |
The documentation for this class was generated from the following file: