C# 클래스 NCombo.ComboHandler

상속: BaseHttpHandler
파일 보기 프로젝트 열기: gmoothart/NCombo 1 사용 예제들

공개 메소드들

메소드 설명
HandleRequest ( System.Web.HttpContextBase context ) : void
SetResponseCachePolicy ( System.Web.HttpCachePolicyBase cache ) : void
ValidateParameters ( System.Web.HttpContextBase context ) : bool

Validate query string. At this stage, just make sure it exists.

fixupCss ( string path, string contents ) : string

When combo-loading, css paths get mixed up. Must fix that

Regular Expressions and logic inspired by the PHP Loader: https://github.com/yui/phploader/blob/master/phploader/combo.php

getCacheFilename ( string query, bool withGzip, System.Web.HttpServerUtilityBase server ) : string

Calculate a unique filename representing this request.

isClientGzipEnabled ( System.Web.HttpRequestBase rq ) : bool

보호된 메소드들

메소드 설명
Init ( System.Web.HttpContextBase context ) : void

비공개 메소드들

메소드 설명
GzipFile ( string sourceFilename, string destFilename ) : void

Gzip the source file to the dest filename.

Borrowed mostly from: http://msdn.microsoft.com/en-us/library/ms404280(v=VS.85).aspx There is a somewhat simpler method in .Net 4, using CopyTo: http://msdn.microsoft.com/en-us/library/ms404280.aspx I am not sure what difference, if any, it makes on performance.

allowedByWhitelist ( string relPath ) : bool
pathIsCSS ( string path ) : bool

메소드 상세

HandleRequest() 공개 메소드

public HandleRequest ( System.Web.HttpContextBase context ) : void
context System.Web.HttpContextBase
리턴 void

Init() 보호된 메소드

protected Init ( System.Web.HttpContextBase context ) : void
context System.Web.HttpContextBase
리턴 void

SetResponseCachePolicy() 공개 메소드

public SetResponseCachePolicy ( System.Web.HttpCachePolicyBase cache ) : void
cache System.Web.HttpCachePolicyBase
리턴 void

ValidateParameters() 공개 메소드

Validate query string. At this stage, just make sure it exists.
public ValidateParameters ( System.Web.HttpContextBase context ) : bool
context System.Web.HttpContextBase
리턴 bool

fixupCss() 공개 메소드

When combo-loading, css paths get mixed up. Must fix that
Regular Expressions and logic inspired by the PHP Loader: https://github.com/yui/phploader/blob/master/phploader/combo.php
public fixupCss ( string path, string contents ) : string
path string
contents string
리턴 string

getCacheFilename() 공개 메소드

Calculate a unique filename representing this request.
public getCacheFilename ( string query, bool withGzip, System.Web.HttpServerUtilityBase server ) : string
query string
withGzip bool
server System.Web.HttpServerUtilityBase
리턴 string

isClientGzipEnabled() 공개 메소드

public isClientGzipEnabled ( System.Web.HttpRequestBase rq ) : bool
rq System.Web.HttpRequestBase
리턴 bool