Xindice API
version 1.2m1

org.apache.xindice.server
Class XindiceServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.xindice.server.XindiceServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class XindiceServlet
extends javax.servlet.http.HttpServlet

A HttpServlet that enables XML-RPC access to a Xindice database instance.

Version:
$Revision: 595817 $, $Date: 2007-11-16 15:49:03 -0500 (Fri, 16 Nov 2007) $
Author:
Kimbro Staken, Vladimir R. Bossicard, Gianugo Rabellino, Vadim Gritsenko
See Also:
Serialized Form

Field Summary
protected  org.apache.xmlrpc.webserver.XmlRpcServletServer server
           
protected  WebAdminManager webAdmin
           
 
Constructor Summary
XindiceServlet()
           
 
Method Summary
 void destroy()
           
 void init(javax.servlet.ServletConfig servletConfig)
          Initializes database
 Configuration loadConfiguration(javax.servlet.ServletConfig servletConfig)
          Loads the Xindice configuration file.
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process request.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
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
 

Field Detail

server

protected org.apache.xmlrpc.webserver.XmlRpcServletServer server

webAdmin

protected WebAdminManager webAdmin
Constructor Detail

XindiceServlet

public XindiceServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig servletConfig)
          throws javax.servlet.ServletException
Initializes database

Throws:
javax.servlet.ServletException

loadConfiguration

public Configuration loadConfiguration(javax.servlet.ServletConfig servletConfig)
                                throws javax.servlet.ServletException
Loads the Xindice configuration file. The file is searched in the following locations:

Parameters:
servletConfig - servlet configuration
Returns:
Xindice configuration
Throws:
javax.servlet.ServletException - if unable to load configuration

destroy

public void destroy()

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws IOException,
                    javax.servlet.ServletException
Process request. Determine type of a request and delegate for processing either to XML-RPC server, WebDAV, or WebAdmin.

Parameters:
request - a HttpServletRequest instance
response - a HttpServletResponse instance
Throws:
IOException - if an IO error occurs
javax.servlet.ServletException - if a servlet error occurs

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.