C# 클래스 SharedSource.RedirectModule.Processors.RedirectProcessor

Redirection Module which handles redirects. Both exact matches and regular expression pattern matches are supported.
상속: HttpRequestProcessor
파일 보기 프로젝트 열기: thecadams/301RedirectModule

공개 메소드들

메소드 설명
Process ( HttpRequestArgs args ) : void

The main method for the processor. It simply overrides the Process method.

비공개 메소드들

메소드 설명
AllowRedirectsOnFoundItem ( Database db ) : bool
CheckForDirectMatch ( Database db, string requestedUrl, string requestedPath, HttpRequestArgs args ) : void
CheckForRegExMatch ( Database db, string requestedUrl, string requestedPathAndQuery, HttpRequestArgs args ) : void
CheckForRulesMatch ( Database db, string requestedUrl, string requestedPathAndQuery, HttpRequestArgs args ) : void
GetRedirectToItemUrl ( System.Item redirectToItem ) : string
GetRedirects ( Database db, string templateName, string versionedTemplateName, string queryType ) : IEnumerable

This method return all of the possible matches for either the exact matches or the pattern matches Note: Because Fast Query does not guarantee to return items in the current language context (e.g. while in US/English, results may include other language items as well, even if the US/EN language has no active versions), an additional LINQ query has to be run to filter for language. Choose your query type appropriately.

GetResponseStatus ( System.Item redirectItem ) : ResponseStatus
SendResponse ( System.Item redirectToItem, string queryString, ResponseStatus responseStatus, HttpRequestArgs args ) : void

Once a match is found and we have a Sitecore Item, we can send the response.

SendResponse ( string redirectToUrl, string queryString, ResponseStatus responseStatusCode, HttpRequestArgs args ) : void

메소드 상세

Process() 공개 메소드

The main method for the processor. It simply overrides the Process method.
public Process ( HttpRequestArgs args ) : void
args HttpRequestArgs
리턴 void