package org.opendaylight.transportpce.pce.gnpy;
import com.google.common.io.CharStreams;
-
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
-
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public String returnGnpyResponse(String jsonTxt) throws GnpyException {
String jsonRespTxt = null;
-
+ LOG.debug("Sending request {}",jsonTxt);
try {
// Send the request to the GNPy
HttpURLConnection conn = connectToGNPy("POST");
} catch (IOException e) {
throw new GnpyException("In connectToGnpyServer: excpetion",e);
}
+ LOG.debug("Receiving response {}",jsonRespTxt);
return jsonRespTxt;
}