|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.GenericPortlet
org.jboss.portal.core.samples.weather.WeatherPortlet
public class WeatherPortlet
Simple weather portlet that redads Yahoo RSS Weather feeds and uses XSLT for presentation.
Field Summary | |
---|---|
static org.apache.log4j.Logger |
log
Logger |
Constructor Summary | |
---|---|
WeatherPortlet()
|
Method Summary | |
---|---|
protected void |
doEdit(RenderRequest request,
RenderResponse response)
Allow edit of weather location. |
protected void |
doHelp(RenderRequest request,
RenderResponse response)
Helper method to serve up the help mode. |
protected void |
doView(RenderRequest request,
RenderResponse response)
Helper method to serve up the mandatory view mode. |
void |
init()
Compile the XSL File. |
void |
processAction(ActionRequest request,
ActionResponse response)
Process weather location edit and store in user preferences. |
Methods inherited from class javax.portlet.GenericPortlet |
---|
destroy, doDispatch, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, render |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static org.apache.log4j.Logger log
Constructor Detail |
---|
public WeatherPortlet()
Method Detail |
---|
public void init()
init
in class GenericPortlet
protected void doView(RenderRequest request, RenderResponse response) throws java.io.IOException, PortletException
GenericPortlet
view
mode.
The default implementation throws an exception.
doView
in class GenericPortlet
request
- the portlet requestresponse
- the render response
java.io.IOException
- if the streaming causes an I/O problem
PortletException
- if the portlet cannot fulfilling the request
UnavailableException
- if the portlet is unavailable to perform render at this time
PortletSecurityException
- if the portlet cannot fullfill this request because of security reasonsprotected void doEdit(RenderRequest request, RenderResponse response) throws java.io.IOException, PortletException
doEdit
in class GenericPortlet
request
- response
-
java.io.IOException
PortletException
UnavailableException
- if the portlet is unavailable to perform render at this time
PortletSecurityException
- if the portlet cannot fullfill this request because of security reasonsprotected void doHelp(RenderRequest request, RenderResponse response) throws java.io.IOException, PortletException
GenericPortlet
help
mode.
The default implementation throws an exception.
doHelp
in class GenericPortlet
request
- the portlet requestresponse
- the render response
java.io.IOException
- if the streaming causes an I/O problem
PortletException
- if the portlet cannot fulfilling the request
UnavailableException
- if the portlet is unavailable to perform render at this time
PortletSecurityException
- if the portlet cannot fullfill this request because of security reasonspublic void processAction(ActionRequest request, ActionResponse response) throws PortletException
processAction
in interface Portlet
processAction
in class GenericPortlet
request
- response
-
PortletException
UnavailableException
- if the portlet is unavailable to process the action at this time
PortletSecurityException
- if the portlet cannot fullfill this request because of security reasons
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |