All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.modelfabric.sparql.api.ClientAPIProtocol.scala Maven / Gradle / Ivy

There is a newer version: 0.2.13
Show newest version
package org.modelfabric.sparql.api

import akka.http.scaladsl.model.HttpMethod


/**
  * Client API Protocol, all concrete API requests use this
  */
trait ClientAPIProtocol

/**
  * Request
  */
trait Request extends ClientAPIProtocol

/**
  * Response
  */
trait Response extends ClientAPIProtocol

/**
  * Represents any request sent to the Sparql endpoint via HTTP, which may
  * include Sparql statements or graph-store protocol operations.
  */
abstract class ClientHttpRequest extends Request {

  /**
    * @return the HTTP Method to be used to communicate with the endpoint
    */
  def httpMethod: HttpMethod

}


abstract class ClientHttpResponse extends Response {

  /**
    * Indicates if the request has been successful
    * @return
    */
  def success: Boolean

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy