|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ibisph.mvc.controller.GenericXMLXSLTTransformation
public class GenericXMLXSLTTransformation
Generic XML / XSLT Transformation Controller. Performs XML/XSLT transformations based on HTTP URL request parameters. This controller provides backward compatibility with older bookmarked urls and testing of transformations before setting them into the "html" type request. This controller is NOT a typical Spring MVC controller as it handles the model (XML) and the view (XSLT) all within the controller. This controller did have the capability of creating a local file for output. However, since this is a big time security hole it was removed. Consider that a hacker could specify the xmlURL and xsltURL to their files then save the result to the local server then hit that page and have it do whatever they designed it to do or consider something like over writing the welcome page etc.
| Field Summary | |
|---|---|
protected java.lang.String |
defaultContentType
|
protected Transformation |
transformation
|
protected java.lang.String |
webAppURLContextPrefixParameterName
|
protected java.lang.String |
xmlPath
|
protected java.lang.String |
xsltPath
|
| Constructor Summary | |
|---|---|
GenericXMLXSLTTransformation()
Blank constructor - all properties set with specific setter methods. |
|
GenericXMLXSLTTransformation(java.lang.String xmlPath,
java.lang.String xsltPath,
Transformation transformation)
Basic constructor which simply sets all three main properties. |
|
| Method Summary | |
|---|---|
org.springframework.web.servlet.ModelAndView |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Spring Controller handleRequest implementation. |
void |
setDefaultResponseContentType(java.lang.String defaultContentType)
Set the default content type that this controller should return to the user's browser. |
void |
setTransformation(Transformation transformation)
Sets the XML/XSLT transformation object. |
void |
setWebAppURLContextPrefixParameterName(java.lang.String webAppURLContextPrefixParameterName)
Sets "WebAppURLContextPrefix" Parameter Name. |
void |
setXMLPath(java.lang.String xmlPath)
Sets XML base path prefix. |
void |
setXSLTPath(java.lang.String xsltPath)
Sets XSLT base path prefix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String defaultContentType
protected java.lang.String xmlPath
protected java.lang.String xsltPath
protected Transformation transformation
protected java.lang.String webAppURLContextPrefixParameterName
| Constructor Detail |
|---|
public GenericXMLXSLTTransformation()
public GenericXMLXSLTTransformation(java.lang.String xmlPath,
java.lang.String xsltPath,
Transformation transformation)
xmlPath - Optional base XML file path prefix.xsltPath - Optional base XSLT file path prefix.transformation - Required XML/XSLT transformation object.| Method Detail |
|---|
public void setXMLPath(java.lang.String xmlPath)
xml parameter path.
xmlPath - Base XML file path prefix.public void setXSLTPath(java.lang.String xsltPath)
xslt parameter path.
xsltPath - Base XSLT file path prefix.public void setTransformation(Transformation transformation)
transformation - Required XML/XSLT transformation object.public void setDefaultResponseContentType(java.lang.String defaultContentType)
defaultContentType - This value is typically text/html.public void setWebAppURLContextPrefixParameterName(java.lang.String webAppURLContextPrefixParameterName)
webAppURLContextPrefixParameterName - Parameters map key that is
passed as a parameter to the XSLT.
public org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
handleRequest in interface org.springframework.web.servlet.mvc.Controllerrequest - HTTP Servlet Request passed from the servlet.response - HTTP Servlet Response passed from the servlet.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||