Project

General

Profile

« Previous | Next » 

Revision 50947

close the db connection per request, in fetch claims by context id use like and wild character in order to get all claims of a community

View differences:

SearchUtils.java
128 128

  
129 129
        return ((production)?apiUrlForResultsProduction:apiUrlForResults)+"/publications?openairePublicationID="+id;
130 130
    }
131
    public static String getSoftwareApiUrl(String id, boolean production)  {
131
    public static String  getSoftwareApiUrl(String id, boolean production)  {
132 132
        //TODO change to beta when it's ready
133
//        return ((production)?apiUrlForResultsProduction:apiUrlForResults)+"/software/"+id;
134
        return "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/api"+"/software?openaireSoftwareID="+id;
133
        return ((production)?apiUrlForResultsProduction:apiUrlForResults)+"/software?openaireSoftwareID="+id;
134
//        return "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/api"+"/software?openaireSoftwareID="+id;
135 135
    }
136 136
//    public static String getDedupPublicationApiUrl(String id)  {
137 137
//
......
181 181
    // HTTP GET request
182 182
    private static String getRequest(String url) throws Exception {
183 183
        URL obj = new URL(url);
184
//        logger.debug(url);
184
        logger.debug(url);
185 185
        HttpURLConnection con = (HttpURLConnection) obj.openConnection();
186 186
        int responseCode = con.getResponseCode();
187 187
        if(responseCode != 200){

Also available in: Unified diff