C# 클래스 Castle.MonoRail.Framework.Services.DefaultUrlTokenizer

Breaks the url into smaller pieces to find out the requested controller, action and optionally the area.

It alsos checks for default urls which map a single resource to an area/controller/action

상속: IUrlTokenizer, IServiceEnabledComponent
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
AddDefaultRule ( string url, string area, string controller, string action ) : void

Adds the default rule mapping.

A defautl rule can associate something like a 'default.castle' to a controller/action like 'Home/index.castle'

Service ( IServiceProvider provider ) : void

Services the specified provider.

TokenizeUrl ( string rawUrl, Uri uri, bool isLocal, string appVirtualDir ) : System.UrlInfo

Tokenizes the URL.

보호된 메소드들

메소드 설명
GetDomainToken ( string domain, int token ) : string

Gets the domain token.

GetExtension ( string url ) : string

Gets the extension of the requested urls page without the preceding period.

비공개 메소드들

메소드 설명
ExtractAreaControllerAction ( string rawUrl, string &area, string &controller, string &action ) : void

Extracts the area controller action.

메소드 상세

AddDefaultRule() 공개 메소드

Adds the default rule mapping.
A defautl rule can associate something like a 'default.castle' to a controller/action like 'Home/index.castle'
public AddDefaultRule ( string url, string area, string controller, string action ) : void
url string The URL.
area string The area.
controller string The controller.
action string The action.
리턴 void

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

Gets the domain token.
protected static GetDomainToken ( string domain, int token ) : string
domain string The domain.
token int The token index.
리턴 string

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

Gets the extension of the requested urls page without the preceding period.
protected static GetExtension ( string url ) : string
url string URL.
리턴 string

Service() 공개 메소드

Services the specified provider.
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The provider.
리턴 void

TokenizeUrl() 공개 메소드

Tokenizes the URL.
public TokenizeUrl ( string rawUrl, Uri uri, bool isLocal, string appVirtualDir ) : System.UrlInfo
rawUrl string The raw URL.
uri System.Uri The URI.
isLocal bool if set to true [is local].
appVirtualDir string Virtual directory
리턴 System.UrlInfo