Xindice API
version 1.1

org.apache.xindice.server
Class XindiceServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.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: 523128 $, $Date: 2007-03-27 21:00:00 -0400 (Tue, 27 Mar 2007) $
Author:
Kimbro Staken, Vladimir R. Bossicard, Gianugo Rabellino, Vadim Gritsenko
See Also:
Serialized Form

Field Summary
protected  org.apache.xmlrpc.XmlRpcServer xmlrpcServer
           
 
Constructor Summary
XindiceServlet()
           
 
Method Summary
 void destroy()
           
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Delegate GET requests to the UglyBrowser.
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Sends an XML query to the server and writes the output back.
 void init(javax.servlet.ServletConfig servletConfig)
          Initializes database
 Configuration loadConfiguration(javax.servlet.ServletConfig servletConfig)
          Loads the Xindice configuration file.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, 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

xmlrpcServer

protected org.apache.xmlrpc.XmlRpcServer xmlrpcServer
Constructor Detail

XindiceServlet

public XindiceServlet()
Method Detail

destroy

public void destroy()
Overrides:
destroy in class javax.servlet.GenericServlet

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  IOException
Delegate GET requests to the UglyBrowser.
Overrides:
doGet in class javax.servlet.http.HttpServlet

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws javax.servlet.ServletException,
                   IOException
Sends an XML query to the server and writes the output back. Currenlty only XML-RPC query is supported.
Overrides:
doPost in class javax.servlet.http.HttpServlet

init

public void init(javax.servlet.ServletConfig servletConfig)
          throws javax.servlet.ServletException
Initializes database
Overrides:
init in class javax.servlet.GenericServlet

loadConfiguration

public Configuration loadConfiguration(javax.servlet.ServletConfig servletConfig)
Loads the Xindice configuration file. The file is searched in the following locations:
Returns:
Xindice configuration
Throws:
ConfigurationException - if unable to read configuration file or parse it

Xindice API
version 1.1

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