Table of contents
IRailsEngineContext API Document
Represents an abstraction between the MonoRail API and the ASP.Net API.
Properties
| Name | Type | Description |
|---|---|---|
| RequestType | String | Gets the request type (GET, POST, etc) |
| Url | String | Gets the URL. |
| UrlReferrer | String | Gets the referring URL. |
| UnderlyingContext | HttpContext | Gets the underlying context of the API being used. |
| Params | NameValueCollection | Access the params (Query, Post, headers and Cookies) |
| Session | IDictionary | Access the session objects. |
| Request | IRequest | Gets the request object. |
| Response | IResponse | Gets the response object. |
| Trace | ITrace | Gets the trace object. |
| Cache | Cache | Access the Cache associated with this web execution context. |
| Flash | Flash | Access a dictionary of volative items. |
| CurrentUser | IPrincipal | Gets or sets the current user. |
| LastException | Exception | Gets the last exception raised during the execution of an action. |
| ApplicationPath | String | Returns the application path. |
| ApplicationPhysicalPath | String | Returns the physical application path. |
| UrlInfo | UrlInfo | Returns the Castle.MonoRail.Framework.IRailsEngineContext.UrlInfo of the the current request. |
| Server | IServerUtility | Returns an Castle.MonoRail.Framework.IServerUtility. |
Methods
Transfer(String path, Boolean preserveForm)
Transfer the execution to another resource.
| Parameter | Description |
|---|---|
| path | |
| preserveForm |