Java URI to extractContentDigest(URI contentDigest)

Here you can find the source of extractContentDigest(URI contentDigest)

Description

extract Content Digest

License

LGPL

Declaration

private static Map<String, String> extractContentDigest(URI contentDigest) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.net.URI;
import java.util.HashMap;

import java.util.Map;

public class Main {
    private static Map<String, String> extractContentDigest(URI contentDigest) {
        Map<String, String> ret = new HashMap<>();
        if (contentDigest != null) {
            final String[] values = contentDigest.getSchemeSpecificPart().split(":");
            if (values.length == 2) {
                ret.put(values[0], values[1]);
            }//w  ww  . j  a  v  a  2  s .c o  m
        }
        return ret;
    }
}

Related

  1. convertToAbsPath(URI baseURI, String path)
  2. convertToEncodedURIString(String input)
  3. extractBaseUriFromRDF(String rdfString)
  4. extractForwardURIFrom(URI requestURI)
  5. extractFromURIParams(String paramsRule, String uri)
  6. extractHostAddress(String uri)
  7. extractHostname(String uri)