Uses of Enum Class
com.janeirodigital.sai.httputils.ContentType

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

    Modifier and Type
    Field
    Description
    static final ContentType
     
    Fields in com.janeirodigital.sai.httputils with type parameters of type ContentType
    Modifier and Type
    Field
    Description
    static final Set<ContentType>
     
    Modifier and Type
    Method
    Description
    ContentType.get(String name)
     
    protected static ContentType
    HttpUtils.getContentType(okhttp3.Response response)
    Get the HTTP Content-Type of the response
    ContentType.valueOf(String name)
    Returns the enum constant of this class with the specified name.
    static ContentType[]
    ContentType.values()
    Returns an array containing the constants of this enum class, in the order they are declared.
    Methods in com.janeirodigital.sai.httputils with parameters of type ContentType
    Modifier and Type
    Method
    Description
    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.