C# Class Sdl.Web.Common.Models.PageModelWithHttpResponseData

Represents the View Model for a Page with additional HTTP Response data (cookies, headers).
Inheritance: PageModel
Exibir arquivo Open project: sdl/dxa-web-application-dotnet

Public Methods

Method Description
SetHttpResponseData ( HttpResponse httpResponse ) : void

Sets the HTTP Response data (cookies, header).

This should only be used to set HTTP headers (incl. cookies); setting the HTTP response body is a responsibility of the Page Controller. This method is called by the DXA Page Controller before rendering the body.

Protected Methods

Method Description
PageModelWithHttpResponseData ( string id ) : System.Web

Initializes a new instance of PageModelWithHttpResponseData.

Method Details

PageModelWithHttpResponseData() protected method

Initializes a new instance of PageModelWithHttpResponseData.
protected PageModelWithHttpResponseData ( string id ) : System.Web
id string The identifier of the Page.
return System.Web

SetHttpResponseData() public abstract method

Sets the HTTP Response data (cookies, header).
This should only be used to set HTTP headers (incl. cookies); setting the HTTP response body is a responsibility of the Page Controller. This method is called by the DXA Page Controller before rendering the body.
public abstract SetHttpResponseData ( HttpResponse httpResponse ) : void
httpResponse System.Web.HttpResponse The HTTP Response to set the data on.
return void