Quadcap Embeddable Server

com.quadcap.http.servlets.jsp.JspServlet Class Reference

Inheritance diagram for com.quadcap.http.servlets.jsp.JspServlet:

HttpServlet List of all members.

Detailed Description

"The" JSP Servlet.

Author:
Stan Bailes

Definition at line 86 of file JspServlet.java.

Public Member Functions

void init (ServletConfig config) throws ServletException
void destroy ()
String getServletInfo ()

Protected Member Functions

void service (HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException

Package Functions

void refreshClassLoader ()
JspPage getJspPageForName (String name, HttpServletResponse response) throws IOException, ServletException
void unload (JspPage page)
JspPage loadJspPage (JspObject jsp, HttpServletResponse response) throws IOException, ServletException, JspException
void compilePage (JspObject jsp, HttpServletResponse response) throws IOException, ServletException, ClassNotFoundException
void translatePage (JspObject jsp) throws IOException, ServletException
void compileJsp (JspObject jsp, Reader in, PrintWriter w) throws IOException, ServletException

Static Package Functions

String substring (String s, int f)
String substring (String s, int f, int t)

Package Attributes

ClassLoader parentClassLoader
ServletConfig config
ServletContext context
File repository
Hashtable pages = new Hashtable()
JspClassLoader classLoader = null
JavaCompiler javaCompiler = null

Static Package Attributes

Object compileLock = new Object()


Member Function Documentation

void com.quadcap.http.servlets.jsp.JspServlet.compileJsp JspObject  jsp,
Reader  in,
PrintWriter  w
throws IOException, ServletException [package]
 

Definition at line 403 of file JspServlet.java.

References com.quadcap.http.servlets.jsp.JspServlet.compileJsp(), com.quadcap.http.servlets.jsp.JspServlet.context, com.quadcap.http.servlets.jsp.JspParser.parse(), com.quadcap.http.servlets.jsp.JspParser.setDocumentHandler(), com.quadcap.http.servlets.jsp.JspParser.setEntityResolver(), and com.quadcap.http.servlets.jsp.JspParser.setJspHandler().

Referenced by com.quadcap.http.servlets.jsp.JspServlet.compileJsp(), and com.quadcap.http.servlets.jsp.JspServlet.translatePage().

void com.quadcap.http.servlets.jsp.JspServlet.compilePage JspObject  jsp,
HttpServletResponse  response
throws IOException, ServletException, ClassNotFoundException [package]
 

Definition at line 246 of file JspServlet.java.

References com.quadcap.http.servlets.jsp.JavaCompiler.compile(), com.quadcap.http.servlets.jsp.JspServlet.compilePage(), com.quadcap.http.servlets.jsp.JspServlet.javaCompiler, com.quadcap.io.HtmlifyWriter.print(), com.quadcap.io.HtmlifyWriter.println(), com.quadcap.http.servlets.jsp.JspServlet.substring(), and com.quadcap.http.servlets.jsp.JspServlet.translatePage().

Referenced by com.quadcap.http.servlets.jsp.JspServlet.compilePage(), and com.quadcap.http.servlets.jsp.JspServlet.loadJspPage().

void com.quadcap.http.servlets.jsp.JspServlet.destroy  ) 
 

Definition at line 418 of file JspServlet.java.

JspPage com.quadcap.http.servlets.jsp.JspServlet.getJspPageForName String  name,
HttpServletResponse  response
throws IOException, ServletException [package]
 

Definition at line 186 of file JspServlet.java.

References com.quadcap.http.servlets.jsp.JspServlet.config, com.quadcap.http.servlets.jsp.JspServlet.context, com.quadcap.http.servlets.jsp.JspObject.getJspPage(), com.quadcap.http.servlets.jsp.JspServlet.getJspPageForName(), com.quadcap.http.servlets.jsp.JspServlet.loadJspPage(), com.quadcap.http.servlets.jsp.JspObject.needRecompile(), com.quadcap.http.servlets.jsp.JspServlet.pages, com.quadcap.http.servlets.jsp.JspServlet.repository, com.quadcap.http.servlets.jsp.JspObject.setJspPage(), and com.quadcap.http.servlets.jsp.JspServlet.unload().

Referenced by com.quadcap.http.servlets.jsp.JspServlet.getJspPageForName(), and com.quadcap.http.servlets.jsp.JspServlet.service().

String com.quadcap.http.servlets.jsp.JspServlet.getServletInfo  ) 
 

Definition at line 422 of file JspServlet.java.

void com.quadcap.http.servlets.jsp.JspServlet.init ServletConfig  config  )  throws ServletException
 

Definition at line 95 of file JspServlet.java.

References com.quadcap.http.servlets.jsp.JspServlet.config, com.quadcap.http.servlets.jsp.JspServlet.context, com.quadcap.http.servlets.jsp.JspServlet.init(), com.quadcap.http.servlets.jsp.JspServlet.parentClassLoader, com.quadcap.http.servlets.jsp.JspServlet.refreshClassLoader(), com.quadcap.http.servlets.jsp.JspServlet.repository, and com.quadcap.util.ConfigString.toString().

Referenced by com.quadcap.http.servlets.jsp.JspServlet.init().

JspPage com.quadcap.http.servlets.jsp.JspServlet.loadJspPage JspObject  jsp,
HttpServletResponse  response
throws IOException, ServletException, JspException [package]
 

Definition at line 219 of file JspServlet.java.

