|
JSPTemplates | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.tp23.jasper.runtime.ObjectContainerContextImpl
This Is a context for the Server.
It provides access to any properties that
are places in the myjapser.properties file that is stored IN the main JAR file.
This will by default hold the following properties
Fields inherited from interface org.tp23.jsp.ObjectContainerContext |
CLASS_DIR, CLASSPATH, CONFIG_CACHE, CONFIG_DIR, JSP_DIR |
Constructor Summary | |
ObjectContainerContextImpl(ObjectJspFactory factory,
Engine myJasper)
Constructor for the ObjectContainerContextImpl object |
|
ObjectContainerContextImpl(ObjectJspFactory factory,
Engine myJasper,
java.util.Properties configuration)
|
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String name)
Gets the attribute from the configuration |
java.util.Enumeration |
getAttributeNames()
Gets the attributeNames attribute of the ObjectContainerContextImpl object |
ObjectConfig |
getConfig(java.lang.String uri)
Gets a Config object for a given JSP. |
Engine |
getContainer()
|
int |
getMajorVersion()
Gets the majorVersion attribute of the ObjectContainerContextImpl object |
java.lang.String |
getMimeType(java.lang.String file)
Gets the mimeType attribute of the ObjectContainerContextImpl object |
int |
getMinorVersion()
Gets the minorVersion attribute of the ObjectContainerContextImpl object |
java.lang.String |
getRealPath(java.lang.String path)
Gets the realPath attribute of the ObjectContainerContext object |
java.net.URL |
getResource(java.lang.String path)
Gets a net resource (not implemented) |
java.io.InputStream |
getResourceAsStream(java.lang.String path)
Not implemented yet will eventually return any resource in the JSP directory |
java.lang.String |
getServerInfo()
Gets a string describing the server |
void |
log(java.lang.String msg)
Dump to System.out |
void |
log(java.lang.String message,
java.lang.Throwable throwable)
Dump to System.out |
void |
removeAttribute(java.lang.String name)
removes an attribute (this will effect all JSP's in the MyJasper object) |
void |
setAttribute(java.lang.String name,
java.lang.Object object)
Sets the attribute into the configuration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectContainerContextImpl(ObjectJspFactory factory, Engine myJasper)
factory
- Description of Parameterpublic ObjectContainerContextImpl(ObjectJspFactory factory, Engine myJasper, java.util.Properties configuration)
Method Detail |
public Engine getContainer()
getContainer
in interface ObjectContainerContext
public void setAttribute(java.lang.String name, java.lang.Object object)
setAttribute
in interface ObjectContainerContext
name
- The new attribute valueobject
- The new attribute valuepublic ObjectConfig getConfig(java.lang.String uri)
getConfig
in interface ObjectContainerContext
uri
- Description of Parameterpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface ObjectContainerContext
name
- the name of the attributepublic java.util.Enumeration getAttributeNames()
getAttributeNames
in interface ObjectContainerContext
public int getMajorVersion()
getMajorVersion
in interface ObjectContainerContext
public java.lang.String getMimeType(java.lang.String file)
getMimeType
in interface ObjectContainerContext
file
- Description of Parameterpublic int getMinorVersion()
getMinorVersion
in interface ObjectContainerContext
public java.lang.String getRealPath(java.lang.String path)
ObjectContainerContext
getRealPath
in interface ObjectContainerContext
org.tp23.jsp.ObjectContainerContext
path
- Description of Parameterpublic java.net.URL getResource(java.lang.String path)
getResource
in interface ObjectContainerContext
path
- Description of Parameterpublic java.io.InputStream getResourceAsStream(java.lang.String path)
getResourceAsStream
in interface ObjectContainerContext
path
- Description of Parameterpublic java.lang.String getServerInfo()
getServerInfo
in interface ObjectContainerContext
public void log(java.lang.String msg)
log
in interface ObjectContainerContext
msg
- the message to logpublic void log(java.lang.String message, java.lang.Throwable throwable)
log
in interface ObjectContainerContext
message
- the messagethrowable
- an exceptionpublic void removeAttribute(java.lang.String name)
removeAttribute
in interface ObjectContainerContext
name
- Description of Parameter
|
JSPTemplates | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |