com.atlassian.aws.utils
Class URLFetcherUtils

java.lang.Object
  extended by com.atlassian.aws.utils.URLFetcherUtils

public class URLFetcherUtils
extends Object

Utility methods for working with URLFetchers.


Method Summary
static String fetchString(String userDataUrl, Charset charset, boolean shouldAttemptDecompression)
           
static URLFetcher getURLFetcher()
           
static void setURLFetcher(URLFetcher urlFetcher)
          Sets the singleton URLFetcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getURLFetcher

public static URLFetcher getURLFetcher()
Returns:
The singleton URLFetcher

setURLFetcher

public static void setURLFetcher(URLFetcher urlFetcher)

Sets the singleton URLFetcher.

Parameters:
urlFetcher - The singleton URLFetcher.

fetchString

public static String fetchString(String userDataUrl,
                                 Charset charset,
                                 boolean shouldAttemptDecompression)
                          throws IOException
Throws:
IOException


Copyright © 2015 Atlassian. All rights reserved.