C# 클래스 i18n.EarlyUrlLocalizer

상속: IEarlyUrlLocalizer
파일 보기 프로젝트 열기: turquoiseowl/i18n

공개 프로퍼티들

프로퍼티 타입 설명
m_httpHeadersContainingUrls string[]
m_regexHtmlUrls System.Text.RegularExpressions.Regex

공개 메소드들

메소드 설명
EarlyUrlLocalizer ( IUrlLocalizer urlLocalizer ) : System
ProcessIncoming ( System context ) : void

Implements the Early Url Localization logic.

ProcessOutgoing ( string entity, string langtag, System context ) : string

보호된 메소드들

메소드 설명
LocalizeUrl ( System context, string url, string langtag, Uri requestUrl, bool incomingUrl ) : string

Helper for localizing an individual URL string for a particular langtag value and URL of the current request.

RedirectWithLanguage ( System context, string urlNonlocalized, string langtag, IUrlLocalizer m_urlLocalizer ) : void

메소드 상세

EarlyUrlLocalizer() 공개 메소드

public EarlyUrlLocalizer ( IUrlLocalizer urlLocalizer ) : System
urlLocalizer IUrlLocalizer
리턴 System

LocalizeUrl() 보호된 메소드

Helper for localizing an individual URL string for a particular langtag value and URL of the current request.
protected LocalizeUrl ( System context, string url, string langtag, Uri requestUrl, bool incomingUrl ) : string
context System
url string Subject URL to be localized.
langtag string Language with which to localize the URL.
requestUrl System.Uri URL of the current HTTP request being handled.
incomingUrl bool
리턴 string

ProcessIncoming() 공개 메소드

Implements the Early Url Localization logic.
public ProcessIncoming ( System context ) : void
context System
리턴 void

ProcessOutgoing() 공개 메소드

public ProcessOutgoing ( string entity, string langtag, System context ) : string
entity string
langtag string
context System
리턴 string

RedirectWithLanguage() 보호된 정적인 메소드

protected static RedirectWithLanguage ( System context, string urlNonlocalized, string langtag, IUrlLocalizer m_urlLocalizer ) : void
context System
urlNonlocalized string
langtag string
m_urlLocalizer IUrlLocalizer
리턴 void

프로퍼티 상세

m_httpHeadersContainingUrls 공개적으로 정적으로 프로퍼티

public static string[] m_httpHeadersContainingUrls
리턴 string[]

m_regexHtmlUrls 공개적으로 정적으로 프로퍼티

Regex for finding and replacing urls in html.
public static Regex,System.Text.RegularExpressions m_regexHtmlUrls
리턴 System.Text.RegularExpressions.Regex