|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopoint.template.AbstractTemplateDataSource
echopoint.template.JspTemplateDataSource
public class JspTemplateDataSource
JspTemplateDataSource takes it template
data from a JSP include path.
By default there is no caching of JSP template dtaa. This is because the JSP engines are excellent at deciding when JSP content needs recompiling.
Also since a Java class is compiled out of JSP content, then the speed at which they operate menas caching may not have a dramatic effect.
| Field Summary |
|---|
| Fields inherited from class echopoint.template.AbstractTemplateDataSource |
|---|
DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING |
| Constructor Summary | |
|---|---|
JspTemplateDataSource()
Creates a JspTemplateDataSource with no
JSP path. |
|
JspTemplateDataSource(String jspPath)
Creates a JspTemplateDataSource that
takes its template data from a JSP path |
|
| Method Summary | |
|---|---|
Object |
getAttribute(String name)
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists. |
String[] |
getAttributeNames()
Returns an array of String containing the names of the attributes available to this JSP request. |
String |
getCanonicalName()
Returns a canonical name of this TemplateDataSource. |
InputStream |
getInputStream()
This always returns null because the InputStream of JSP data can only be obtained by the backend rendering engine. |
String |
getJspPath()
|
void |
removeAttribute(String name)
Removes an attribute. |
void |
setAttribute(String name,
Object javaBean)
Associates a Java bean with a specified name. |
void |
setJspPath(String jspPath)
Sets the JSP path to use for template data. |
| Methods inherited from class echopoint.template.AbstractTemplateDataSource |
|---|
getCachingHints, getCharacterEncoding, getCompilerHints, getContentType, setCachingHints, setCharacterEncoding, setCompilerHints, setContentType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JspTemplateDataSource()
JspTemplateDataSource with no
JSP path.
public JspTemplateDataSource(String jspPath)
JspTemplateDataSource that
takes its template data from a JSP path
| Method Detail |
|---|
public String getJspPath()
public void setJspPath(String jspPath)
jspPath - - The newValue to set.public String getCanonicalName()
TemplateDataSourceTemplateDataSource.
The name returned here is used to look up the parsing result of the
internal caching, so it should differ for all different
TemplateDataSource objects :-)
May return null if this TemplateDataSource is supposed to
be parsed each time. The canonical name would be something like a
filename or an URL.
TemplateDataSourceTemplateDataSource.getCanonicalName()
public InputStream getInputStream()
throws IOException
IOExceptionTemplateDataSource.getInputStream()public Object getAttribute(String name)
Attribute names should follow the same conventions as package names. Names beginning with java.*, javax.*, and com.sun.*, are reserved for use by Sun Microsystems.
name - a String specifying the name of the attribute
public String[] getAttributeNames()
public void setAttribute(String name,
Object javaBean)
Bean names should follow the same conventions as package names. Names beginning with java.*, javax.*, and com.sun.*, are reserved for use by Sun Microsystems.
If the value passed in is null, the effect is the same as
calling removeAttribute(java.lang.String).
name - - the name to associated with the java Bean. This will
become a Request scope attribute within the JSP.javaBean - - the object to be associated with the namepublic void removeAttribute(String name)
Attribute names should follow the same conventions as package names. Names beginning with java.*, javax.*, and com.sun.*, are reserved for use by Sun Microsystems.
name - - the name associated with the attribute value.
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||