com.liferay.portal.kernel.portlet
Class LiferayPortlet
java.lang.Object
javax.portlet.GenericPortlet
com.liferay.portal.kernel.portlet.LiferayPortlet
- All Implemented Interfaces:
- EventPortlet, Portlet, PortletConfig, ResourceServingPortlet
- Direct Known Subclasses:
- MVCPortlet, StrutsPortlet, WAIPortlet
public class LiferayPortlet
- extends GenericPortlet
Method Summary |
protected void |
addSuccessMessage(ActionRequest actionRequest,
ActionResponse actionResponse)
|
protected boolean |
callActionMethod(ActionRequest actionRequest,
ActionResponse actionResponse)
|
protected void |
checkPath(String path)
|
protected void |
doAbout(RenderRequest renderRequest,
RenderResponse renderResponse)
|
protected void |
doConfig(RenderRequest renderRequest,
RenderResponse renderResponse)
|
protected void |
doDispatch(RenderRequest renderRequest,
RenderResponse renderResponse)
|
protected void |
doEditDefaults(RenderRequest renderRequest,
RenderResponse renderResponse)
|
protected void |
doEditGuest(RenderRequest renderRequest,
RenderResponse renderResponse)
|
protected void |
doPreview(RenderRequest renderRequest,
RenderResponse renderResponse)
|
protected void |
doPrint(RenderRequest renderRequest,
RenderResponse renderResponse)
|
protected Method |
getActionMethod(String actionName)
|
protected Set<String> |
getPaths(String path,
String extension)
|
protected String |
getRedirect(ActionRequest actionRequest,
ActionResponse actionResponse)
|
protected String |
getTitle(RenderRequest renderRequest)
|
void |
init()
|
protected void |
initValidPaths(String rootPath,
String extension)
|
protected boolean |
isAlwaysSendRedirect()
|
protected boolean |
isProcessActionRequest(ActionRequest actionRequest)
|
protected boolean |
isProcessPortletRequest(PortletRequest portletRequest)
|
protected boolean |
isProcessRenderRequest(RenderRequest renderRequest)
|
protected boolean |
isProcessResourceRequest(ResourceRequest resourceRequest)
|
protected boolean |
isSessionErrorException(Throwable cause)
|
protected boolean |
isValidPath(String path)
|
void |
processAction(ActionRequest actionRequest,
ActionResponse actionResponse)
|
protected void |
sendRedirect(ActionRequest actionRequest,
ActionResponse actionResponse)
|
void |
serveResource(ResourceRequest resourceRequest,
ResourceResponse resourceResponse)
|
protected String |
translate(PortletRequest portletRequest,
String key)
|
protected String |
translate(PortletRequest portletRequest,
String key,
Object argument)
|
protected String |
translate(PortletRequest portletRequest,
String key,
Object[] arguments)
|
protected void |
writeJSON(PortletRequest portletRequest,
ActionResponse actionResponse,
Object json)
|
protected void |
writeJSON(PortletRequest portletRequest,
MimeResponse mimeResponse,
Object json)
|
Methods inherited from class javax.portlet.GenericPortlet |
destroy, doEdit, doHeaders, doHelp, doView, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, init, processEvent, render |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addProcessActionSuccessMessage
protected boolean addProcessActionSuccessMessage
alwaysSendRedirect
protected boolean alwaysSendRedirect
validPaths
protected Set<String> validPaths
LiferayPortlet
public LiferayPortlet()
init
public void init()
throws PortletException
- Overrides:
init
in class GenericPortlet
- Throws:
PortletException
processAction
public void processAction(ActionRequest actionRequest,
ActionResponse actionResponse)
throws IOException,
PortletException
- Specified by:
processAction
in interface Portlet
- Overrides:
processAction
in class GenericPortlet
- Throws:
IOException
PortletException
serveResource
public void serveResource(ResourceRequest resourceRequest,
ResourceResponse resourceResponse)
throws IOException,
PortletException
- Specified by:
serveResource
in interface ResourceServingPortlet
- Overrides:
serveResource
in class GenericPortlet
- Throws:
IOException
PortletException
addSuccessMessage
protected void addSuccessMessage(ActionRequest actionRequest,
ActionResponse actionResponse)
callActionMethod
protected boolean callActionMethod(ActionRequest actionRequest,
ActionResponse actionResponse)
throws PortletException
- Throws:
PortletException
checkPath
protected void checkPath(String path)
throws PortletException
- Throws:
PortletException
doAbout
protected void doAbout(RenderRequest renderRequest,
RenderResponse renderResponse)
throws IOException,
PortletException
- Throws:
IOException
PortletException
doConfig
protected void doConfig(RenderRequest renderRequest,
RenderResponse renderResponse)
throws IOException,
PortletException
- Throws:
IOException
PortletException
doDispatch
protected void doDispatch(RenderRequest renderRequest,
RenderResponse renderResponse)
throws IOException,
PortletException
- Overrides:
doDispatch
in class GenericPortlet
- Throws:
IOException
PortletException
doEditDefaults
protected void doEditDefaults(RenderRequest renderRequest,
RenderResponse renderResponse)
throws IOException,
PortletException
- Throws:
IOException
PortletException
doEditGuest
protected void doEditGuest(RenderRequest renderRequest,
RenderResponse renderResponse)
throws IOException,
PortletException
- Throws:
IOException
PortletException
doPreview
protected void doPreview(RenderRequest renderRequest,
RenderResponse renderResponse)
throws IOException,
PortletException
- Throws:
IOException
PortletException
doPrint
protected void doPrint(RenderRequest renderRequest,
RenderResponse renderResponse)
throws IOException,
PortletException
- Throws:
IOException
PortletException
getActionMethod
protected Method getActionMethod(String actionName)
throws NoSuchMethodException
- Throws:
NoSuchMethodException
getPaths
protected Set<String> getPaths(String path,
String extension)
getRedirect
protected String getRedirect(ActionRequest actionRequest,
ActionResponse actionResponse)
getTitle
protected String getTitle(RenderRequest renderRequest)
- Overrides:
getTitle
in class GenericPortlet
initValidPaths
protected void initValidPaths(String rootPath,
String extension)
isAlwaysSendRedirect
protected boolean isAlwaysSendRedirect()
isProcessActionRequest
protected boolean isProcessActionRequest(ActionRequest actionRequest)
isProcessPortletRequest
protected boolean isProcessPortletRequest(PortletRequest portletRequest)
isProcessRenderRequest
protected boolean isProcessRenderRequest(RenderRequest renderRequest)
isProcessResourceRequest
protected boolean isProcessResourceRequest(ResourceRequest resourceRequest)
isSessionErrorException
protected boolean isSessionErrorException(Throwable cause)
isValidPath
protected boolean isValidPath(String path)
throws PortletException
- Throws:
PortletException
sendRedirect
protected void sendRedirect(ActionRequest actionRequest,
ActionResponse actionResponse)
throws IOException
- Throws:
IOException
translate
protected String translate(PortletRequest portletRequest,
String key)
translate
protected String translate(PortletRequest portletRequest,
String key,
Object argument)
translate
protected String translate(PortletRequest portletRequest,
String key,
Object[] arguments)
writeJSON
protected void writeJSON(PortletRequest portletRequest,
ActionResponse actionResponse,
Object json)
throws IOException
- Throws:
IOException
writeJSON
protected void writeJSON(PortletRequest portletRequest,
MimeResponse mimeResponse,
Object json)
throws IOException
- Throws:
IOException