C# 클래스 Decision.Common.Filters.RedirectToHttpsAttribute

상속: System.Web.Mvc.FilterAttribute, IAuthorizationFilter
파일 보기 프로젝트 열기: rabbal/Decision

공개 메소드들

메소드 설명
OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void

Determines whether a request is secured (HTTPS) and, if it is not, calls the HandleNonHttpsRequest method.

RedirectToHttpsAttribute ( bool permanent ) : System

Initializes a new instance of the RedirectToHttpsAttribute class.

보호된 메소드들

메소드 설명
HandleNonHttpsRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void

Handles unsecured HTTP requests that are sent to the action method.

메소드 상세

HandleNonHttpsRequest() 보호된 메소드

Handles unsecured HTTP requests that are sent to the action method.
The HTTP request contains an invalid transfer method override. /// All GET requests are considered invalid. A HTTP 405 Method Not Allowed is thrown.
protected HandleNonHttpsRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void
filterContext System.Web.Mvc.AuthorizationContext An object that encapsulates information that is required in order to use the /// attribute.
리턴 void

OnAuthorization() 공개 메소드

Determines whether a request is secured (HTTPS) and, if it is not, calls the HandleNonHttpsRequest method.
The parameter is null.
public OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void
filterContext System.Web.Mvc.AuthorizationContext An object that encapsulates information that is required in order to use the /// attribute.
리턴 void

RedirectToHttpsAttribute() 공개 메소드

Initializes a new instance of the RedirectToHttpsAttribute class.
public RedirectToHttpsAttribute ( bool permanent ) : System
permanent bool if set to true the redirection should be permanent; otherwise, /// false.
리턴 System