|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object GenericPortlet com.vaadin.terminal.gwt.server.AbstractApplicationPortlet
public abstract class AbstractApplicationPortlet
Portlet 2.0 base class. This replaces the servlet in servlet/portlet 1.0 deployments and handles various portlet requests from the browser. TODO Document me!
Nested Class Summary | |
---|---|
static class |
AbstractApplicationPortlet.AbstractApplicationPortletWrapper
|
class |
AbstractApplicationPortlet.RequestError
|
protected static class |
AbstractApplicationPortlet.RequestType
|
static class |
AbstractApplicationPortlet.WrappedGateinRequest
|
static class |
AbstractApplicationPortlet.WrappedHttpAndPortletRequest
|
static class |
AbstractApplicationPortlet.WrappedLiferayRequest
|
Field Summary | |
---|---|
static String |
PORTAL_PARAMETER_VAADIN_THEME
This portal parameter is used to define the name of the Vaadin theme that is used for all Vaadin applications in the portal. |
static String |
PORTLET_PARAMETER_STYLE
This portlet parameter is used to add styles to the main element. |
static String |
WRITE_AJAX_PAGE_SCRIPT_WIDGETSET_SHOULD_WRITE
|
Constructor Summary | |
---|---|
AbstractApplicationPortlet()
|
Method Summary | |
---|---|
protected WrappedPortletRequest |
createWrappedRequest(PortletRequest request)
Wraps the request in a (possibly portal specific) wrapped portlet request. |
protected void |
doDispatch(RenderRequest request,
RenderResponse response)
|
protected abstract Class<? extends Application> |
getApplicationClass()
|
protected PortletApplicationContext2 |
getApplicationContext(PortletSession portletSession)
Gets the application context for a PortletSession. |
protected String |
getApplicationOrSystemProperty(String parameterName,
String defaultValue)
Gets an application or system property value. |
protected String |
getApplicationProperty(String parameterName)
Gets an application property value. |
protected ClassLoader |
getClassLoader()
|
protected Application |
getNewApplication(PortletRequest request)
|
protected AbstractApplicationPortlet.RequestType |
getRequestType(PortletRequest request)
|
protected Application.SystemMessages |
getSystemMessages()
Get system messages from the current application class |
protected String |
getSystemProperty(String parameterName)
Gets an system property value. |
protected void |
handleRequest(PortletRequest request,
PortletResponse response)
|
void |
init(PortletConfig config)
|
boolean |
isProductionMode()
Returns true if the servlet is running in production mode. |
void |
processAction(ActionRequest request,
ActionResponse response)
|
void |
processEvent(EventRequest request,
EventResponse response)
|
void |
serveResource(ResourceRequest request,
ResourceResponse response)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PORTLET_PARAMETER_STYLE
public static final String PORTAL_PARAMETER_VAADIN_THEME
public static final String WRITE_AJAX_PAGE_SCRIPT_WIDGETSET_SHOULD_WRITE
Constructor Detail |
---|
public AbstractApplicationPortlet()
Method Detail |
---|
public void init(PortletConfig config) throws PortletException
PortletException
protected String getApplicationProperty(String parameterName)
parameterName
- the Name or the parameter.
protected String getSystemProperty(String parameterName)
parameterName
- the Name or the parameter.
protected String getApplicationOrSystemProperty(String parameterName, String defaultValue)
parameterName
- the Name or the parameter.defaultValue
- the Default to be used.
protected AbstractApplicationPortlet.RequestType getRequestType(PortletRequest request)
public boolean isProductionMode()
protected void handleRequest(PortletRequest request, PortletResponse response) throws PortletException, IOException
PortletException
IOException
protected WrappedPortletRequest createWrappedRequest(PortletRequest request)
request
- The original PortletRequest
public void processEvent(EventRequest request, EventResponse response) throws PortletException, IOException
PortletException
IOException
public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException
PortletException
IOException
protected void doDispatch(RenderRequest request, RenderResponse response) throws PortletException, IOException
PortletException
IOException
public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException
PortletException
IOException
protected abstract Class<? extends Application> getApplicationClass() throws ClassNotFoundException
ClassNotFoundException
protected Application getNewApplication(PortletRequest request) throws PortletException
PortletException
protected ClassLoader getClassLoader() throws PortletException
PortletException
protected Application.SystemMessages getSystemMessages()
protected PortletApplicationContext2 getApplicationContext(PortletSession portletSession)
portletSession
- the portlet session.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |