|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.GenericPortlet
org.jafer.portlets.AbstractXSLTPortlet
public abstract class AbstractXSLTPortlet
Field Summary | |
---|---|
protected static javax.xml.parsers.DocumentBuilder |
domBuilder
|
private java.lang.String[][] |
vTableAction
|
private java.lang.String[][] |
vTableEdit
|
private java.lang.String[][] |
vTableHelp
|
private java.lang.String[][] |
vTableView
|
Constructor Summary | |
---|---|
AbstractXSLTPortlet()
|
Method Summary | |
---|---|
private java.lang.String |
dispatchVTable(javax.portlet.PortletRequest request,
java.lang.String[][] vTable,
java.lang.String action,
org.w3c.dom.Document[] xml)
|
protected void |
doEdit(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
protected void |
doHelp(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
protected void |
doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
protected abstract java.lang.String[][] |
getVTableAction()
Get the Action dispatch table for processing JSR-168 action requests |
protected abstract java.lang.String[][] |
getVTableEdit()
Get the Edit dispatch table for processing JSR-168 Edit requests |
protected abstract java.lang.String[][] |
getVTableHelp()
Get the Help dispatch table for processing JSR-168 Help requests |
protected abstract java.lang.String[][] |
getVTableView()
Get the View dispatch table for processing JSR-168 View requests |
void |
processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
|
private void |
render(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
java.lang.String[][] vTable)
|
Methods inherited from class javax.portlet.GenericPortlet |
---|
destroy, doDispatch, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, init, render |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static javax.xml.parsers.DocumentBuilder domBuilder
private java.lang.String[][] vTableAction
private java.lang.String[][] vTableEdit
private java.lang.String[][] vTableHelp
private java.lang.String[][] vTableView
Constructor Detail |
---|
public AbstractXSLTPortlet()
Method Detail |
---|
protected abstract java.lang.String[][] getVTableAction()
Each row should be of the form:
action parameter value, java method, next action parameter
where action parameter value is the Action parameter passed by the portlet (first row used if no Action parameter present)
java method is a java method in the class of the form public void ...(ActionRequest request) to handle the action
next action parameter is the Action parameter to set for the subsequent renderRequest
protected abstract java.lang.String[][] getVTableView()
Each row should be of the form:
action parameter value, java method, xslt path
where action parameter value is the Action parameter passed by the portlet (first row used if no Action parameter present)
java method is a java method in the class of the form public Document ...(RenderRequest request) throws PortletException which should return the required XML
xslt path is the relative path to an XSLT tranform to take the XML into a HTML fragment
protected abstract java.lang.String[][] getVTableHelp()
Each row should be of the form:
action parameter value, java method, xslt path
where action parameter value is the Action parameter passed by the portlet (first row used if no Action parameter present)
java method is a java method in the class of the form public Document ...(RenderRequest request) throws PortletException which should return the required XML
xslt path is the relative path to an XSLT tranform to take the XML into a HTML fragment
protected abstract java.lang.String[][] getVTableEdit()
Each row should be of the form:
action parameter value, java method, xslt path
where action parameter value is the Action parameter passed by the portlet (first row used if no Action parameter present)
java method is a java method in the class of the form public Document ...(RenderRequest request) throws PortletException which should return the required XML
xslt path is the relative path to an XSLT tranform to take the XML into a HTML fragment
private java.lang.String dispatchVTable(javax.portlet.PortletRequest request, java.lang.String[][] vTable, java.lang.String action, org.w3c.dom.Document[] xml) throws javax.portlet.PortletException
javax.portlet.PortletException
private void render(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, java.lang.String[][] vTable) throws javax.portlet.PortletException
javax.portlet.PortletException
public void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws javax.portlet.PortletException, java.io.IOException
processAction
in interface javax.portlet.Portlet
processAction
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
java.io.IOException
protected void doHelp(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, java.io.IOException
doHelp
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
java.io.IOException
protected void doEdit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, java.io.IOException
doEdit
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
java.io.IOException
protected void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, java.io.IOException
doView
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |