Class HttpHeaderUtils
java.lang.Object
org.aksw.jena_sparql_api.conjure.utils.HttpHeaderUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RdfEntityInfocopyMetaData(org.apache.http.HttpEntity src, RdfEntityInfo tgt) static Stream<org.apache.http.HeaderElement>getElements(org.apache.http.Header[] headers) static Stream<org.apache.http.HeaderElement>getElements(org.apache.http.Header[] headers, String name) getOrderedValues(org.apache.http.Header[] headers, String name) TODO Ensure the result is stable; the javadoc for .sorted does not seem to guarantee thisstatic Stringstatic StringgetValueOrNull(org.apache.http.Header header) langToContentTypes(org.apache.jena.riot.Lang lang) static List<com.google.common.net.MediaType>langToMediaTypes(org.apache.jena.riot.Lang lang) static org.apache.http.Header[]mergeHeaders(org.apache.http.Header[] headers, String name) static floatqValueOf(org.apache.http.HeaderElement h) static Stream<org.apache.http.Header>streamHeaders(org.apache.http.Header[] headers) static Stream<org.apache.http.Header>streamHeaders(org.apache.http.Header[] headers, String name) static List<com.google.common.net.MediaType>static List<com.google.common.net.MediaType>supportedMediaTypes(Collection<org.apache.jena.riot.Lang> langs) toEntries(org.apache.http.Header[] headers) toEntry(org.apache.http.Header header) static org.apache.http.Header[]toHeaders(RdfEntityInfo info)
-
Constructor Details
-
HttpHeaderUtils
public HttpHeaderUtils()
-
-
Method Details
-
toEntry
-
toEntries
-
mergeHeaders
-
qValueOf
public static float qValueOf(org.apache.http.HeaderElement h) -
streamHeaders
-
streamHeaders
-
getElements
-
getElements
-
getOrderedValues
TODO Ensure the result is stable; the javadoc for .sorted does not seem to guarantee this- Parameters:
headers-name-- Returns:
- A linked hash map with items inserted in the order of their q value
-
getValueOrNull
-
getValue
-
getValues
-
getValues
-
copyMetaData
-
toHeaders
-
supportedMediaTypes
-
langToContentTypes
-
langToMediaTypes
public static List<com.google.common.net.MediaType> langToMediaTypes(org.apache.jena.riot.Lang lang) -
supportedMediaTypes
public static List<com.google.common.net.MediaType> supportedMediaTypes(Collection<org.apache.jena.riot.Lang> langs)
-