References com.quadcap.http.servlets.jsp.JspServlet.classLoader, com.quadcap.http.servlets.jsp.JspServlet.compileLock, com.quadcap.http.servlets.jsp.JspServlet.compilePage(), com.quadcap.http.servlets.jsp.JspPage.init(), com.quadcap.http.servlets.jsp.JspPage.jspInit(), com.quadcap.http.servlets.jsp.JspClassLoader.loadClass(), and com.quadcap.http.servlets.jsp.JspServlet.loadJspPage().

Referenced by com.quadcap.http.servlets.jsp.JspServlet.getJspPageForName(), and com.quadcap.http.servlets.jsp.JspServlet.loadJspPage().

void com.quadcap.http.servlets.jsp.JspServlet.refreshClassLoader  )  [package]
 

Definition at line 153 of file JspServlet.java.

References com.quadcap.http.servlets.jsp.JspServlet.parentClassLoader, and com.quadcap.http.servlets.jsp.JspServlet.repository.

Referenced by com.quadcap.http.servlets.jsp.JspServlet.init(), and com.quadcap.http.servlets.jsp.JspServlet.unload().

void com.quadcap.http.servlets.jsp.JspServlet.service HttpServletRequest  request,
HttpServletResponse  response
throws IOException, ServletException [protected]
 

Definition at line 157 of file JspServlet.java.

References com.quadcap.http.servlets.jsp.JspPage._jspService(), com.quadcap.http.servlets.jsp.JspServlet.getJspPageForName(), and com.quadcap.http.servlets.jsp.JspServlet.service().

Referenced by com.quadcap.http.servlets.jsp.JspServlet.service().

String com.quadcap.http.servlets.jsp.JspServlet.substring String  s,
int  f,
int  t
[static, package]
 

Definition at line 372 of file JspServlet.java.

String com.quadcap.http.servlets.jsp.JspServlet.substring String  s,
int  f
[static, package]
 

Definition at line 365 of file JspServlet.java.

References com.quadcap.http.servlets.jsp.JspServlet.substring().

Referenced by com.quadcap.http.servlets.jsp.JspServlet.compilePage(), and com.quadcap.http.servlets.jsp.JspServlet.substring().

void com.quadcap.http.servlets.jsp.JspServlet.translatePage JspObject  jsp  )  throws IOException, ServletException [package]
 

Definition at line 381 of file JspServlet.java.

References com.quadcap.http.servlets.jsp.JspServlet.compileJsp(), and com.quadcap.http.servlets.jsp.JspServlet.translatePage().

Referenced by com.quadcap.http.servlets.jsp.JspServlet.compilePage(), and com.quadcap.http.servlets.jsp.JspServlet.translatePage().

void com.quadcap.http.servlets.jsp.JspServlet.unload JspPage  page  )  [package]
 

Definition at line 212 of file JspServlet.java.

References com.quadcap.http.servlets.jsp.JspPage.jspDestroy(), com.quadcap.http.servlets.jsp.JspServlet.refreshClassLoader(), and com.quadcap.http.servlets.jsp.JspServlet.unload().

Referenced by com.quadcap.http.servlets.jsp.JspServlet.getJspPageForName(), and com.quadcap.http.servlets.jsp.JspServlet.unload().


Member Data Documentation

JspClassLoader com.quadcap.http.servlets.jsp.JspServlet.classLoader = null [package]
 

Definition at line 92 of file JspServlet.java.

Referenced by com.quadcap.http.servlets.jsp.JspServlet.loadJspPage().

Object com.quadcap.http.servlets.jsp.JspServlet.compileLock = new Object() [static, package]
 

Definition at line 217 of file JspServlet.java.

Referenced by com.quadcap.http.servlets.jsp.JspServlet.loadJspPage().

ServletConfig com.quadcap.http.servlets.jsp.JspServlet.config [package]
 

Definition at line 88 of file JspServlet.java.

Referenced by com.quadcap.http.servlets.jsp.JspServlet.getJspPageForName(), and com.quadcap.http.servlets.jsp.JspServlet.init().

ServletContext com.quadcap.http.servlets.jsp.JspServlet.context [package]
 

Definition at line 89 of file JspServlet.java.

Referenced by com.quadcap.http.servlets.jsp.JspServlet.compileJsp(), com.quadcap.http.servlets.jsp.JspServlet.getJspPageForName(), and com.quadcap.http.servlets.jsp.JspServlet.init().

JavaCompiler com.quadcap.http.servlets.jsp.JspServlet.javaCompiler = null [package]
 

Definition at line 93 of file JspServlet.java.

Referenced by com.quadcap.http.servlets.jsp.JspServlet.compilePage().

Hashtable com.quadcap.http.servlets.jsp.JspServlet.pages = new Hashtable() [package]
 

Definition at line 91 of file JspServlet.java.

Referenced by com.quadcap.http.servlets.jsp.JspServlet.getJspPageForName().

ClassLoader com.quadcap.http.servlets.jsp.JspServlet.parentClassLoader [package]
 

Definition at line 87 of file JspServlet.java.

Referenced by com.quadcap.http.servlets.jsp.JspServlet.init(), and com.quadcap.http.servlets.jsp.JspServlet.refreshClassLoader().

File com.quadcap.http.servlets.jsp.JspServlet.repository [package]
 

Definition at line 90 of file JspServlet.java.

Referenced by com.quadcap.http.servlets.jsp.JspServlet.getJspPageForName(), com.quadcap.http.servlets.jsp.JspServlet.init(), and com.quadcap.http.servlets.jsp.JspServlet.refreshClassLoader().