Subversion Repositories SmartDukaan

Rev

Rev 26078 | Rev 27179 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26078 Rev 26656
Line 34... Line 34...
34
 
34
 
35
import com.fasterxml.jackson.databind.ObjectMapper;
35
import com.fasterxml.jackson.databind.ObjectMapper;
36
import com.spice.profitmandi.common.ResponseCodeHolder;
36
import com.spice.profitmandi.common.ResponseCodeHolder;
37
import com.spice.profitmandi.common.enumuration.SchemeType;
37
import com.spice.profitmandi.common.enumuration.SchemeType;
38
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
38
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
39
import com.spice.profitmandi.common.util.StringUtils;
-
 
40
 
39
 
41
@Component
40
@Component
42
public class RestClient {
41
public class RestClient {
43
 
42
 
44
	private static final Logger LOGGER = LogManager.getLogger(RestClient.class);
43
	private static final Logger LOGGER = LogManager.getLogger(RestClient.class);
Line 224... Line 223...
224
				responseString.append(line);
223
				responseString.append(line);
225
			}
224
			}
226
			inputStream.close();
225
			inputStream.close();
227
		} catch (IOException e) {
226
		} catch (IOException e) {
228
			throw new RuntimeException();
227
			throw new RuntimeException();
-
 
228
		} finally {
-
 
229
			
229
		}
230
		}
230
		return responseString.toString();
231
		return responseString.toString();
231
	}
232
	}
232
}
233
}
233
234