org.eaglei.repository.servlet
Class Harvest

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.eaglei.repository.servlet.RepositoryServlet
              extended by org.eaglei.repository.servlet.Harvest
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class Harvest
extends RepositoryServlet

Harvest service - retrieves listing of eagle-i resource instances in order to "harvest" metadata to build and maintain external indexes. The optional "from" argument helps the client maintain an index efficiently by reporting ONLY the resource instances which have changed from the indicated timestamp onward, e.g. since the last index update. The most common case, where nothing has changed since the last update, is heavily optimized to avoid querying the triplestore at all. When given time bounds, /harvest reports not only which resources have been updated, but also on resources which have been deleted or otherwise removed from view (e.g. withdrawn). Query Args: format - override content negotiation with this MIME type view - use this view as source of RDF data; default is 'user' workspace - URI of workspace, mutually excl with view from - optional start date detail=(identifier|full) - default is full

Version:
$Id: $ Started June 2010
Author:
Larry Stone
See Also:
Serialized Form

Nested Class Summary
static class Harvest.DetailArg
           
 
Constructor Summary
Harvest()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          
 
Methods inherited from class org.eaglei.repository.servlet.RepositoryServlet
service
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Harvest

public Harvest()
Method Detail

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException

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

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException

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


Copyright © 2009-2010 Eagle-I. All Rights Reserved.