Package com.hp.hpl.jena.gvs.services.http.graphserver

Examples of com.hp.hpl.jena.gvs.services.http.graphserver.GraphHandler


   * @throws Exception
   */
  public void testSimpleBody() throws Exception {
    Model model = modelWithStatements("_a dc:subject _b; _a rdfs:comment '���'");
    final Graph body = JenaUtil.getGraphFromModel(model, true);
    WebServer webServer = createServer().startNewWebServer(new GraphHandlerAdaptor(new GraphHandler() {

      public void handle(Request request, TypedResponse<Graph> response) throws HandlerException {
        response.setBody(body);
      }
    }), serverBinding);
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.gvs.services.http.graphserver.GraphHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.