jason.service.crusader.javaximpl
Class ServletConfigImpl

java.lang.Object
  |
  +--jason.service.crusader.javaximpl.ServletConfigImpl
All Implemented Interfaces:
javax.servlet.ServletConfig

public class ServletConfigImpl
extends java.lang.Object
implements javax.servlet.ServletConfig

This class is the concrete implementation of java.servlet.ServletConfig. The config object is responsible to give a servlet access to the configuration parameters (if any) specific to a servlet. The configuration parameters are a subset of all the configuration parameters stored by the servlet engine for all the contexts. The ServletConfig interface may be considered to be a Servlet's view into the configuration data as maintained by the servlet engine. Therefore, there is only one ServletConfig object per servlet.
Author - Sanjay"Ironluca"Debnath Ironluca@yahoo.com
Last Modified - 29/04/2001


Field Summary
protected  ServletCapsuleInt servletCapsule
          Contains the refference to the Servlet/ServletCapsule for which it is acting as the Config
protected  javax.servlet.ServletContext servletContext
          Contains the Context associated with this Servlet/ServletCapsule.
 
Constructor Summary
ServletConfigImpl()
           
 
Method Summary
 java.lang.String getInitParameter(java.lang.String parameterName)
           
 java.util.Enumeration getInitParameterNames()
           
 ServletCapsuleInt getServletCapsule()
          This methods is for internal use only.
 javax.servlet.ServletContext getServletContext()
          The present implementation of this method returns a new Context object if the "servletContext" variable is null.
 java.lang.String getServletName()
          This method returns the Servlet name - in effect the fully qualified class name
 void setServletCapsule(ServletCapsuleInt servletCapsule)
          This methods is for internal use only.
 void setServletContext(javax.servlet.ServletContext servletContext)
          This methods is for internal use only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servletCapsule

protected ServletCapsuleInt servletCapsule
Contains the refference to the Servlet/ServletCapsule for which it is acting as the Config


servletContext

protected javax.servlet.ServletContext servletContext
Contains the Context associated with this Servlet/ServletCapsule.

Constructor Detail

ServletConfigImpl

public ServletConfigImpl()
Method Detail

getInitParameter

public java.lang.String getInitParameter(java.lang.String parameterName)
Specified by:
getInitParameter in interface javax.servlet.ServletConfig

getInitParameterNames

public java.util.Enumeration getInitParameterNames()
Specified by:
getInitParameterNames in interface javax.servlet.ServletConfig

getServletContext

public javax.servlet.ServletContext getServletContext()
The present implementation of this method returns a new Context object if the "servletContext" variable is null. Otherwise it returns the servletContext. The "servletContext" is to be set by CrusaderCore in the run() method.

Specified by:
getServletContext in interface javax.servlet.ServletConfig

getServletName

public java.lang.String getServletName()
This method returns the Servlet name - in effect the fully qualified class name

Specified by:
getServletName in interface javax.servlet.ServletConfig

getServletCapsule

public ServletCapsuleInt getServletCapsule()
This methods is for internal use only.


setServletCapsule

public void setServletCapsule(ServletCapsuleInt servletCapsule)
This methods is for internal use only.


setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)
This methods is for internal use only.