org.openanzo.endpoint
Class QueryServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.openanzo.endpoint.QueryServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class QueryServlet
extends javax.servlet.http.HttpServlet

Very simple SPARQL servlet. Parameters: query default-graph-uri named-graph-uri output: rdf-xml, xml, json callback xslt Optionally, pass output=json and callback=jsFuncName for AJAX.

See Also:
Serialized Form

Field Summary
static QueryEngine engine
           
static HttpOutputEngine outputEngine
           
 
Constructor Summary
QueryServlet()
           
 
Method Summary
 void init()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

engine

public static QueryEngine engine

outputEngine

public static HttpOutputEngine outputEngine
Constructor Detail

QueryServlet

public QueryServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.