C# Class RemObjects.InternetPack.Messages.Mime.Header.HeaderFieldParser

Class that can parse different fields in the header sections of a MIME message.
Exibir arquivo Open project: remobjects/internetpack Class Usage Examples

Public Methods

Method Description
ParseContentDisposition ( String headerValue ) : ContentDisposition

Parses a the value for the header Content-Disposition to a ContentDisposition object.

ParseContentTransferEncoding ( String headerValue ) : ContentTransferEncoding

Parses the Content-Transfer-Encoding header.

ParseContentType ( String headerValue ) : ContentType

Parses a the value for the header Content-Type to a ContentType object.

ParseId ( String headerValue ) : String

Parses an ID like Message-Id and Content-Id.
Example:
<[email protected]>
into
[email protected]

ParseImportance ( String headerValue ) : MailPriority

Parses an ImportanceType from a given Importance header value.

ParseMultipleIDs ( String headerValue ) : List

Parses multiple IDs from a single String like In-Reply-To.

Method Details

ParseContentDisposition() public static method

Parses a the value for the header Content-Disposition to a ContentDisposition object.
If is
public static ParseContentDisposition ( String headerValue ) : ContentDisposition
headerValue String The value to be parsed
return System.Net.Mime.ContentDisposition

ParseContentTransferEncoding() public static method

Parses the Content-Transfer-Encoding header.
If is If the could not be parsed to a
public static ParseContentTransferEncoding ( String headerValue ) : ContentTransferEncoding
headerValue String The value for the header to be parsed
return ContentTransferEncoding

ParseContentType() public static method

Parses a the value for the header Content-Type to a ContentType object.
If is
public static ParseContentType ( String headerValue ) : ContentType
headerValue String The value to be parsed
return System.Net.Mime.ContentType

ParseId() public static method

Parses an ID like Message-Id and Content-Id.
Example:
<[email protected]>
into
[email protected]
public static ParseId ( String headerValue ) : String
headerValue String The id to parse
return String

ParseImportance() public static method

Parses an ImportanceType from a given Importance header value.
If is
public static ParseImportance ( String headerValue ) : MailPriority
headerValue String The value to be parsed
return MailPriority

ParseMultipleIDs() public static method

Parses multiple IDs from a single String like In-Reply-To.
public static ParseMultipleIDs ( String headerValue ) : List
headerValue String The value to parse
return List