C# Class System.Net.Cache.HttpRequestCacheValidator

Inheritance: RequestCacheValidator
Mostra file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Private Properties

Property Type Description
CreateCacheHeaders void
CreateSystemMeta void
CreateValidator RequestCacheValidator
FetchCacheControl void
FetchHeaderValues void
FinallyUpdateCacheEntry void
HttpRequestCacheValidator System
ParseHeaderValues void
ParseNameValues string
ParseStatusLine string
ParseValuesCallbackMethod void
ParseWarningsCallbackMethod void
RemoveWarnings_1xx void
UpdateStringCollection void
ZeroPrivateVars void

Protected Methods

Method Description
RevalidateCache ( ) : CacheValidationStatus
UpdateCache ( ) : CacheValidationStatus

This action handler is responsible for making final decision on whether a received response can be cached.

Invalid result from this method means the response must not be cached

ValidateCache ( ) : CacheValidationStatus This method may add headers under the "Warning" header name
ValidateFreshness ( ) : CacheFreshnessStatus
ValidateRequest ( ) : CacheValidationStatus
ValidateResponse ( ) : CacheValidationStatus

This validation method is responsible to answer whether the live response is sufficient to make the final decision for caching protocol. This is useful in case of possible failure or inconsistent results received from the remote cache.

Invalid response from this method means the request was internally modified and should be retried

Private Methods

Method Description
CreateCacheHeaders ( bool ignoreFirstString ) : void
CreateSystemMeta ( ) : void
CreateValidator ( ) : RequestCacheValidator
FetchCacheControl ( string s, bool forCache ) : void
FetchHeaderValues ( bool forCache ) : void
FinallyUpdateCacheEntry ( ) : void
HttpRequestCacheValidator ( bool strictCacheErrors, System.TimeSpan unspecifiedMaxAge ) : System
ParseHeaderValues ( string values, ParseCallback calback, IList list ) : void
ParseNameValues ( NameValueCollection cc, StringCollection sc, int start ) : string
ParseStatusLine ( ) : string
ParseValuesCallbackMethod ( string s, int start, int end, IList list ) : void
ParseWarningsCallbackMethod ( string s, int start, int end, IList list ) : void
RemoveWarnings_1xx ( ) : void
UpdateStringCollection ( StringCollection result, NameValueCollection cc, bool winInetCompat ) : void
ZeroPrivateVars ( ) : void

Method Details

RevalidateCache() protected method

protected RevalidateCache ( ) : CacheValidationStatus
return CacheValidationStatus

UpdateCache() protected method

This action handler is responsible for making final decision on whether a received response can be cached.

Invalid result from this method means the response must not be cached
protected UpdateCache ( ) : CacheValidationStatus
return CacheValidationStatus

ValidateCache() protected method

This method may add headers under the "Warning" header name
protected ValidateCache ( ) : CacheValidationStatus
return CacheValidationStatus

ValidateFreshness() protected method

protected ValidateFreshness ( ) : CacheFreshnessStatus
return CacheFreshnessStatus

ValidateRequest() protected method

protected ValidateRequest ( ) : CacheValidationStatus
return CacheValidationStatus

ValidateResponse() protected method

This validation method is responsible to answer whether the live response is sufficient to make the final decision for caching protocol. This is useful in case of possible failure or inconsistent results received from the remote cache.

Invalid response from this method means the request was internally modified and should be retried
protected ValidateResponse ( ) : CacheValidationStatus
return CacheValidationStatus