org.aris.actionservlet
Class Config

java.lang.Object
  extended by org.aris.actionservlet.Config
All Implemented Interfaces:
java.io.Serializable

public class Config
extends java.lang.Object
implements java.io.Serializable

This class contains servlet global configuration data. It is passed to every action.

Author:
Aris
See Also:
Serialized Form

Field Summary
 javax.servlet.ServletConfig config
          The servletConfig structure.
 boolean debug
           
 java.lang.String imagePath
          Creates a new instance of hlConfig
 java.lang.String realPath
          The real path, in the servers file system, of the servlet.
 java.lang.String servletName
          The name of the servlet, i.e.
 
Constructor Summary
Config(javax.servlet.ServletConfig c, boolean debug)
          the constructor which is called by hlServlet.
 
Method Summary
 java.lang.String getActionLink()
          Getter for property actionLink.
 javax.servlet.ServletConfig getConfig()
          Getter for property config.
 java.lang.String getContextPath()
          Getter for property contextPath.
 java.lang.String getImagePath()
          Getter for property imagePath.
 java.lang.String getRealPath()
          Getter for property realPath.
 java.lang.String getServletName()
          Getter for property servletName.
 java.lang.Class getTemplateHolderClass()
          Returns the class that holds the templates
 void setActionLink(java.lang.String actionLink)
          Setter for property actionLink.
 void setConfig(javax.servlet.ServletConfig config)
          Setter for property config.
 void setContextPath(java.lang.String contextPath)
          Setter for property contextPath.
 void setImagePath(java.lang.String imagePath)
          Setter for property imagePath.
 void setRealPath(java.lang.String realPath)
          Setter for property realPath.
 void setServletName(java.lang.String servletName)
          Setter for property servletName.
 void setTemplateHolderClass(java.lang.Class templateHolderClass)
          Sets the class that holds the templates.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public boolean debug

config

public javax.servlet.ServletConfig config
The servletConfig structure.


realPath

public java.lang.String realPath
The real path, in the servers file system, of the servlet.


servletName

public java.lang.String servletName
The name of the servlet, i.e. /servlet/myServlet.


imagePath

public java.lang.String imagePath
Creates a new instance of hlConfig

Constructor Detail

Config

public Config(javax.servlet.ServletConfig c,
              boolean debug)
the constructor which is called by hlServlet.

Parameters:
c - The configuration data.
Method Detail

getConfig

public javax.servlet.ServletConfig getConfig()
Getter for property config.

Returns:
Value of property config.

setConfig

public void setConfig(javax.servlet.ServletConfig config)
Setter for property config.

Parameters:
config - New value of property config.

getRealPath

public java.lang.String getRealPath()
Getter for property realPath.

Returns:
Value of property realPath.

setRealPath

public void setRealPath(java.lang.String realPath)
Setter for property realPath.

Parameters:
realPath - New value of property realPath.

getServletName

public java.lang.String getServletName()
Getter for property servletName.

Returns:
Value of property servletName.

setServletName

public void setServletName(java.lang.String servletName)
Setter for property servletName.

Parameters:
servletName - New value of property servletName.

getContextPath

public java.lang.String getContextPath()
Getter for property contextPath.

Returns:
Value of property contextPath.

setContextPath

public void setContextPath(java.lang.String contextPath)
Setter for property contextPath.

Parameters:
contextPath - New value of property contextPath.

getImagePath

public java.lang.String getImagePath()
Getter for property imagePath.

Returns:
Value of property imagePath.

setImagePath

public void setImagePath(java.lang.String imagePath)
Setter for property imagePath.

Parameters:
imagePath - New value of property imagePath.

getActionLink

public java.lang.String getActionLink()
Getter for property actionLink.

Returns:
Value of property actionLink.

setActionLink

public void setActionLink(java.lang.String actionLink)
Setter for property actionLink.

Parameters:
actionLink - New value of property actionLink.

getTemplateHolderClass

public java.lang.Class getTemplateHolderClass()
Returns the class that holds the templates

Returns:
Class

setTemplateHolderClass

public void setTemplateHolderClass(java.lang.Class templateHolderClass)
Sets the class that holds the templates.

Parameters:
templateHolderClass -