Table of Contents

Class MimeTypeUtils

Namespace
Steeltoe.Common.Util
Assembly
Steeltoe.Common.dll
public static class MimeTypeUtils
Inheritance
MimeTypeUtils
Inherited Members

Fields

ALL

public static readonly MimeType ALL

Field Value

MimeType

ALL_VALUE

public static readonly string ALL_VALUE

Field Value

string

APPLICATION_JSON

public static readonly MimeType APPLICATION_JSON

Field Value

MimeType

APPLICATION_JSON_VALUE

public static readonly string APPLICATION_JSON_VALUE

Field Value

string

APPLICATION_OCTET_STREAM

public static readonly MimeType APPLICATION_OCTET_STREAM

Field Value

MimeType

APPLICATION_OCTET_STREAM_VALUE

public static readonly string APPLICATION_OCTET_STREAM_VALUE

Field Value

string

APPLICATION_XML

public static readonly MimeType APPLICATION_XML

Field Value

MimeType

APPLICATION_XML_VALUE

public static readonly string APPLICATION_XML_VALUE

Field Value

string

IMAGE_GIF

public static readonly MimeType IMAGE_GIF

Field Value

MimeType

IMAGE_GIF_VALUE

public static readonly string IMAGE_GIF_VALUE

Field Value

string

IMAGE_JPEG

public static readonly MimeType IMAGE_JPEG

Field Value

MimeType

IMAGE_JPEG_VALUE

public static readonly string IMAGE_JPEG_VALUE

Field Value

string

IMAGE_PNG

public static readonly MimeType IMAGE_PNG

Field Value

MimeType

IMAGE_PNG_VALUE

public static readonly string IMAGE_PNG_VALUE

Field Value

string

SPECIFICITY_COMPARATOR

public static readonly IComparer<MimeType> SPECIFICITY_COMPARATOR

Field Value

IComparer<MimeType>

TEXT_HTML

public static readonly MimeType TEXT_HTML

Field Value

MimeType

TEXT_HTML_VALUE

public static readonly string TEXT_HTML_VALUE

Field Value

string

TEXT_PLAIN

public static readonly MimeType TEXT_PLAIN

Field Value

MimeType

TEXT_PLAIN_VALUE

public static readonly string TEXT_PLAIN_VALUE

Field Value

string

TEXT_XML

public static readonly MimeType TEXT_XML

Field Value

MimeType

TEXT_XML_VALUE

public static readonly string TEXT_XML_VALUE

Field Value

string

Methods

GenerateMultipartBoundary()

public static char[] GenerateMultipartBoundary()

Returns

char[]

GenerateMultipartBoundaryString()

public static string GenerateMultipartBoundaryString()

Returns

string

ParseMimeType(string)

public static MimeType ParseMimeType(string mimeType)

Parameters

mimeType string

Returns

MimeType

ParseMimeTypes(string)

public static List<MimeType> ParseMimeTypes(string mimeTypes)

Parameters

mimeTypes string

Returns

List<MimeType>

SortBySpecificity(List<MimeType>)

public static void SortBySpecificity(List<MimeType> mimeTypes)

Parameters

mimeTypes List<MimeType>

Tokenize(string)

public static List<string> Tokenize(string mimeTypes)

Parameters

mimeTypes string

Returns

List<string>

Tostring(ICollection<MimeType>)

public static string Tostring(ICollection<MimeType> mimeTypes)

Parameters

mimeTypes ICollection<MimeType>

Returns

string