public class URIUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
URIUtils() |
Modifier and Type | Method and Description |
---|---|
static com.hp.hpl.jena.rdf.model.Resource |
adjustPageParameter(com.hp.hpl.jena.rdf.model.Model m,
URI ru,
boolean isListEndpoint,
int page)
Return a Resource in
m who's URI is based on
ru , but with the _page parameter removed (for an item
endpoint) or updated to page (for a list endpoint). |
static URI |
changeFormatSuffix(URI reqURI,
Set<String> knownFormats,
String formatName) |
static URI |
newURI(String u)
Answer the URI with the given spelling.
|
static URI |
noLeadingSlash(String path) |
static URI |
replaceQueryParam(URI ru,
String key,
String... values)
Answer the URI ru with any existing query parameters named
key
discarded and replaced by key=value1&key=value2 ... |
static URI |
resolveAgainstBase(URI requestUri,
URI baseAsURI,
String uiPath) |
static URI |
withoutPageParameters(URI ru)
Return a URI based on
ru with any _page or _pageSize
query settings removed. |
public static URI newURI(String u)
public static URI replaceQueryParam(URI ru, String key, String... values)
key
discarded and replaced by key=value1&key=value2 ...public static URI changeFormatSuffix(URI reqURI, Set<String> knownFormats, String formatName)
public static URI resolveAgainstBase(URI requestUri, URI baseAsURI, String uiPath)
public static com.hp.hpl.jena.rdf.model.Resource adjustPageParameter(com.hp.hpl.jena.rdf.model.Model m, URI ru, boolean isListEndpoint, int page)
m
who's URI is based on
ru
, but with the _page parameter removed (for an item
endpoint) or updated to page
(for a list endpoint).Copyright © 2014. All Rights Reserved.