Quadcap Embeddable Server

com.quadcap.http.server22.HttpDispatcher Class Reference

Inheritance diagram for com.quadcap.http.server22.HttpDispatcher:

RequestDispatcher List of all members.

Public Member Functions

 HttpDispatcher (WebApplication context, String contextRelativePath)
 HttpDispatcher (WebServlet servlet, String uri)
void forward (ServletRequest request, ServletResponse response) throws ServletException, IOException
void include (ServletRequest request, ServletResponse response) throws ServletException, IOException
final void service (ServletRequest request, ServletResponse response) throws ServletException, IOException
void setServlet (WebServlet servlet, String servletPath)
void setContextPath (String path)
String getContextPath ()
String getServletPath ()
String getPathInfo ()
void setPathInfo (String pathInfo)
WebApplication getContext ()

Package Functions

void setServletPath (String path)

Package Attributes

WebApplication context
WebServlet servlet
String contextPath = ""
String subPath = ""
String servletPath = ""
String pathInfo = null

Constructor & Destructor Documentation

com.quadcap.http.server22.HttpDispatcher.HttpDispatcher WebApplication  context,
String  contextRelativePath
 

Definition at line 60 of file HttpDispatcher.java.

References com.quadcap.http.server22.WebApplication.contextPath, com.quadcap.http.server22.WebApplication.getContextPath(), and com.quadcap.http.server22.WebApplication.resolveDirectory().

com.quadcap.http.server22.HttpDispatcher.HttpDispatcher WebServlet  servlet,
String  uri
 

Definition at line 67 of file HttpDispatcher.java.

References com.quadcap.http.server22.WebServlet.getWebApplication(), and com.quadcap.http.server22.HttpDispatcher.servletPath.


Member Function Documentation

void com.quadcap.http.server22.HttpDispatcher.forward ServletRequest  request,
ServletResponse  response
throws ServletException, IOException
 

Definition at line 75 of file HttpDispatcher.java.

References com.quadcap.http.server22.HttpDispatcher.context, com.quadcap.http.server22.HttpDispatcher.contextPath, com.quadcap.http.server22.HttpDispatcher.forward(), com.quadcap.http.server22.WebApplication.getRootPath(), com.quadcap.http.server22.HttpDispatcher.pathInfo, com.quadcap.http.server22.WebServlet.service(), com.quadcap.http.server22.HttpDispatcher.servlet, and com.quadcap.http.server22.HttpDispatcher.servletPath.

Referenced by com.quadcap.http.server22.HttpDispatcher.forward().

WebApplication com.quadcap.http.server22.HttpDispatcher.getContext  ) 
 

Definition at line 147 of file HttpDispatcher.java.

References com.quadcap.http.server22.HttpDispatcher.context.

Referenced by com.quadcap.http.server22.HttpRequest.getRealPath(), com.quadcap.http.server22.HttpRequest.getRequestDispatcher(), com.quadcap.http.server22.HttpRequest.getRequestedSessionId(), com.quadcap.http.server22.HttpRequest.getSession(), and com.quadcap.http.server22.HttpRequest.isRequestedSessionIdValid().

String com.quadcap.http.server22.HttpDispatcher.getContextPath  ) 
 

Definition at line 127 of file HttpDispatcher.java.

References com.quadcap.http.server22.HttpDispatcher.contextPath.

Referenced by com.quadcap.http.server22.HttpRequest.getContextPath().

String com.quadcap.http.server22.HttpDispatcher.getPathInfo  ) 
 

Definition at line 139 of file HttpDispatcher.java.

References com.quadcap.http.server22.HttpDispatcher.pathInfo.

Referenced by com.quadcap.http.server22.HttpRequest.getPathInfo().

String com.quadcap.http.server22.HttpDispatcher.getServletPath  ) 
 

Definition at line 131 of file HttpDispatcher.java.

References com.quadcap.http.server22.HttpDispatcher.servletPath.

Referenced by com.quadcap.http.server22.WebApplication.getServletForRequest(), and com.quadcap.http.server22.HttpRequest.getServletPath().

void com.quadcap.http.server22.HttpDispatcher.include ServletRequest  request,
ServletResponse  response
throws ServletException, IOException
 

Definition at line 90 of file HttpDispatcher.java.

References com.quadcap.http.server22.HttpDispatcher.context, com.quadcap.http.server22.HttpDispatcher.contextPath, com.quadcap.http.server22.WebApplication.getRootPath(), com.quadcap.http.server22.HttpDispatcher.include(), com.quadcap.http.server22.HttpDispatcher.pathInfo, com.quadcap.http.server22.WebServlet.service(), com.quadcap.http.server22.HttpDispatcher.servlet, and com.quadcap.http.server22.HttpDispatcher.servletPath.

Referenced by com.quadcap.http.server22.HttpDispatcher.include().

final void com.quadcap.http.server22.HttpDispatcher.service ServletRequest  request,
ServletResponse  response
throws ServletException, IOException
 

Definition at line 103 of file HttpDispatcher.java.

References com.quadcap.http.server22.HttpDispatcher.context, com.quadcap.http.server22.HttpDispatcher.contextPath, com.quadcap.http.server22.WebApplication.isDirectory(), com.quadcap.http.server22.WebServlet.service(), com.quadcap.http.server22.HttpDispatcher.service(), com.quadcap.http.server22.HttpDispatcher.servlet, and com.quadcap.http.server22.HttpDispatcher.subPath.

Referenced by com.quadcap.http.server22.WebWorker.doSession(), and com.quadcap.http.server22.HttpDispatcher.service().

void com.quadcap.http.server22.HttpDispatcher.setContextPath String  path  ) 
 

Definition at line 123 of file HttpDispatcher.java.

References com.quadcap.http.server22.HttpDispatcher.contextPath, and com.quadcap.http.server22.HttpDispatcher.setContextPath().

Referenced by com.quadcap.http.server22.HttpDispatcher.setContextPath().

void com.quadcap.http.server22.HttpDispatcher.setPathInfo String  pathInfo  ) 
 

Definition at line 143 of file HttpDispatcher.java.

References com.quadcap.http.server22.HttpDispatcher.setPathInfo().

Referenced by com.quadcap.http.server22.WebApplication.getServletForRequest(), and com.quadcap.http.server22.HttpDispatcher.setPathInfo().

void com.quadcap.http.server22.HttpDispatcher.setServlet WebServlet  servlet,
String  servletPath
 

Definition at line 118 of file HttpDispatcher.java.

References com.quadcap.http.server22.HttpDispatcher.setServlet().

Referenced by com.quadcap.http.server22.WebApplication.getServletForRequest(), and com.quadcap.http.server22.HttpDispatcher.setServlet().

void com.quadcap.http.server22.HttpDispatcher.setServletPath String  path  )  [package]
 

Definition at line 135 of file HttpDispatcher.java.

References com.quadcap.http.server22.HttpDispatcher.servletPath, and com.quadcap.http.server22.HttpDispatcher.setServletPath().

Referenced by com.quadcap.http.server22.HttpDispatcher.setServletPath().


Member Data Documentation

WebApplication com.quadcap.http.server22.HttpDispatcher.context [package]
 

Definition at line 53 of file HttpDispatcher.java.

Referenced by com.quadcap.http.server22.HttpDispatcher.forward(), com.quadcap.http.server22.HttpDispatcher.getContext(), com.quadcap.http.server22.HttpDispatcher.include(), and com.quadcap.http.server22.HttpDispatcher.service().

String com.quadcap.http.server22.HttpDispatcher.contextPath = "" [package]
 

Definition at line 55 of file HttpDispatcher.java.

Referenced by com.quadcap.http.server22.HttpDispatcher.forward(), com.quadcap.http.server22.HttpDispatcher.getContextPath(), com.quadcap.http.server22.HttpDispatcher.include(), com.quadcap.http.server22.HttpDispatcher.service(), and com.quadcap.http.server22.HttpDispatcher.setContextPath().

String com.quadcap.http.server22.HttpDispatcher.pathInfo = null [package]
 

Definition at line 58 of file HttpDispatcher.java.

Referenced by com.quadcap.http.server22.HttpDispatcher.forward(), com.quadcap.http.server22.HttpDispatcher.getPathInfo(), and com.quadcap.http.server22.HttpDispatcher.include().

WebServlet com.quadcap.http.server22.HttpDispatcher.servlet [package]
 

Definition at line 54 of file HttpDispatcher.java.

Referenced by com.quadcap.http.server22.HttpDispatcher.forward(), com.quadcap.http.server22.HttpDispatcher.include(), and com.quadcap.http.server22.HttpDispatcher.service().

String com.quadcap.http.server22.HttpDispatcher.servletPath = "" [package]
 

Definition at line 57 of file HttpDispatcher.java.

Referenced by com.quadcap.http.server22.HttpDispatcher.forward(), com.quadcap.http.server22.HttpDispatcher.getServletPath(), com.quadcap.http.server22.HttpDispatcher.HttpDispatcher(), com.quadcap.http.server22.HttpDispatcher.include(), and com.quadcap.http.server22.HttpDispatcher.setServletPath().

String com.quadcap.http.server22.HttpDispatcher.subPath = "" [package]
 

Definition at line 56 of file HttpDispatcher.java.

Referenced by com.quadcap.http.server22.HttpDispatcher.service().