Framework Professional Edition Package


com.prosyst.mbs.services.http.jsp
Class JspServletBase

java.lang.Object
  extended by com.prosyst.mbs.services.http.jsp.JspServletBase
Direct Known Subclasses:
JspBestPerformanceBase, JspLeastMemoryBase

public abstract class JspServletBase
extends java.lang.Object

This class is not designed for direct usage by developers. It is used by the JSP Tool to provide the base for a translated JSP page. This is the super class of all JSP pages, that the JSP Tool translates into java classes.


Field Summary
static JspTagPool _jspTagPool
           
protected  ServletConfig config
           
 
Constructor Summary
JspServletBase()
           
 
Method Summary
static java.lang.Object _jspGetTag(java.lang.Class c, PageContext pc, java.lang.Object parent)
          Gets an instance of the specified class.
static void _jspReleaseTag(java.lang.Object o)
          Method is called to let a tag object be returned back in the pool.
 void destroy()
          Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.
 ServletConfig getServletConfig()
          Returns a ServletConfig object, which contains initialization and startup parameters for this JSP page.
 java.lang.String getServletInfo()
          Returns information about the JSP page, such as author, version, and copyright.
 void init(ServletConfig config)
          Initializes the JSP page.
 void jspDestroy()
          jsp_destroy() is invoked when the JspPage is about to be destroyed.
 void jspInit()
          jsp_init() is invoked when the JspPage is initialized.
 void service(ServletRequest request, ServletResponse response)
          Called by the servlet container to allow the servlet to respond to a request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_jspTagPool

public static JspTagPool _jspTagPool

config

protected ServletConfig config
Constructor Detail

JspServletBase

public JspServletBase()
Method Detail

init

public final void init(ServletConfig config)
                throws ServletException
Initializes the JSP page. Calls jspInit().

Parameters:
config - a ServletConfig object containing the JSP's configuration and initialization parameters
Throws:
ServletException - if an exception has occurred that interferes with the JSP's normal operation

getServletConfig

public ServletConfig getServletConfig()
Returns a ServletConfig object, which contains initialization and startup parameters for this JSP page. The ServletConfig object returned is the one passed to the init method.

Returns:
the ServletConfig object that initializes this JSP page
See Also:
init(ServletConfig)

getServletInfo

public java.lang.String getServletInfo()
Returns information about the JSP page, such as author, version, and copyright.

The string that this method returns should be plain text and not markup of any kind (such as HTML, XML, etc.).

Returns:
a String containing servlet information

destroy

public final void destroy()
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. This method is only called once all threads within the servlet's service method have exited or after a timeout period has passed. After the servlet container calls this method, it will not call the service method again on this servlet.

This method gives the servlet an opportunity to clean up any resources that are being held (for example, memory, file handles, threads) and make sure that any persistent state is synchronized with the servlet's current state in memory. Calls jspDestroy().


service

public void service(ServletRequest request,
                    ServletResponse response)
             throws ServletException,
                    java.io.IOException
Called by the servlet container to allow the servlet to respond to a request.

This method is only called after the servlet's init() method has completed successfully.

Servlets typically run inside multithreaded servlet containers that can handle multiple requests concurrently. Developers must be aware to synchronize access to any shared resources such as files, network connections, and as well as the servlet's class and instance variables. Calls _jspService to generate the output.

Parameters:
req - the ServletRequest object that contains the client's request
res - the ServletResponse object that contains the servlet's response
Throws:
ServletException - if an exception occurs that interferes with the servlet's normal operation
java.io.IOException - if an input or output exception occurs

jspInit

public void jspInit()
jsp_init() is invoked when the JspPage is initialized. At this point getServletConfig() will return the desired value.


jspDestroy

public void jspDestroy()
jsp_destroy() is invoked when the JspPage is about to be destroyed.


_jspGetTag

public static java.lang.Object _jspGetTag(java.lang.Class c,
                                          PageContext pc,
                                          java.lang.Object parent)
Gets an instance of the specified class.

Parameters:
c - class to get an instance of.
Returns:
an object instance

_jspReleaseTag

public static void _jspReleaseTag(java.lang.Object o)
Method is called to let a tag object be returned back in the pool.

Parameters:
o - object to be reused.

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved