C# 클래스 Spring.Globalization.Resolvers.RequestCultureResolver

Culture resolver that uses request headers to determine culture. If no languages are specified in the request headers, it returns default culture specifed, and if no default culture was specifed it returns current culture for the executing server thread.
Note: This culture resolver cannot be used to change the culture because request headers cannot be modified. In order to change the culture when using this culture resolver user has to change language settings in the web browser.
상속: Spring.Globalization.Resolvers.DefaultWebCultureResolver
파일 보기 프로젝트 열기: spring-projects/spring-net

공개 메소드들

메소드 설명
ResolveCulture ( ) : CultureInfo

Tries to determine culture from the request headers. If no languages are specified in the request headers, it returns default culture specifed, and if no default culture was specifed it returns current culture for the executing server thread.

SetCulture ( CultureInfo culture ) : void

Not supported for this resolver implementation

메소드 상세

ResolveCulture() 공개 메소드

Tries to determine culture from the request headers. If no languages are specified in the request headers, it returns default culture specifed, and if no default culture was specifed it returns current culture for the executing server thread.
public ResolveCulture ( ) : CultureInfo
리턴 System.Globalization.CultureInfo

SetCulture() 공개 메소드

Not supported for this resolver implementation
public SetCulture ( CultureInfo culture ) : void
culture System.Globalization.CultureInfo The new culture or null to clear the culture.
리턴 void