|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.portal.portlets.viewprocessor.XSLViewProcessor
Simple ViewProcessor which does a basic XSLT transform with the stylesheet parameter and the given URL.
Field Summary | |
protected org.w3c.dom.Document |
document
|
static java.lang.String |
ERROR_NOT_VALID
|
static java.lang.String |
INVALID_TYPE
|
protected java.util.Hashtable |
stylesheets
|
Constructor Summary | |
XSLViewProcessor()
|
Method Summary | |
protected java.io.Reader |
cleanse(java.lang.String content)
Given a URL to some content, clean the content to Xerces can handle it better. |
protected org.w3c.dom.Node |
getNode(org.w3c.dom.Node start,
java.lang.String name)
Utility method for traversing the document parsed DOM tree and retrieving a Node by tagname |
void |
init(Portlet portlet)
This method loads the init parameters and parse the document tied to this portlet |
java.lang.Object |
processView(GenericMVCContext context)
This methods outputs the content of the portlet for a given request. |
boolean |
supportsType(MimeType mimeType)
This portlet supports has many types as those it has stylesheets defined for in its parameters |
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 ERROR_NOT_VALID
public static final java.lang.String INVALID_TYPE
protected org.w3c.dom.Document document
protected java.util.Hashtable stylesheets
Constructor Detail |
public XSLViewProcessor()
Method Detail |
public void init(Portlet portlet) throws PortletException
init
in interface ViewProcessor
portlet
-
PortletException
public java.lang.Object processView(GenericMVCContext context)
processView
in interface ViewProcessor
context
-
public boolean supportsType(MimeType mimeType)
mimeType
- the MIME type queried
Portlet.supportsType(org.apache.jetspeed.util.MimeType)
protected org.w3c.dom.Node getNode(org.w3c.dom.Node start, java.lang.String name)
start
- the parent node for the searchname
- the tag name to be searched for
protected java.io.Reader cleanse(java.lang.String content) throws java.io.IOException
content
-
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |