com.go.teaservlet.util
Class TemplateServerServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.go.teaservlet.util.TemplateServerServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class TemplateServerServlet
extends javax.servlet.http.HttpServlet

Used with the RemoteCompiler to allow templates to be loaded over http. This servlet should be running on the host specified in the template.path parameter of the teaservlet.

Version:
5 21 4/12/01
Author:
Jonathan Colwell
See Also:
Serialized Form

Constructor Summary
TemplateServerServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Retrieves all the templates that are newer that the timestamp specified by the client.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 void getTemplateData(java.io.OutputStream out, java.lang.String path)
           
 void init(javax.servlet.ServletConfig conf)
           
 void listTemplates(java.io.File root, java.util.Vector storage, java.lang.String path)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateServerServlet

public TemplateServerServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig conf)
Overrides:
init in class javax.servlet.GenericServlet

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
Overrides:
doPost in class javax.servlet.http.HttpServlet

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
Retrieves all the templates that are newer that the timestamp specified by the client. The pathInfo from the request specifies which templates are desired. QueryString parameters "timeStamp" and ??? provide
Overrides:
doGet in class javax.servlet.http.HttpServlet

getTemplateData

public void getTemplateData(java.io.OutputStream out,
                            java.lang.String path)

listTemplates

public void listTemplates(java.io.File root,
                          java.util.Vector storage,
                          java.lang.String path)
                   throws java.io.IOException