C# 클래스 Swensen.Ior.Core.IorContentType

An immutable wrapper around our underlying content type representation which provides specialized processing for various processing like pretty printing and choosing correct file extensions.
파일 보기 프로젝트 열기: SwensenSoftware/im-only-resting 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
MediaType string
MediaTypeCategory IorMediaTypeCategory

공개 메소드들

메소드 설명
GetFileExtension ( IorMediaTypeCategory mtc, string mt, Uri requestUri ) : string
GetMediaTypeCategory ( string mt ) : IorMediaTypeCategory
GetPrettyPrintedContent ( IorMediaTypeCategory mtc, string content ) : string

If contentType is an xml content type, then try to pretty print the rawContent. If that fails or otherwise, just return the rawContent

IorContentType ( ) : System
IorContentType ( string contentType ) : System

메소드 상세

GetFileExtension() 공개 정적인 메소드

public static GetFileExtension ( IorMediaTypeCategory mtc, string mt, Uri requestUri ) : string
mtc IorMediaTypeCategory
mt string
requestUri System.Uri
리턴 string

GetMediaTypeCategory() 공개 정적인 메소드

public static GetMediaTypeCategory ( string mt ) : IorMediaTypeCategory
mt string
리턴 IorMediaTypeCategory

GetPrettyPrintedContent() 공개 정적인 메소드

If contentType is an xml content type, then try to pretty print the rawContent. If that fails or otherwise, just return the rawContent
public static GetPrettyPrintedContent ( IorMediaTypeCategory mtc, string content ) : string
mtc IorMediaTypeCategory
content string
리턴 string

IorContentType() 공개 메소드

public IorContentType ( ) : System
리턴 System

IorContentType() 공개 메소드

public IorContentType ( string contentType ) : System
contentType string
리턴 System

프로퍼티 상세

MediaType 공개적으로 프로퍼티

public string MediaType
리턴 string

MediaTypeCategory 공개적으로 프로퍼티

public IorMediaTypeCategory MediaTypeCategory
리턴 IorMediaTypeCategory