eu.larkc.core.endpoint.sparql
Class SparqlHandler

java.lang.Object
  extended by eu.larkc.core.endpoint.Endpoint
      extended by eu.larkc.core.endpoint.sparql.SparqlHandler
All Implemented Interfaces:
com.sun.net.httpserver.HttpHandler
Direct Known Subclasses:
PullEndpoint

public class SparqlHandler
extends Endpoint

Simple HTTP Server Handler which is routed to SPARQLProtocol servlet

Author:
Janez Brank, Luka Bradesko, Blaz Fortuna

Constructor Summary
SparqlHandler(Executor ex)
          Constructor.
 
Method Summary
 void handle(com.sun.net.httpserver.HttpExchange httpExchange)
          Implementation of the method required to implement the HttpHandler interface.
 
Methods inherited from class eu.larkc.core.endpoint.Endpoint
getExecutor, getPipeId, getPort, getURI, isInitialized, setPipeId, setPort, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparqlHandler

public SparqlHandler(Executor ex)
Constructor. The endpoint has to know which Executor is responsible for it, hence an Executor has to be passed as an argument.

Parameters:
ex - The Executor responsible for this SPARQL endpoint
Method Detail

handle

public void handle(com.sun.net.httpserver.HttpExchange httpExchange)
            throws java.io.IOException
Implementation of the method required to implement the HttpHandler interface.

Parameters:
httpExchange - Single-exchange HTTP request/response.
Throws:
java.io.IOException