|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--net.sf.jportlet.portlet.Portlet | +--net.sf.jportlet.portlet.PortletAdapter | +--net.sf.jportlet.portlet.application.PortletProxy
Proxy that intercepts all the calls to Portlet
Nested Class Summary |
Nested classes inherited from class net.sf.jportlet.portlet.Portlet |
Portlet.Markup, Portlet.Mode |
Field Summary | |
static java.lang.String |
ANONYMOUS_ID
|
Constructor Summary | |
PortletProxy(net.sf.jportlet.portlet.descriptor.PortletDescriptor descriptor)
|
Method Summary | |
void |
actionPerformed(net.sf.jportlet.portlet.event.ActionEvent event)
Notifies this listener that the action which the listener is watching for has been performed |
void |
destroy()
|
net.sf.jportlet.portlet.descriptor.PortletDescriptor |
getDescriptor()
|
net.sf.jportlet.portlet.application.Interceptor[] |
getInterceptors()
|
long |
getLastModified(net.sf.jportlet.portlet.PortletRequest request)
Returns the time the response of the Portlet object was last modified, in milliseconds since midnight January 1, 1970 GMT. |
net.sf.jportlet.portlet.Portlet |
getPortlet()
|
java.lang.String |
getPortletBody(net.sf.jportlet.impl.PortletRequestImpl request,
net.sf.jportlet.impl.PortletResponseImpl response)
Return the body of the portlet. |
net.sf.jportlet.portlet.PortletConfig |
getPortletConfig()
Returns the configuration of the portlet |
void |
init(net.sf.jportlet.portlet.PortletConfig portletConfig)
Initialize the portlet |
boolean |
isDirty(net.sf.jportlet.portlet.PortletRequest request)
Returns true if the portlet has been modified since the last time the portlet has
been rendered |
void |
login(net.sf.jportlet.portlet.PortletRequest request)
Called by the portlet container to ask the portlet to initialize a personalized user experience |
void |
logout(net.sf.jportlet.portlet.PortletRequest request)
Called by the portlet container to indicate that a concrete portlet instance is being removed |
void |
messageReceived(net.sf.jportlet.portlet.event.MessageEvent event)
Notifies this listener that the message which the listener is watching for has been performed |
void |
service(net.sf.jportlet.portlet.PortletRequest request,
net.sf.jportlet.portlet.PortletResponse response)
This function is invoke by the container in order to render the portlet |
Methods inherited from class net.sf.jportlet.portlet.PortletAdapter |
doConfigure, doEdit, doHelp, doView, getLog, getPortletContext, getText, include |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ANONYMOUS_ID
Constructor Detail |
public PortletProxy(net.sf.jportlet.portlet.descriptor.PortletDescriptor descriptor) throws PortletException
Method Detail |
public void actionPerformed(net.sf.jportlet.portlet.event.ActionEvent event) throws PortletException
ActionListener
actionPerformed
in interface ActionListener
event
-
PortletException
ActionListener.actionPerformed(net.sf.jportlet.portlet.event.ActionEvent)
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
Servlet.destroy()
public net.sf.jportlet.portlet.descriptor.PortletDescriptor getDescriptor()
public net.sf.jportlet.portlet.application.Interceptor[] getInterceptors() throws PortletException
PortletException
public long getLastModified(net.sf.jportlet.portlet.PortletRequest request)
Portlet
Portlets that can quickly determine their last modification time should override this method. This makes browser and proxy caches work more effectively, reducing the load on server and network resources
getLastModified
in class PortletAdapter
Portlet.getLastModified(net.sf.jportlet.portlet.PortletRequest)
public net.sf.jportlet.portlet.Portlet getPortlet()
public java.lang.String getPortletBody(net.sf.jportlet.impl.PortletRequestImpl request, net.sf.jportlet.impl.PortletResponseImpl response) throws PortletException, java.io.IOException
PortletResponse
by {Portlet#service()}
request
- response
-
PortletException
java.io.IOException
public net.sf.jportlet.portlet.PortletConfig getPortletConfig()
Portlet
getPortletConfig
in class Portlet
Portlet.getPortletConfig()
public void init(net.sf.jportlet.portlet.PortletConfig portletConfig) throws PortletException
Portlet
init
in class Portlet
PortletException
- if any error occursPortlet.init(net.sf.jportlet.portlet.PortletConfig)
public boolean isDirty(net.sf.jportlet.portlet.PortletRequest request)
true
if the portlet has been modified since the last time the portlet has
been rendered
request
-
public void login(net.sf.jportlet.portlet.PortletRequest request) throws PortletException
Portlet
login
in class PortletAdapter
PortletException
Portlet.login(net.sf.jportlet.portlet.PortletRequest)
public void logout(net.sf.jportlet.portlet.PortletRequest request) throws PortletException
Portlet
logout
in class PortletAdapter
PortletException
Portlet.logout(net.sf.jportlet.portlet.PortletRequest)
public void messageReceived(net.sf.jportlet.portlet.event.MessageEvent event) throws PortletException
MessageListener
messageReceived
in interface MessageListener
event
-
PortletException
MessageListener.messageReceived(net.sf.jportlet.portlet.event.MessageEvent)
public void service(net.sf.jportlet.portlet.PortletRequest request, net.sf.jportlet.portlet.PortletResponse response) throws PortletException, java.io.IOException
Portlet
service
in class PortletAdapter
request
- current requestresponse
- current response
PortletException
- if any other error
java.io.IOException
- if any IO error occursPortlet.service(net.sf.jportlet.portlet.PortletRequest, net.sf.jportlet.portlet.PortletResponse)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |