Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# PortletContextFactory.CreatePortletContext Method

Factory method that returns a new `IPortletContext` for the current page.

public static IPortletContext CreatePortletContext(
HttpRequest req,
HttpResponse resp
);

#### Parameters

req
  HTTP request
resp
  HTTP response

#### See Also

PortletContextFactory Class | Plumtree.Remote.Portlet Namespace