CASC-224 Replace URL with String to remain compatible with Spring Security

This commit is contained in:
Scott Battaglia 2014-07-20 20:31:35 -04:00
parent ab6cbdc3da
commit d2d7af065d
1 changed files with 6 additions and 2 deletions

View File

@ -360,8 +360,12 @@ public final class CommonUtils {
* @return the response.
*/
@Deprecated
public static String getResponseFromServer(final URL constructedUrl, final String encoding) {
return getResponseFromServer(constructedUrl, DEFAULT_URL_CONNECTION_FACTORY, encoding);
public static String getResponseFromServer(final String constructedUrl, final String encoding) {
try {
return getResponseFromServer(new URL(constructedUrl), DEFAULT_URL_CONNECTION_FACTORY, encoding);
} catch (final Exception e) {
throw new RuntimeException(e);
}
}
/**