Uses of Class
com.janeirodigital.sai.httputils.SaiHttpException

  • Uses of SaiHttpException in com.janeirodigital.sai.httputils

    Modifier and Type
    Method
    Description
    static URI
    HttpUtils.addChildToUriPath(URI baseUri, String child)
    Adds a child to the end of the path of baseUrl
    protected static okhttp3.Response
    HttpUtils.checkRdfResponse(okhttp3.Response response)
    Check the provided response for viable for an RDF resource.
    static okhttp3.Response
    HttpUtils.deleteResource(okhttp3.OkHttpClient httpClient, URI uri)
    Calls HttpUtils.deleteResource(OkHttpClient, URI, Headers) without any additional headers supplied.
    static okhttp3.Response
    HttpUtils.deleteResource(okhttp3.OkHttpClient httpClient, URI uri, okhttp3.Headers headers)
    Perform an HTTP DELETE on the resource at uri.
    protected static ContentType
    HttpUtils.getContentType(okhttp3.Response response)
    Get the HTTP Content-Type of the response
    static org.apache.jena.rdf.model.Model
    HttpUtils.getRdfModelFromResponse(okhttp3.Response response)
    Get a Jena RDF Model from the body of the OkHttp Response.
    static okhttp3.Response
    HttpUtils.getRdfResource(okhttp3.OkHttpClient httpClient, URI uri)
    Perform an HTTP GET on an RDF resource at uri.
    static okhttp3.Response
    HttpUtils.getRdfResource(okhttp3.OkHttpClient httpClient, URI uri, okhttp3.Headers headers)
    Perform an HTTP GET on an RDF resource at uri.
    static okhttp3.Response
    HttpUtils.getRequiredRdfResource(okhttp3.OkHttpClient httpClient, URI uri)
    Perform an HTTP GET on an RDF resource at uri.
    static okhttp3.Response
    HttpUtils.getRequiredResource(okhttp3.OkHttpClient httpClient, URI uri)
    Perform an HTTP GET on the resource at uri, and throws an exception if the resource cannot be found or the response is otherwise unsuccessful.
    static okhttp3.Response
    HttpUtils.getResource(okhttp3.OkHttpClient httpClient, URI uri)
    Calls HttpUtils.getResource(OkHttpClient, URI, Headers) without any additional headers supplied.
    static okhttp3.Response
    HttpUtils.getResource(okhttp3.OkHttpClient httpClient, URI uri, okhttp3.Headers headers)
    Perform an HTTP GET on the resource at uri.
    static okhttp3.Response
    HttpUtils.putRdfContainer(okhttp3.OkHttpClient httpClient, URI uri, org.apache.jena.rdf.model.Resource resource, ContentType contentType)
     
    static okhttp3.Response
    HttpUtils.putRdfContainer(okhttp3.OkHttpClient httpClient, URI uri, org.apache.jena.rdf.model.Resource resource, ContentType contentType, String jsonLdContext)
    Perform an HTTP PUT on the resource at uri treated as a Basic Container, with a serialized Jena Resource as the request body.
    static okhttp3.Response
    HttpUtils.putRdfResource(okhttp3.OkHttpClient httpClient, URI uri, org.apache.jena.rdf.model.Resource resource, ContentType contentType)
    Perform an HTTP PUT on the resource at uri using a serialized Jena Resource as the request body.
    static okhttp3.Response
    HttpUtils.putRdfResource(okhttp3.OkHttpClient httpClient, URI uri, org.apache.jena.rdf.model.Resource resource, ContentType contentType, String jsonLdContext)
    Perform an HTTP PUT on the resource at uri using a serialized Jena Resource as the request body with a jsonLdContext
    static okhttp3.Response
    HttpUtils.putRdfResource(okhttp3.OkHttpClient httpClient, URI uri, org.apache.jena.rdf.model.Resource resource, ContentType contentType, String jsonLdContext, okhttp3.Headers headers)
    Perform an HTTP PUT with optional headers on the resource at uri using a serialized Jena Resource as the request body.
    static okhttp3.Response
    HttpUtils.putRdfResource(okhttp3.OkHttpClient httpClient, URI uri, org.apache.jena.rdf.model.Resource resource, ContentType contentType, okhttp3.Headers headers)
    Perform an HTTP PUT with optional headers on the resource at uri using a serialized Jena Resource as the request body.
    static okhttp3.Response
    HttpUtils.putResource(okhttp3.OkHttpClient httpClient, URI uri, okhttp3.Headers headers, String body, ContentType contentType)
    Perform an HTTP PUT on the resource at uri.
    static URL
    HttpUtils.stringToUrl(String urlString)
    Converts a string to a URL
    static URL
    HttpUtils.uriToUrl(URI uri)
    Coverts a URI to a URL
    static URL
    HttpUtils.urlToBase(URL url)
    Returns the scheme, domain name, port, and path of a URL, removing any query parameters or fragments.