org.apache.jetspeed.portlet.xml
Class SaxPortlet
java.lang.Object
|
+--org.apache.jetspeed.portlet.xml.SaxPortlet
- All Implemented Interfaces:
- Portlet
- public abstract class SaxPortlet
- extends Object
- implements Portlet
The SaxPortlet
is an abstract implementation of the
Portlet
that enables the use of SAX events to be sent
as the response.
- See Also:
SaxPortletRequest
,
SaxPortletResponse
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SaxPortlet
public SaxPortlet()
service
public final void service(PortletRequest request,
PortletResponse response)
throws PortletException,
IOException
- Description copied from interface:
Portlet
- Called by the portlet container to ask this portlet to generate
its markup using the given request/response pair. Depending
on the mode of the portlet and the requesting client device,
the markup will be different. Also, the portlet can take language
preferences and/or personalized settings into account.
- Specified by:
service
in interface Portlet
- Following copied from interface:
org.apache.jetspeed.portlet.Portlet
- Parameters:
request
- the portlet requestresponse
- the portlet response- Throws:
PortletException
- if the portlet has trouble fulfilling the
rendering requestIOException
- if the streaming causes an I/O problem
service
public abstract void service(SaxPortletRequest request,
SaxPortletResponse response)
throws PortletException,
IOException
- This portlet maps the original
service()
call to this
method. With the derived response, the two SAX handlers are
accessible for sending SAX events as the response.
- Parameters:
request
- the stream portlet requestresponse
- the stream portlet response