C# 클래스 Spring.Web.Support.DefaultResultWebNavigator

The default implementation of the IResultWebNavigator interface.
상속: IResultWebNavigator
파일 보기 프로젝트 열기: spring-projects/spring-net

공개 메소드들

메소드 설명
CanNavigateTo ( string destination ) : bool

Determines, whether this navigator or one of its parents can navigate to the destination specified in destination.

DefaultResultWebNavigator ( ) : System

Creates and initializes a new instance.

DefaultResultWebNavigator ( IWebNavigator parent, IDictionary initialResults, bool ignoreCase ) : System

Creates and initializes a new instance.

GetResultUri ( string resultName, object sender, object context ) : string

Returns a redirect url string that points to the Spring.Web.Support.Result.TargetPage defined by this result evaluated using this Page for expression

NavigateTo ( string destination, object sender, object context ) : void

Redirects user to a URL mapped to specified result name.

보호된 메소드들

메소드 설명
CreateResultsDictionary ( IDictionary initialResults ) : IDictionary

Create the dictionary instance to be used by this navigator component.

Implementors may override this for creating custom dictionaries.

GetResult ( string name ) : IResult

Obtain the named result instance from the Results dictionary. If necessary, the actual representation of the result will be converted to an IResult instance by this method.

HandleUnknownDestination ( string destination, object sender, object context ) : string

Handle an unknown destination.

By default, this method throws a ArgumentOutOfRangeException.

HandleUnknownResultType ( string name, object val ) : IResult

Handle an unknown result object.

By default, this method throws a TypeMismatchException.

메소드 상세

CanNavigateTo() 공개 메소드

Determines, whether this navigator or one of its parents can navigate to the destination specified in destination.
public CanNavigateTo ( string destination ) : bool
destination string the name of the navigation destination
리턴 bool

CreateResultsDictionary() 보호된 메소드

Create the dictionary instance to be used by this navigator component.
Implementors may override this for creating custom dictionaries.
protected CreateResultsDictionary ( IDictionary initialResults ) : IDictionary
initialResults IDictionary a dictionary of intitial result mappings
리턴 IDictionary

DefaultResultWebNavigator() 공개 메소드

Creates and initializes a new instance.
public DefaultResultWebNavigator ( ) : System
리턴 System

DefaultResultWebNavigator() 공개 메소드

Creates and initializes a new instance.
public DefaultResultWebNavigator ( IWebNavigator parent, IDictionary initialResults, bool ignoreCase ) : System
parent IWebNavigator the parent of this instance. May be null.
initialResults IDictionary a dictionary of result name to result mappings. May be null.
ignoreCase bool sets, how this navigator treats case sensitivity of result names
리턴 System

GetResult() 보호된 메소드

Obtain the named result instance from the Results dictionary. If necessary, the actual representation of the result will be converted to an IResult instance by this method.
protected GetResult ( string name ) : IResult
name string
리턴 IResult

GetResultUri() 공개 메소드

Returns a redirect url string that points to the Spring.Web.Support.Result.TargetPage defined by this result evaluated using this Page for expression
public GetResultUri ( string resultName, object sender, object context ) : string
resultName string Name of the result.
sender object the instance that issued this request
context object The context to use for evaluating the SpEL expression in the Result
리턴 string

HandleUnknownDestination() 보호된 메소드

Handle an unknown destination.
By default, this method throws a ArgumentOutOfRangeException.
protected HandleUnknownDestination ( string destination, object sender, object context ) : string
destination string the destination that could not be resolved.
sender object the sender that issued the request
context object the context to be used for evaluating any dynamic parts of the destination
리턴 string

HandleUnknownResultType() 보호된 메소드

Handle an unknown result object.
By default, this method throws a TypeMismatchException.
protected HandleUnknownResultType ( string name, object val ) : IResult
name string the name of the result
val object the result instance obtained from the dictionary
리턴 IResult

NavigateTo() 공개 메소드

Redirects user to a URL mapped to specified result name.
public NavigateTo ( string destination, object sender, object context ) : void
destination string Name of the result.
sender object the instance that issued this request
context object The context to use for evaluating the SpEL expression in the Result.
리턴 void