Class URIUtils

java.lang.Object
org.apache.olingo.client.core.uri.URIUtils

public final class URIUtils extends Object
URI utilities.
  • Method Details

    • getURI

      public static URI getURI(String base, String href)
      Build URI starting from the given base and href.
      If href is absolute or base is null then base will be ignored.
      Parameters:
      base - URI prefix.
      href - URI suffix.
      Returns:
      built URI.
    • getURI

      public static URI getURI(URI base, URI href)
      Build URI starting from the given base and href.
      If href is absolute or base is null then base will be ignored.
      Parameters:
      base - URI prefix.
      href - URI suffix.
      Returns:
      built URI.
    • getURI

      public static URI getURI(URI base, String href)
      Build URI starting from the given base and href.
      If href is absolute or base is null then base will be ignored.
      Parameters:
      base - URI prefix.
      href - URI suffix.
      Returns:
      built URI.
    • escape

      public static String escape(Object obj)
      Turns primitive values into their respective URI representation.
      Parameters:
      obj - primitive value
      Returns:
      URI representation
    • shouldUseRepeatableHttpBodyEntry

      public static boolean shouldUseRepeatableHttpBodyEntry(ODataClient client)
    • buildInputStreamEntity

      public static org.apache.http.HttpEntity buildInputStreamEntity(ODataClient client, InputStream input)
    • addValueSegment

      public static URI addValueSegment(URI uri)
    • buildFunctionInvokeURI

      public static URI buildFunctionInvokeURI(URI uri, Map<String,ClientValue> parameters)