fedora.localservices.saxon
Class SaxonServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by fedora.localservices.saxon.SaxonServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SaxonServlet
extends javax.servlet.http.HttpServlet

A service that transforms a supplied input document using a supplied stylesheet, with stylesheet caching. Adapted from the SaxonServlet.java example file contained in the source distribution of "The SAXON XSLT Processor from Michael Kay".

 -----------------------------------------------------------------------------
 The original code is Copyright © 2001 by Michael Kay. All rights
 reserved. The current project homepage for Saxon may be found at:
 http://saxon.sourceforge.net/.

 Portions created for the Fedora Repository System are Copyright © 2002-2007
 by The Rector and Visitors of the University of Virginia and Cornell
 University. All rights reserved.
 -----------------------------------------------------------------------------
 

Version:
Saxon 6.5.2
Author:
Michael Kay, rlw@virginia.edu, cwilper@cs.cornell.edu
See Also:
Serialized Form

Field Summary
 int TIMEOUT_SECONDS
          time to wait for getting data via http before giving up
 
Constructor Summary
SaxonServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Accept a GET request and produce a response.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Accept an POST request and produce a response (same behavior as GET).
 java.lang.String getServletInfo()
           
 void init(javax.servlet.ServletConfig config)
          Initialize the servlet by setting up the stylesheet cache, the http connection manager, and configuring credentials for the http client.
 
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, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIMEOUT_SECONDS

public final int TIMEOUT_SECONDS
time to wait for getting data via http before giving up

See Also:
Constant Field Values
Constructor Detail

SaxonServlet

public SaxonServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Initialize the servlet by setting up the stylesheet cache, the http connection manager, and configuring credentials for the http client.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws java.io.IOException
Accept a GET request and produce a response. HTTP Request Parameters:

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req - The HTTP request
res - The HTTP response
Throws:
java.io.IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws java.io.IOException
Accept an POST request and produce a response (same behavior as GET).

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException

getServletInfo

public java.lang.String getServletInfo()
Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class javax.servlet.GenericServlet