|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.portlet.GenericPortlet
org.xwiki.portlet.DispatchPortlet
public class DispatchPortlet
Dispatches portlet requests coming from a JSR286 compatible portal to the URL provided either in the
PARAMETER_DISPATCH_URL request parameter on in the DispatchURLFactory.PARAMETER_DISPATCH_URL URL
parameter. The dispatch target must be on the same context path as the dispatch portlet.
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_DISPATCHED
The request attribute used to mark the request as dispatched. |
static String |
ATTRIBUTE_REDIRECT_URL
The request attribute used to pass the redirect URL to the dispatch filter in order to adjust the dispatched request accordingly. |
static String |
ATTRIBUTE_RESPONSE_DATA
The data of a dispatched response. |
static String |
ATTRIBUTE_RESPONSE_DATA_MAP
The map of response data, stored on the session. |
static String |
PARAMETER_DISPATCH_URL
The name of the portlet request parameter holding the URL to dispatch the request to. |
static String |
PARAMETER_DISPATCHED_RESPONSE_KEY
The key to access the data of a dispatched response from the session. |
static String |
PREFERENCE_DEFAULT_DISPATCH_URL
The name of the preference holding the default dispatch URL, i.e. |
static String |
PREFERENCE_EDIT_URL
The name of the preference holding the edit URL, i.e. |
static String |
PREFERENCE_TITLE
The name of the preference that controls the title of the portlet. |
| Constructor Summary | |
|---|---|
DispatchPortlet()
|
|
| Method Summary | |
|---|---|
protected void |
doEdit(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
protected void |
doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
protected String |
getDefaultDispatchURL(javax.portlet.PortletPreferences preferences)
|
protected String |
getTitle(javax.portlet.RenderRequest request)
|
void |
processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
|
protected void |
processEdit(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Processes the edit action. |
protected void |
processView(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Processed the view action. |
void |
serveResource(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
|
| Methods inherited from class javax.portlet.GenericPortlet |
|---|
destroy, doDispatch, doHeaders, doHelp, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, init, init, processEvent, render |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PARAMETER_DISPATCH_URL
DispatchURLFactory.PARAMETER_DISPATCH_URL which is a URL parameter set on the server side, this is a
request parameter received from the client side as part of the post body data. When determining the dispatch URL,
if present, this request parameter overwrites the URL parameter.
DispatchURLFactory.PARAMETER_DISPATCH_URL,
Constant Field Valuespublic static final String PARAMETER_DISPATCHED_RESPONSE_KEY
public static final String PREFERENCE_DEFAULT_DISPATCH_URL
public static final String PREFERENCE_EDIT_URL
public static final String PREFERENCE_TITLE
public static final String ATTRIBUTE_RESPONSE_DATA_MAP
public static final String ATTRIBUTE_RESPONSE_DATA
public static final String ATTRIBUTE_REDIRECT_URL
Forwarding the request multiple times is not enough because some portlet containers send all the requests to the same dispatch target, the target of the first dispatch.
DispatchURLFactory.PARAMETER_DISPATCH_URL,
Constant Field Valuespublic static final String ATTRIBUTE_DISPATCHED
| Constructor Detail |
|---|
public DispatchPortlet()
| Method Detail |
|---|
public void processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws javax.portlet.PortletException,
IOException
processAction in interface javax.portlet.PortletprocessAction in class javax.portlet.GenericPortletjavax.portlet.PortletException
IOException
protected void processView(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws javax.portlet.PortletException,
IOException
request - the action requestresponse - the action response
IOException - if writing the response fails
javax.portlet.PortletException - if processing the action fails
protected void processEdit(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws javax.portlet.PortletException,
IOException
request - the action requestresponse - the action response
javax.portlet.PortletException - if processing the edit form fails
IOException - if saving the portlet preferences failsprotected String getTitle(javax.portlet.RenderRequest request)
getTitle in class javax.portlet.GenericPortlet
protected void doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
doView in class javax.portlet.GenericPortletjavax.portlet.PortletException
IOException
protected void doEdit(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
doEdit in class javax.portlet.GenericPortletjavax.portlet.PortletException
IOException
public void serveResource(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
throws javax.portlet.PortletException,
IOException
serveResource in interface javax.portlet.ResourceServingPortletserveResource in class javax.portlet.GenericPortletjavax.portlet.PortletException
IOExceptionprotected String getDefaultDispatchURL(javax.portlet.PortletPreferences preferences)
preferences - the portlet preferences to take the default dispatch URL from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||