RequestContext Class |
Namespace: CMS.Helpers
public sealed class RequestContext : AbstractContext<RequestContext>
The RequestContext type exposes the following members.
Name | Description | |
---|---|---|
RequestContext |
Name | Description | |
---|---|---|
ClientApplication |
Dictionary to be used to collect data from server for client application.
| |
ColumnNames |
Available column names.
(Inherited from AbstractDataContainerParentObjectType.) | |
CurrentDomain |
Returns current URL domain, without trailing slashes.
| |
CurrentExcludedStatus |
Returns current excluded status of the request path
| |
CurrentPort |
Returns the current request URL port.
| |
CurrentQueryString |
Returns the current request URL query string.
| |
CurrentRelativePath |
Current page relative path. e.g. "~/Home.aspx" has relative path "/Home.aspx"
| |
CurrentScheme |
Returns the current request URL scheme.
| |
CurrentStatus |
Returns current request URL rewriting status.
| |
CurrentURL |
Returns the current request URL.
| |
CurrentUrlExtension |
Returns extension (part after last dot) contained in current URL.
Extension starting with . (.ext) or empty extension if there is no extension is returned.
| |
CurrentURLLangPrefix |
Gets or sets the value that contains current language prefix for current URL.
| |
CurrentURLPathPrefix |
Gets or sets the value that contains current path prefix for current URL.
| |
FullDomain |
Returns current URL domain with port if exist.
| |
IsContentPage |
Indicates that the current request is a request to the content page.
| |
IsDefault |
Returns true if the context is the default request context
(Inherited from ContextContainerTParent.) | |
IsSSL |
Indicates whether current request is SSL request.
| |
IsUserAuthenticated |
Returns true, if the user is authenticated
| |
Item |
Gets the value of particular property
(Inherited from AbstractHierarchicalObjectTObject.) | |
Key |
Unique container key
(Inherited from ContextContainerTParent.) | |
LogCurrentError |
If true (default), the current application error should be logged
| |
LogPageHit |
Indicates if page hit should be logged.
| |
Properties |
Properties available through the context.
(Inherited from AbstractHierarchicalObjectTObject.) | |
PropertyList |
Used property list
(Inherited from AbstractHierarchicalObjectTObject.) | |
RawURL |
Current request RawUrl.
| |
RegisteredColumns |
Registered Columns
(Inherited from AbstractSimpleDataContainerTObject.) | |
RegisteredColumnsObject |
Registered Columns object
(Inherited from AbstractSimpleDataContainerTObject.) | |
RegisteredProperties |
Registered properties
(Inherited from AbstractHierarchicalObjectTObject.) | |
RegisteredPropertiesObject |
Registered properties object
(Inherited from AbstractHierarchicalObjectTObject.) | |
ResponseIsCompressed |
Indicates whether the current response contains compressed data.
| |
ServerHostAddress |
Gets or sets server host address.
| |
URL |
Gets information about URL of current request.
| |
URLReferrer |
Returns URL referrer or empty string if HttPContext is not initialized.
| |
UseGZip |
If true, the filter uses GZip compression on output.
| |
UseLocalColumns |
If true, the object uses local columns
(Inherited from AbstractSimpleDataContainerTObject.) | |
UseLocalProperties |
If true, the object uses local properties
(Inherited from AbstractHierarchicalObjectTObject.) | |
UseNoCacheForRedirect |
Indicates whether current redirect should add no-cache directive to the response header
| |
UserAgent |
Returns user agent or empty string if HttPContext is not initialized.
| |
UserHostAddress |
Gets or sets user host address. Returns empty string if HttpContext is not initialized and other value is not set.
| |
UserName |
Gets user name or empty string if HttpContext is not initialized. The user name is in the exact format in which the user is authenticated (may not be safe name).
|
Name | Description | |
---|---|---|
ClearCachedUrlValues |
Clears the cached values related to URL of the request
| |
ClearCurrent |
Clears the current context value
(Inherited from ContextContainerTParent.) | |
CloneForNewThread |
Clones the object for new thread
(Overrides AbstractContextTContextCloneForNewThread.) | |
CombineWith |
Combines current instance with other properties (modifies current instace!).
List properties are merged from all the participating typeinfos, other properties are taken as first non-null value (non-null is determined by nullValues collection).
(Inherited from AbstractHierarchicalObjectTObject.) | |
ContainsColumn |
Returns true if specified column is available in current structure.
(Inherited from AbstractDataContainerParentObjectType.) | |
EnsureCurrent |
Creates the internal ContextContainerTParent storage if it does not exist yet.
(Inherited from ContextContainerTParent.) | |
GetProperty |
Gets the context property.
(Inherited from AbstractHierarchicalObjectTObject.) | |
GetPropertyType |
Gets the type of the given property
(Inherited from AbstractHierarchicalObjectTObject.) | |
GetValue |
Gets the object value.
(Inherited from AbstractSimpleDataContainerTObject.) | |
HasSetter |
Returns true if given property has a setter
(Inherited from AbstractHierarchicalObjectTObject.) | |
RegisterColumn(String, FuncTObject, Object) |
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainerTObject.) | |
RegisterColumn(String, FuncTObject, Object, FuncTObject, Object, Object) |
Registers the given Column to the object
(Inherited from AbstractSimpleDataContainerTObject.) | |
RegisterColumns |
Registers the Columns of this object
(Inherited from AbstractSimpleDataContainerTObject.) | |
RegisterProperties |
Registers the properties of this object
(Inherited from AbstractHierarchicalObjectTObject.) | |
RegisterProperty(String, FuncTObject, Object) |
Registers the given property to the object
(Inherited from AbstractHierarchicalObjectTObject.) | |
RegisterProperty(String, Object, FuncTObject, Object, Object) |
Registers the given parameterized property to the object.
(Inherited from AbstractHierarchicalObjectTObject.) | |
SetAsCurrent |
Sets the current instance as the current thread item
(Inherited from ContextContainerTParent.) | |
SetProperty |
Gets the context property.
(Inherited from AbstractHierarchicalObjectTObject.) | |
SetValue |
Sets the object value.
(Inherited from AbstractSimpleDataContainerTObject.) | |
TryGetProperty(String, Object) |
Gets the context property.
(Inherited from AbstractHierarchicalObjectTObject.) | |
TryGetProperty(String, Object, Boolean) |
Returns value of property.
(Inherited from AbstractHierarchicalObjectTObject.) | |
TryGetValue |
Returns value of column.
(Inherited from AbstractSimpleDataContainerTObject.) |