|
JSPTemplates | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is a kind of replacement for a ServletContext it contains method signitures for access to services the container might eventually provide. These will be things like servlet configuration but relavent to a Java app that may never interact with the web. This file does not include context related to a specific webapp (like a ServletContext does) It is container specific thus has not got initParameters, prameters for a specific JSP are obtained via a config object. This class provides a getConfig method that takes an argument the jsp uri
Field Summary | |
static java.lang.String |
CLASS_DIR
Property name for a MyJasper server configuration property This property defines the location of the classes generated from JSP's, it must be in the runtime classpath. |
static java.lang.String |
CLASSPATH
Property name for a MyJasper server configuration property |
static java.lang.String |
CONFIG_CACHE
Property name for a MyJasper server configuration property |
static java.lang.String |
CONFIG_DIR
Property name for a MyJasper server configuration property |
static java.lang.String |
JSP_DIR
Property name for a MyJasper server configuration property |
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String name)
Gets the attribute attribute of the ObjectContainerContext object |
java.util.Enumeration |
getAttributeNames()
Gets the attributeNames attribute of the ObjectContainerContext object |
ObjectConfig |
getConfig(java.lang.String uripath)
Gets the config attribute of the ObjectContainerContext object |
Engine |
getContainer()
|
int |
getMajorVersion()
Gets the majorVersion attribute of the ObjectContainerContext object |
java.lang.String |
getMimeType(java.lang.String file)
Gets the mimeType attribute of the ObjectContainerContext object |
int |
getMinorVersion()
Gets the minorVersion attribute of the MyJasper run time |
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 the resource attribute of the ObjectContainerContext object |
java.io.InputStream |
getResourceAsStream(java.lang.String path)
Gets the resourceAsStream attribute of the ObjectContainerContext object |
java.lang.String |
getServerInfo()
Gets the serverInfo attribute of the ObjectContainerContext object |
void |
log(java.lang.String msg)
Description of the Method |
void |
log(java.lang.String message,
java.lang.Throwable throwable)
Description of the Method |
void |
removeAttribute(java.lang.String name)
Description of the Method |
void |
setAttribute(java.lang.String name,
java.lang.Object object)
Sets the attribute attribute of the ObjectContainerContext object |
Field Detail |
public static final java.lang.String CONFIG_DIR
myjasper.config.dir
public static final java.lang.String CONFIG_CACHE
myjasper.config.cache
public static final java.lang.String CLASS_DIR
myjasper.class.dir
public static final java.lang.String JSP_DIR
myjasper.jsp.dir
public static final java.lang.String CLASSPATH
myjasper.classpath
Method Detail |
public java.lang.Object getAttribute(java.lang.String name)
name
- Description of Parameterpublic java.util.Enumeration getAttributeNames()
public ObjectConfig getConfig(java.lang.String uripath)
uripath
- Description of Parameterpublic int getMajorVersion()
public java.lang.String getMimeType(java.lang.String file)
file
- Description of Parameterpublic int getMinorVersion()
public Engine getContainer()
public java.lang.String getRealPath(java.lang.String path)
path
- Description of Parameterpublic java.net.URL getResource(java.lang.String path)
path
- Description of Parameterpublic java.io.InputStream getResourceAsStream(java.lang.String path)
path
- Description of Parameterpublic java.lang.String getServerInfo()
public void log(java.lang.String msg)
msg
- Description of Parameterpublic void log(java.lang.String message, java.lang.Throwable throwable)
message
- Description of Parameterthrowable
- Description of Parameterpublic void removeAttribute(java.lang.String name)
name
- Description of Parameterpublic void setAttribute(java.lang.String name, java.lang.Object object)
name
- The new attribute valueobject
- The new attribute value
|
JSPTemplates | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |