|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PortletContainer
| Method Summary | |
|---|---|
javax.portlet.PortletURL |
createActionURL(String fromURL)
Creates a portlet action URL and copies query parameters that might be present in the specified URL. |
javax.portlet.ResourceURL |
createPartialActionURL(String fromURL)
Creates a portlet resource URL that is suitable for partial requests (Ajax). |
javax.portlet.PortletURL |
createRedirectURL(String fromURL,
Map<String,List<String>> parameters)
Creates a portlet redirect URL and copies query parameters that might be present in the specified URL. |
javax.portlet.PortletURL |
createRenderURL(String fromURL)
Creates a portlet render URL and copies query parameters that might be present in the specified URL. |
javax.portlet.ResourceURL |
createResourceURL(String fromURL)
Creates a portlet resource URL and copies the javax.faces.resource value and query parameters that might be present in the specified URL. |
String |
fixRequestParameterValue(String value)
This method provides the portlet conainer with an opportunity to fix/correct/massage the specified request parameter value. |
String[] |
getHeader(String name)
Returns the value of the header with the specified name from the underlying HttpServletRequest. |
javax.faces.context.ResponseWriter |
getHeadResponseWriter(javax.faces.context.ResponseWriter wrappableResponseWriter)
|
long |
getHttpServletRequestDateHeader(String name)
Returns the value of the specified header name from the HttpServletRequest that is wrapped by the current PortletRequest. |
String |
getRequestParameter(String name)
This is a convenience method that gets the specified request parameter value. |
String[] |
getRequestParameterValues(String name)
This is a convenience method that gets the specified request parameter values. |
String |
getRequestQueryString()
Gets the query string part of the URL requested by the user-agent (browser) by getting the attribute named "javax.servlet.forward.query_string" from the request. |
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. |
boolean |
isAbleToSetResourceResponseBufferSize()
Determines whether or not the portlet container has the ability to set the buffer size on its javax.portlet.ResourceResponse implementation. |
boolean |
isNamespacedParameters()
Determines whether or not the portlet container requires parameters to be namespaced. |
boolean |
isPostRedirectGetSupported()
Flag indicating whether or not the portlet container supports/implements the POST-REDIRECT-GET design pattern, meaning that the ACTION_PHASE originates from an HTTP POST request, and the RENDER_PHASE is a subsequent HTTP GET request. |
void |
maintainRenderParameters(javax.portlet.EventRequest eventRequest,
javax.portlet.EventResponse eventResponse)
Maintains (copies) the render parameters found in the specified EventRequest to the specified EventResponse. |
void |
redirect(String url)
Delegates to the underlying ActionResponse to perform a redirect to the specified URL. |
void |
setMimeResponseContentType(javax.portlet.MimeResponse mimeResponse,
String contentType)
Layer of abstraction over the MimeResponse.setContentType(String) method. |
| Methods inherited from interface javax.faces.event.PhaseListener |
|---|
afterPhase, beforePhase, getPhaseId |
| Method Detail |
|---|
javax.portlet.PortletURL createActionURL(String fromURL)
throws MalformedURLException
fromURL - The URL to copy from.
MalformedURLException
javax.portlet.ResourceURL createPartialActionURL(String fromURL)
throws MalformedURLException
fromURL - The URL to copy from.
MalformedURLException
javax.portlet.PortletURL createRedirectURL(String fromURL,
Map<String,List<String>> parameters)
throws MalformedURLException
fromURL - The URL to copy from.
MalformedURLException
javax.portlet.PortletURL createRenderURL(String fromURL)
throws MalformedURLException
fromURL - The URL to copy from.
MalformedURLException
javax.portlet.ResourceURL createResourceURL(String fromURL)
throws MalformedURLException
fromURL - The URL to copy from. Example expected value:
/portlet-context-path/*\/javax.faces.resource/jsf.js?ln=javax.faces
MalformedURLExceptionString fixRequestParameterValue(String value)
value - The request parameter value that needs to be fixed.
void maintainRenderParameters(javax.portlet.EventRequest eventRequest,
javax.portlet.EventResponse eventResponse)
void redirect(String url)
throws IOException
IOExceptionboolean isAbleToAddScriptResourceToHead()
boolean isAbleToAddScriptTextToHead()
boolean isAbleToAddStyleSheetResourceToHead()
boolean isPostRedirectGetSupported()
true if the POST-REDIRECT-GET design pattern is supported, otherwise false.boolean isAbleToSetHttpStatusCode()
ResourceResponse.HTTP_STATUS_CODE property on the ResourceResponse.
boolean isAbleToSetResourceResponseBufferSize()
boolean isAbleToForwardOnDispatch()
true if able, otherwise false.String[] getHeader(String name)
javax.faces.context.ResponseWriter getHeadResponseWriter(javax.faces.context.ResponseWriter wrappableResponseWriter)
long getHttpServletRequestDateHeader(String name)
void setMimeResponseContentType(javax.portlet.MimeResponse mimeResponse,
String contentType)
MimeResponse.setContentType(String) method.
contentType - The contentType that is to be set on the specified MimeResponse.String getRequestParameter(String name)
getRequestParameter(String) method before returning a value.
name - The request parameter name.
String[] getRequestParameterValues(String name)
getRequestParameter(String) method before returning a
value.
name - The request parameter name.
String getRequestQueryString()
String getRequestURL()
String getResponseNamespace()
boolean isNamespacedParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||