|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.faces.bridge.container.PortletContainerCompatImpl
com.liferay.faces.bridge.container.PortletContainerImpl
com.liferay.faces.bridge.container.liferay.PortletContainerLiferayCompatImpl
com.liferay.faces.bridge.container.liferay.PortletContainerLiferayImpl
public class PortletContainerLiferayImpl
| Constructor Summary | |
|---|---|
PortletContainerLiferayImpl(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse,
javax.portlet.PortletContext portletContext,
BridgeConfig bridgeConfig)
|
|
| Method Summary | |
|---|---|
protected javax.portlet.PortletURL |
createActionURL(javax.portlet.MimeResponse mimeResponse)
|
javax.portlet.PortletURL |
createRedirectURL(String fromURL,
Map<String,List<String>> parameters)
Note that this default method implementation doesn't help when a |
protected javax.portlet.PortletURL |
createRenderURL(javax.portlet.MimeResponse mimeResponse)
|
protected javax.portlet.ResourceURL |
createResourceURL(javax.portlet.MimeResponse mimeResponse)
|
String |
fixRequestParameterValue(String value)
There is a bug in some versions of Liferay's PortalImpl.getStaticResourceURL(...) method in which it appends request parameters with a question-mark instead of an ampersand. |
protected String |
getEncodedRequestParameterValue(javax.portlet.PortletRequest portletRequest,
String parameterName)
|
String[] |
getHeader(String name)
Returns the value of the header with the specified name from the underlying HttpServletRequest. |
long |
getHttpServletRequestDateHeader(String name)
Returns the value of the specified header name from the HttpServletRequest that is wrapped by the current PortletRequest. |
String |
getRequestURL()
Returns the URL requested by the user-agent (browser). |
String |
getResponseNamespace()
Returns the response namespace. |
boolean |
isAbleToAddScriptResourceToHead()
Determines whether or not the portlet container has the ability (standard or vendor-specific) to add <script src=".." /> resource to the <head>...</head> section of the rendered portal page. |
boolean |
isAbleToAddScriptTextToHead()
Determines whether or not the portlet container has the ability (standard or vendor-specific) to add <script> text to the <head>...</head> section of the rendered portal page. |
boolean |
isAbleToAddStyleSheetResourceToHead()
Determines whether or not the portlet container has the ability (standard or vendor-specific) to add stylesheet <link> tags to the <head>...</head> section of the rendered portal page. |
boolean |
isAbleToForwardOnDispatch()
Determines whether or not the portlet container has the ability to issue a forward when a dispatch occurs. |
boolean |
isAbleToSetHttpStatusCode()
Determines whether or not the portlet container has the ability to support the Portlet 2.0 standard mechanism of setting the ResourceResponse.HTTP_STATUS_CODE property on the ResourceResponse. |
protected boolean |
isMarkupHeadElementSupported()
Determines whether or not the portlet container supports the standard Portlet 2.0 mechanism for adding resources to the ... section of the rendered portal page. |
boolean |
isNamespacedParameters()
Determines whether or not the portlet container requires parameters to be namespaced. |
boolean |
isPostRedirectGetSupported()
Liferay Portal does not implement the POST-REDIRECT-GET design pattern. |
void |
redirect(String url)
Delegates to the underlying ActionResponse to perform a redirect to the specified URL. |
protected void |
saveRenderAttributes(javax.portlet.PortletMode portletMode,
javax.portlet.WindowState windowState,
com.liferay.portal.theme.ThemeDisplay themeDisplay,
String responseNamespace,
javax.portlet.PortletContext portletContext)
Liferay Hack: Need to save some stuff that's only available at RenderRequest time in order to have getResourceURL() work properly later. |
| Methods inherited from class com.liferay.faces.bridge.container.liferay.PortletContainerLiferayCompatImpl |
|---|
afterPhase, beforePhase, getHeadResponseWriter, getPageTop, getPhaseId, isPortletRequiresNamespacedParameters, setPageTop |
| Methods inherited from class com.liferay.faces.bridge.container.PortletContainerImpl |
|---|
copyRequestParameters, createActionURL, createPartialActionURL, createRenderURL, createResourceURL, getContextParamAbleToSetHttpStatusCode, getRequestParameter, getRequestParameterValues, getRequestQueryString, isAbleToSetResourceResponseBufferSize, maintainRenderParameters, parseRequestParameters, setMimeResponseContentType |
| Methods inherited from class com.liferay.faces.bridge.container.PortletContainerCompatImpl |
|---|
isJSF2PartialRequest, redirectJSF2PartialResponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortletContainerLiferayImpl(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse,
javax.portlet.PortletContext portletContext,
BridgeConfig bridgeConfig)
| Method Detail |
|---|
public javax.portlet.PortletURL createRedirectURL(String fromURL,
Map<String,List<String>> parameters)
throws MalformedURLException
PortletContainerImpl
createRedirectURL in interface PortletContainercreateRedirectURL in class PortletContainerImplfromURL - The URL to copy from.
MalformedURLExceptionpublic String fixRequestParameterValue(String value)
fixRequestParameterValue in interface PortletContainerfixRequestParameterValue in class PortletContainerImplvalue - The request parameter value that may need to be fixed.
public void redirect(String url)
throws IOException
PortletContainer
redirect in interface PortletContainerredirect in class PortletContainerImplIOExceptionprotected javax.portlet.PortletURL createActionURL(javax.portlet.MimeResponse mimeResponse)
createActionURL in class PortletContainerImplprotected javax.portlet.PortletURL createRenderURL(javax.portlet.MimeResponse mimeResponse)
createRenderURL in class PortletContainerImplprotected javax.portlet.ResourceURL createResourceURL(javax.portlet.MimeResponse mimeResponse)
createResourceURL in class PortletContainerImpl
protected void saveRenderAttributes(javax.portlet.PortletMode portletMode,
javax.portlet.WindowState windowState,
com.liferay.portal.theme.ThemeDisplay themeDisplay,
String responseNamespace,
javax.portlet.PortletContext portletContext)
renderRequest - The current RenderRequest.responseNamespace - The current response namespace.applicationMap - The current ApplicationMap.public boolean isAbleToAddScriptResourceToHead()
PortletContainer
isAbleToAddScriptResourceToHead in interface PortletContainerisAbleToAddScriptResourceToHead in class PortletContainerImplpublic boolean isAbleToAddScriptTextToHead()
PortletContainer
isAbleToAddScriptTextToHead in interface PortletContainerisAbleToAddScriptTextToHead in class PortletContainerImplpublic boolean isAbleToAddStyleSheetResourceToHead()
PortletContainer
isAbleToAddStyleSheetResourceToHead in interface PortletContainerisAbleToAddStyleSheetResourceToHead in class PortletContainerImplpublic boolean isPostRedirectGetSupported()
isPostRedirectGetSupported in interface PortletContainerisPostRedirectGetSupported in class PortletContainerImplfalse since Liferay Portal does not implement the POST-REDIRECT-GET design pattern.protected boolean isMarkupHeadElementSupported()
isMarkupHeadElementSupported in class PortletContainerImplfalse since Liferay doesn't support it reliably.public boolean isAbleToSetHttpStatusCode()
PortletContainerResourceResponse.HTTP_STATUS_CODE property on the ResourceResponse.
isAbleToSetHttpStatusCode in interface PortletContainerisAbleToSetHttpStatusCode in class PortletContainerImpl
protected String getEncodedRequestParameterValue(javax.portlet.PortletRequest portletRequest,
String parameterName)
public boolean isAbleToForwardOnDispatch()
PortletContainer
isAbleToForwardOnDispatch in interface PortletContainerisAbleToForwardOnDispatch in class PortletContainerImpltrue if able, otherwise false.public String[] getHeader(String name)
PortletContainer
getHeader in interface PortletContainergetHeader in class PortletContainerImplpublic long getHttpServletRequestDateHeader(String name)
PortletContainer
getHttpServletRequestDateHeader in interface PortletContainergetHttpServletRequestDateHeader in class PortletContainerImplpublic String getRequestURL()
PortletContainer
getRequestURL in interface PortletContainergetRequestURL in class PortletContainerImplpublic String getResponseNamespace()
PortletContainer
getResponseNamespace in interface PortletContainergetResponseNamespace in class PortletContainerImplpublic boolean isNamespacedParameters()
PortletContainer
isNamespacedParameters in interface PortletContainerisNamespacedParameters in class PortletContainerImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||