@Beta public final class PortalContext extends Object implements PortalRequest
Modifier and Type | Field and Description |
---|---|
static Branch |
DEFAULT_BRANCH |
Constructor and Description |
---|
PortalContext() |
public static final Branch DEFAULT_BRANCH
public String getUri()
getUri
in interface PortalRequest
public String getMethod()
getMethod
in interface PortalRequest
public Branch getBranch()
getBranch
in interface PortalRequest
public Multimap<String,String> getParams()
getParams
in interface PortalRequest
public Multimap<String,String> getFormParams()
getFormParams
in interface PortalRequest
public RenderMode getMode()
getMode
in interface PortalRequest
public void setUri(String uri)
public void setMethod(String method)
public void setMode(RenderMode mode)
public void setBranch(Branch branch)
public Multimap<String,String> getHeaders()
getHeaders
in interface PortalRequest
public String rewriteUri(String uri)
rewriteUri
in interface PortalRequest
public PortalResponse getResponse()
public void setResponse(PortalResponse response)
public Site getSite()
public void setSite(Site site)
public Content getContent()
public void setContent(Content content)
public PageTemplate getPageTemplate()
public void setPageTemplate(PageTemplate pageTemplate)
public Component getComponent()
public void setComponent(Component component)
public ModuleKey getModule()
public void setModule(ModuleKey module)
public PageDescriptor getPageDescriptor()
public void setPageDescriptor(PageDescriptor pageDescriptor)
public ContentPath getContentPath()
getContentPath
in interface PortalRequest
public javax.servlet.http.HttpServletRequest getRawRequest()
getRawRequest
in interface PortalRequest
public String getBaseUri()
getBaseUri
in interface PortalRequest
public void setContentPath(ContentPath contentPath)
public void setBaseUri(String baseUri)
public void setRawRequest(javax.servlet.http.HttpServletRequest rawRequest)
public Map<String,String> getCookies()
getCookies
in interface PortalRequest