C# Class Sdl.Web.Modules.SmartTarget.Models.SmartTargetPageModel

Inheritance: Sdl.Web.Common.Models.PageModel
Mostra file Open project: sdl/dxa-modules Class Usage Examples

Public Methods

Method Description
SetHttpResponseData ( HttpResponse httpResponse ) : void

Sets the HTTP Response data (cookies, headers).

If the Page contains SmartTarget Experiments which didn't have cookies in the HTTP Request yet, SmartTarget will generate new Experiment cookies. The SmartTargetModelBuilder will store these new Experiment cookies in ExperimentCookies. This method is called by the DXA Page Controller before rendering the body. We use the SmartTarget CookieProcessor to set the HTTP Response cookies.

Private Methods

Method Description
SmartTargetPageModel ( PageModel pageModel ) : System

Method Details

SetHttpResponseData() public method

Sets the HTTP Response data (cookies, headers).
If the Page contains SmartTarget Experiments which didn't have cookies in the HTTP Request yet, SmartTarget will generate new Experiment cookies. The SmartTargetModelBuilder will store these new Experiment cookies in ExperimentCookies. This method is called by the DXA Page Controller before rendering the body. We use the SmartTarget CookieProcessor to set the HTTP Response cookies.
public SetHttpResponseData ( HttpResponse httpResponse ) : void
httpResponse HttpResponse The HTTP Response to set the data on.
return void