|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AjaxPortletSupport
| Nested Class Summary | |
|---|---|
static interface |
AjaxPortletSupport.ModelGenerator
Generates the data model to pass to the servlet for rendering. |
| Field Summary | |
|---|---|
static String |
DEFAULT_AJAX_HANDLER_ERROR_KEY
|
static String |
DEFAULT_AJAX_SERVLET_NAME
|
| Method Summary | |
|---|---|
Map<String,?> |
getAjaxModel(HttpServletRequest request,
HttpServletResponse response)
Gets the model for the request, if the model is null a 404 is sent to the browser and null is returned. |
void |
redirectAjaxResponse(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
AjaxPortletSupport.ModelGenerator generator)
Calls #redirectAjaxResponse(ActionRequest, ActionResponse, ModelGenerator)) passing DEFAULT_AJAX_SERVLET_NAME for the servlet name. |
void |
redirectAjaxResponse(Map<String,?> model,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Calls redirectAjaxResponse(String, Map, ActionRequest, ActionResponse) passing DEFAULT_AJAX_SERVLET_NAME for the servlet name. |
void |
redirectAjaxResponse(String ajaxServletName,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
AjaxPortletSupport.ModelGenerator generator)
Generates a new session key and uses that to pass the model to the servlet. |
void |
redirectAjaxResponse(String ajaxServletName,
Map<String,?> model,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Generates a new session key and uses that to pass the model to the servlet. |
| Field Detail |
|---|
static final String DEFAULT_AJAX_SERVLET_NAME
static final String DEFAULT_AJAX_HANDLER_ERROR_KEY
| Method Detail |
|---|
void redirectAjaxResponse(String ajaxServletName,
Map<String,?> model,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws IOException
ajaxServletName - Name of the ajax servlet to redirect tomodel - The data model to pass to the servlet
IOException
void redirectAjaxResponse(Map<String,?> model,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws IOException
redirectAjaxResponse(String, Map, ActionRequest, ActionResponse) passing DEFAULT_AJAX_SERVLET_NAME for the servlet name.
IOException
void redirectAjaxResponse(String ajaxServletName,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
AjaxPortletSupport.ModelGenerator generator)
throws IOException
AjaxPortletSupport.ModelGenerator.generate(ActionRequest, ActionResponse)
using DEFAULT_AJAX_HANDLER_ERROR_KEY as the error key.
ajaxServletName - Name of the ajax servlet to redirect togenerator - ModelGenerator used to generate the model to pass
IOException
void redirectAjaxResponse(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
AjaxPortletSupport.ModelGenerator generator)
throws IOException
#redirectAjaxResponse(ActionRequest, ActionResponse, ModelGenerator)) passing DEFAULT_AJAX_SERVLET_NAME for the servlet name.
IOException
Map<String,?> getAjaxModel(HttpServletRequest request,
HttpServletResponse response)
throws ServletRequestBindingException,
IOException
DEFAULT_AJAX_HANDLER_ERROR_KEY a 500 is sent to the browser but the model is still
returned for rendering.
ServletRequestBindingException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||