Method | Description | |
---|---|---|
UrlModuleSourceProvider ( IEnumerable |
Creates a new module script provider that loads modules against a set of privileged and fallback URIs. Creates a new module script provider that loads modules against a set of privileged and fallback URIs. It will use a fixed default cache expiry of 60 seconds, and provide no security domain objects for the resource. |
|
UrlModuleSourceProvider ( IEnumerable |
Creates a new module script provider that loads modules against a set of privileged and fallback URIs. Creates a new module script provider that loads modules against a set of privileged and fallback URIs. It will use the specified heuristic cache expiry calculator and security domain provider. |
Method | Description | |
---|---|---|
EntityNeedsRevalidation ( object validator ) : bool | ||
LoadFromActualUri ( |
||
LoadFromFallbackLocations ( string moduleId, object validator ) : |
||
LoadFromPrivilegedLocations ( string moduleId, object validator ) : |
||
LoadFromUri ( |
||
OnFailedClosingUrlConnection ( Sharpen.URLConnection urlConnection, |
Override if you want to get notified if the URL connection fails to close. Override if you want to get notified if the URL connection fails to close. Does nothing by default. |
|
OpenUrlConnection ( |
Can be overridden in subclasses to customize the URL connection opening process. Can be overridden in subclasses to customize the URL connection opening process. By default, just calls |
Method | Description | |
---|---|---|
Close ( Sharpen.URLConnection urlConnection ) : void | ||
GetCharacterEncoding ( Sharpen.URLConnection urlConnection ) : string | ||
GetReader ( Sharpen.URLConnection urlConnection ) : TextReader | ||
GetSecurityDomain ( Sharpen.URLConnection urlConnection ) : object | ||
LoadFromPathList ( string moduleId, object validator, IEnumerable |
protected EntityNeedsRevalidation ( object validator ) : bool | ||
validator | object | |
return | bool |
protected LoadFromActualUri ( |
||
uri | ||
@base | ||
validator | object | |
return |
protected LoadFromFallbackLocations ( string moduleId, object validator ) : |
||
moduleId | string | |
validator | object | |
return |
protected LoadFromPrivilegedLocations ( string moduleId, object validator ) : |
||
moduleId | string | |
validator | object | |
return |
protected LoadFromUri ( |
||
uri | ||
@base | ||
validator | object | |
return |
protected OnFailedClosingUrlConnection ( Sharpen.URLConnection urlConnection, |
||
urlConnection | Sharpen.URLConnection | the connection |
cause | the cause it failed to close. | |
return | void |
protected OpenUrlConnection ( |
||
url | the URL | |
return | Sharpen.URLConnection |
public UrlModuleSourceProvider ( IEnumerable |
||
privilegedUris | IEnumerable |
/// an iterable providing the privileged URIs. Can be /// null if no privileged URIs are used. /// |
fallbackUris | IEnumerable |
/// an iterable providing the fallback URIs. Can be /// null if no fallback URIs are used. /// |
return | System |
public UrlModuleSourceProvider ( IEnumerable |
||
privilegedUris | IEnumerable |
/// an iterable providing the privileged URIs. Can be /// null if no privileged URIs are used. /// |
fallbackUris | IEnumerable |
/// an iterable providing the fallback URIs. Can be /// null if no fallback URIs are used. /// |
urlConnectionExpiryCalculator | UrlConnectionExpiryCalculator | /// the calculator object for heuristic /// calculation of the resource expiry, used when no expiry is provided by /// the server of the resource. Can be null, in which case the maximum age /// of cached entries without validation will be zero. /// |
urlConnectionSecurityDomainProvider | UrlConnectionSecurityDomainProvider | /// object that provides security /// domain objects for the loaded sources. Can be null, in which case the /// loaded sources will have no security domain associated with them. /// |
return | System |