org.openanzo.telar
Class TelarServlet

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

public class TelarServlet
extends javax.servlet.http.HttpServlet
implements Constants

Author:
Rouben Meschian (rmeschi@us.ibm.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.openanzo.telar.Constants
ADD, DATATYPE, DEFAULT_NAMED_GRAPHS, ERROR, EXEC_QUERY, GRAPH, GRAPH_REVISIONS, LITERAL, NAMED_GRAPHS, OBJECT, PREDICATE, QUERY, REMOVE, REQUEST, RESPONSE, RESULT_SET, SUBJECT, TYPE, TYPED_LITERAL, URI
 
Constructor Summary
TelarServlet(ModelServiceApi api)
           
 
Method Summary
 void execute(java.lang.String username, java.lang.String requestJSON, javax.servlet.http.HttpServletResponse resp)
          WING: I think this should be changed to NOT accept the request object.
 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
 

Constructor Detail

TelarServlet

public TelarServlet(ModelServiceApi api)
Method Detail

init

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

execute

public void execute(java.lang.String username,
                    java.lang.String requestJSON,
                    javax.servlet.http.HttpServletResponse resp)
             throws org.json.JSONException,
                    java.io.IOException
WING: I think this should be changed to NOT accept the request object. add [ { graph : "", subject : "", predicate : "", object : "", type : "", datatype = "", lang : "" }, ... ]
remove [ { graph : "", subject : "", predicate : "", object : "", type : "", datatype = "", lang : "" }, ... ]
execQuery [ { defaultNamedGraphs : [ "", ... ], namedGraphs : [ "", ... ], query : "", queryLanguage : "" }, ... ]
graphRevisions { graphURI : revision, ... } Order of operations:
  1. removes
  2. adds
  3. execQueries
  4. graphRevisions

Parameters:
REQUEST -
RESPONSE -
obj -
Throws:
org.json.JSONException
java.io.IOException


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