JSPTemplates

org.tp23.jsp
Interface ObjectContainerContext

All Known Implementing Classes:
ObjectContainerContextImpl

public interface ObjectContainerContext

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

Author:
Paul Hinds

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

CONFIG_DIR

public static final java.lang.String CONFIG_DIR

Property name for a MyJasper server configuration property
myjasper.config.dir

CONFIG_CACHE

public static final java.lang.String CONFIG_CACHE

Property name for a MyJasper server configuration property
myjasper.config.cache

CLASS_DIR

public static final 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.
myjasper.class.dir

JSP_DIR

public static final java.lang.String JSP_DIR

Property name for a MyJasper server configuration property
myjasper.jsp.dir

CLASSPATH

public static final java.lang.String CLASSPATH

Property name for a MyJasper server configuration property
myjasper.classpath
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Gets the attribute attribute of the ObjectContainerContext object
Parameters:
name - Description of Parameter
Returns:
The attribute value

getAttributeNames

public java.util.Enumeration getAttributeNames()
Gets the attributeNames attribute of the ObjectContainerContext object
Returns:
The attributeNames value

getConfig

public ObjectConfig getConfig(java.lang.String uripath)
Gets the config attribute of the ObjectContainerContext object
Parameters:
uripath - Description of Parameter
Returns:
The config value

getMajorVersion

public int getMajorVersion()
Gets the majorVersion attribute of the ObjectContainerContext object
Returns:
The majorVersion value

getMimeType

public java.lang.String getMimeType(java.lang.String file)
Gets the mimeType attribute of the ObjectContainerContext object
Parameters:
file - Description of Parameter
Returns:
The mimeType value

getMinorVersion

public int getMinorVersion()
Gets the minorVersion attribute of the MyJasper run time
Returns:
The minorVersion value

getContainer

public Engine getContainer()

getRealPath

public java.lang.String getRealPath(java.lang.String path)
Gets the realPath attribute of the ObjectContainerContext object
Parameters:
path - Description of Parameter
Returns:
The realPath value

getResource

public java.net.URL getResource(java.lang.String path)
Gets the resource attribute of the ObjectContainerContext object
Parameters:
path - Description of Parameter
Returns:
The resource value

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String path)
Gets the resourceAsStream attribute of the ObjectContainerContext object
Parameters:
path - Description of Parameter
Returns:
The resourceAsStream value

getServerInfo

public java.lang.String getServerInfo()
Gets the serverInfo attribute of the ObjectContainerContext object
Returns:
The serverInfo value

log

public void log(java.lang.String msg)
Description of the Method
Parameters:
msg - Description of Parameter

log

public void log(java.lang.String message,
                java.lang.Throwable throwable)
Description of the Method
Parameters:
message - Description of Parameter
throwable - Description of Parameter

removeAttribute

public void removeAttribute(java.lang.String name)
Description of the Method
Parameters:
name - Description of Parameter

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object object)
Sets the attribute attribute of the ObjectContainerContext object
Parameters:
name - The new attribute value
object - The new attribute value

JSPTemplates