|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.net.http.HTTPUtils
public class HTTPUtils
Methods for working with HTTP protocol connections.
Constructor Summary | |
---|---|
protected |
HTTPUtils()
Don't allow instantiation, but do allow overrides. |
Method Summary | |
---|---|
static java.lang.String |
getURLContents(java.lang.String urlString)
Load contents at URL into a string. |
static java.lang.String |
getURLContents(java.lang.String urlString,
java.lang.String eolString)
Load contents at URL into a string. |
static java.lang.String |
getURLContents(java.lang.String urlString,
java.lang.String encoding,
java.lang.String eolString)
Load contents at URL into a string. |
static java.lang.String |
getURLContents(java.net.URL url)
Load contents at URL into a string. |
static java.lang.String |
getURLContents(java.net.URL url,
java.lang.String eolString)
Load contents at URL into a string. |
static java.lang.String |
getURLContents(java.net.URL url,
java.lang.String encoding,
java.lang.String eolString)
Load contents at URL into a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected HTTPUtils()
Method Detail |
---|
public static java.lang.String getURLContents(java.lang.String urlString, java.lang.String encoding, java.lang.String eolString)
urlString
- The URL in string form.encoding
- The encoding (e.g, ""UTF-8").
May be empty or null.eolString
- String with which to replace end of line
character(s). May be empty or null.
public static java.lang.String getURLContents(java.net.URL url, java.lang.String encoding, java.lang.String eolString)
url
- The URL.encoding
- The encoding (e.g, ""UTF-8").
May be empty or null.eolString
- String with which to replace end of line
character(s). May be empty or null.
public static java.lang.String getURLContents(java.lang.String urlString, java.lang.String eolString)
urlString
- The URL in string form.eolString
- String with which to replace end of line
character(s). May be empty or null.
public static java.lang.String getURLContents(java.net.URL url, java.lang.String eolString)
url
- The URL.eolString
- String with which to replace end of line
character(s). May be empty or null.
public static java.lang.String getURLContents(java.lang.String urlString)
urlString
- The URL in string form.
public static java.lang.String getURLContents(java.net.URL url)
url
- The URL.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |