1 package org.opendaylight.controller.sal.restconf.impl.test;
3 import java.io.UnsupportedEncodingException;
5 import java.net.URLEncoder;
7 import com.google.common.base.Charsets;
9 public class RestOperationUtils {
11 static final String JSON = "+json";
12 static final String XML = "+xml";
14 private RestOperationUtils() {
17 static String createUri(String prefix, String encodedPart) throws UnsupportedEncodingException {
18 return URI.create(prefix + URLEncoder.encode(encodedPart, Charsets.US_ASCII.name()).toString()).toASCIIString();