public class WebUtils
extends java.lang.Object
| Constructor and Description | 
|---|
| WebUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.util.List<java.lang.String> | get(java.lang.String url,
   int timeout,
   java.util.Map header)Method to make a GET request to the specified url | 
| static java.util.List<java.lang.String> | post(java.lang.String url,
    int timeout,
    java.util.Map header)Method to make a POST request to the specified url | 
| static java.util.List<java.lang.String> | readGithub(java.lang.String repo,
          java.lang.String path)Deprecated. 
 See  GithubService | 
| static java.util.List<java.lang.String> | readGithub(java.lang.String repo,
          java.lang.String branch,
          java.lang.String path)Deprecated. 
 See  GithubService | 
| static java.util.List<java.lang.String> | readURL(java.lang.String url)Method for reading the contents of a web page | 
| static java.util.List<java.lang.String> | readURL(java.lang.String url,
       int timeout)Method for reading the contents of a web page | 
public static java.util.List<java.lang.String> readURL(java.lang.String url)
                                                throws java.io.IOException
url - The url of the web pagejava.io.IOExceptionpublic static java.util.List<java.lang.String> readURL(java.lang.String url,
                                       int timeout)
                                                throws java.io.IOException
url - The url of the web pagetimeout - The connection timeoutjava.io.IOExceptionpublic static java.util.List<java.lang.String> post(java.lang.String url,
                                    int timeout,
                                    java.util.Map header)
                                             throws java.io.IOException
url - URL to make the request ontimeout - The request timeoutheader - The request header (can be null)java.io.IOExceptionpublic static java.util.List<java.lang.String> get(java.lang.String url,
                                   int timeout,
                                   java.util.Map header)
                                            throws java.io.IOException
url - URL to make the request ontimeout - The request timeoutheader - The request header (can be null)java.io.IOException@Deprecated
public static java.util.List<java.lang.String> readGithub(java.lang.String repo,
                                                     java.lang.String path)
                                                   throws java.io.IOException
GithubServicerepo - Repo namepath - Path in the repojava.io.IOException@Deprecated
public static java.util.List<java.lang.String> readGithub(java.lang.String repo,
                                                     java.lang.String branch,
                                                     java.lang.String path)
                                                   throws java.io.IOException
GithubServicerepo - Repo namebranch - The branch of the repopath - Path in the repojava.io.IOException