|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ibisph.mvc.view.XSLTXMLTransformation
public class XSLTXMLTransformation
Base/core XML/XSLT Transformation View. The view is based on an XSLT
System ID resource which is passed in via the constructor (required)
and a mostly required but optional XML file/document which is passed
to the render method in the model map. This view forms
the main view component for the IBISPH-View application as most of
pages are created with a XSLT stylesheet merging in XML data content.
| Field Summary | |
|---|---|
protected java.util.Properties |
extraParameters
|
protected java.lang.String |
parametersMapModelName
|
protected java.lang.String |
responseContentType
|
protected Transformation |
transformation
|
protected java.lang.String |
xmlModelName
|
protected SystemID |
xmlSystemIDResource
|
protected java.lang.String |
xsltModelName
|
protected SystemID |
xsltSystemIDResource
|
| Constructor Summary | |
|---|---|
XSLTXMLTransformation(SystemID xsltSystemIDResource,
Transformation transformation)
Constructor with required resources. |
|
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
Spring View required method that the request dispatcher servlet probably calls to set the response content type. |
void |
render(java.util.Map model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Spring framework MVC View Render method for XSLT/XML transformation view requests. |
void |
setContentType(java.lang.String responseContentType)
Sets the default HTTP response content type. |
void |
setExtraParameters(java.util.Properties extraParameters)
Mechanism that allows a static list of deployment defined name/value pairs of strings to be sent to the XSLT transformation process (as parameters). |
void |
setParametersMapModelName(java.lang.String parametersMapModelName)
Sets extra parameters map model name/key value. |
void |
setTransformation(Transformation transformation)
Sets the XML/XSLT transformation object. |
void |
setXMLModelName(java.lang.String xmlModelName)
Sets XML model name map key value. |
void |
setXMLSystemIDResource(SystemID xmlSystemIDResource)
Sets the XML System ID for the model portion of the Spring MVC framework. |
void |
setXSLTModelName(java.lang.String xsltModelName)
Provides a way to specify the XSLT System ID model name. |
void |
setXSLTSystemIDResource(SystemID xsltSystemIDResource)
Sets the XSLT System ID for the view portion of the Spring MVC framework. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SystemID xmlSystemIDResource
protected SystemID xsltSystemIDResource
protected Transformation transformation
protected java.lang.String xsltModelName
protected java.lang.String xmlModelName
protected java.lang.String parametersMapModelName
protected java.util.Properties extraParameters
protected java.lang.String responseContentType
| Constructor Detail |
|---|
public XSLTXMLTransformation(SystemID xsltSystemIDResource,
Transformation transformation)
xsltSystemIDResource - XSLT system ID for this view instance.transformation - XSLT transformation/transformer to be used for this
view instance.| Method Detail |
|---|
public void setXMLModelName(java.lang.String xmlModelName)
xmlModelName - XML map model key that the controller and view use
to access the model from the map.public void setXSLTModelName(java.lang.String xsltModelName)
xsltModelName - model map key for the XSLT system id or filename and
path string.public void setParametersMapModelName(java.lang.String parametersMapModelName)
parametersMapModelName - Parameters map key that the controller
used to put any/all parameters into the model map.public void setXMLSystemIDResource(SystemID xmlSystemIDResource)
xmlSystemIDResource - XML data file's system ID to be used for the
XML/XSLT transformation.public void setXSLTSystemIDResource(SystemID xsltSystemIDResource)
xsltSystemIDResource - XSLT system ID to be used for the XML/XSLT
transformation.public void setTransformation(Transformation transformation)
transformation - Required XML/XSLT transformation object that does
the actual work.public void setExtraParameters(java.util.Properties extraParameters)
extraParameters - property list of extra parameters that are sent to
the transformation process to be included as parameters that the
XSLT can use.public void setContentType(java.lang.String responseContentType)
responseContentType - Default HTTP content type. This value is
not validated.public java.lang.String getContentType()
getContentType in interface org.springframework.web.servlet.View
public void render(java.util.Map model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
render in interface org.springframework.web.servlet.Viewmodel - Spring framework MVC model map which contains XML data and
other request parameters that need to be passed to the XSLT.request - HTTP request passed from Spring MVC framework. This is
used to get the application's content which is put into the
WebAppURLContextPrefix parameter. This parameter
allows the XSLT to build the appropriate HTML link references.response - HTTP response passed from Spring MVC framework. This
is used to get the output stream for the transformed contents.
java.io.IOException - Associated stream exceptions.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||