public class HttpUtil
extends java.lang.Object
Constructor and Description |
---|
HttpUtil() |
Modifier and Type | Method and Description |
---|---|
static javax.servlet.http.Cookie[] |
getCookies() |
static Http |
getHttp() |
static boolean |
hasProxyConfig() |
static boolean |
isNonProxyHost(java.lang.String host) |
static boolean |
isProxyHost(java.lang.String host) |
static byte[] |
URLtoByteArray(Http.Options options) |
static byte[] |
URLtoByteArray(java.lang.String location) |
static byte[] |
URLtoByteArray(java.lang.String location,
boolean post) |
static java.io.InputStream |
URLtoInputStream(Http.Options options) |
static java.io.InputStream |
URLtoInputStream(java.lang.String location) |
static java.io.InputStream |
URLtoInputStream(java.lang.String location,
boolean post) |
static java.lang.String |
URLtoString(Http.Options options) |
static java.lang.String |
URLtoString(java.lang.String location) |
static java.lang.String |
URLtoString(java.lang.String location,
boolean post) |
static java.lang.String |
URLtoString(java.net.URL url)
This method only uses the default Commons HttpClient implementation when
the URL object represents a HTTP resource.
|
public static javax.servlet.http.Cookie[] getCookies()
public static Http getHttp()
public static boolean hasProxyConfig()
public static boolean isNonProxyHost(java.lang.String host)
public static boolean isProxyHost(java.lang.String host)
public static byte[] URLtoByteArray(Http.Options options) throws java.io.IOException
java.io.IOException
public static byte[] URLtoByteArray(java.lang.String location) throws java.io.IOException
java.io.IOException
public static byte[] URLtoByteArray(java.lang.String location, boolean post) throws java.io.IOException
java.io.IOException
public static java.io.InputStream URLtoInputStream(Http.Options options) throws java.io.IOException
java.io.IOException
public static java.io.InputStream URLtoInputStream(java.lang.String location) throws java.io.IOException
java.io.IOException
public static java.io.InputStream URLtoInputStream(java.lang.String location, boolean post) throws java.io.IOException
java.io.IOException
public static java.lang.String URLtoString(Http.Options options) throws java.io.IOException
java.io.IOException
public static java.lang.String URLtoString(java.lang.String location) throws java.io.IOException
java.io.IOException
public static java.lang.String URLtoString(java.lang.String location, boolean post) throws java.io.IOException
java.io.IOException
public static java.lang.String URLtoString(java.net.URL url) throws java.io.IOException
url
- the URLjava.io.IOException
- if an IO Exception occurred