@ProviderType
public interface Http
Modifier and Type | Interface and Description |
---|---|
static class |
Http.Auth |
static class |
Http.Body |
static class |
Http.CookieSpec |
static class |
Http.FilePart |
static class |
Http.InputStreamPart |
static class |
Http.Method |
static class |
Http.Options |
static class |
Http.Response |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HTTP |
static int |
HTTP_PORT |
static java.lang.String |
HTTP_WITH_SLASH |
static java.lang.String |
HTTPS |
static int |
HTTPS_PORT |
static java.lang.String |
HTTPS_WITH_SLASH |
static java.lang.String |
PROTOCOL_DELIMITER |
static int |
URL_MAXIMUM_LENGTH |
Modifier and Type | Method and Description |
---|---|
javax.servlet.http.Cookie[] |
getCookies() |
boolean |
hasProxyConfig() |
boolean |
isNonProxyHost(java.lang.String host) |
boolean |
isProxyHost(java.lang.String host) |
byte[] |
URLtoByteArray(Http.Options options) |
byte[] |
URLtoByteArray(java.lang.String location) |
byte[] |
URLtoByteArray(java.lang.String location,
boolean post) |
java.io.InputStream |
URLtoInputStream(Http.Options options) |
java.io.InputStream |
URLtoInputStream(java.lang.String location) |
java.io.InputStream |
URLtoInputStream(java.lang.String location,
boolean post) |
java.lang.String |
URLtoString(Http.Options options) |
java.lang.String |
URLtoString(java.lang.String location) |
java.lang.String |
URLtoString(java.lang.String location,
boolean post) |
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.
|
static final java.lang.String HTTP
static final int HTTP_PORT
static final java.lang.String HTTP_WITH_SLASH
static final java.lang.String HTTPS
static final int HTTPS_PORT
static final java.lang.String HTTPS_WITH_SLASH
static final java.lang.String PROTOCOL_DELIMITER
static final int URL_MAXIMUM_LENGTH
javax.servlet.http.Cookie[] getCookies()
boolean hasProxyConfig()
boolean isNonProxyHost(java.lang.String host)
boolean isProxyHost(java.lang.String host)
byte[] URLtoByteArray(Http.Options options) throws java.io.IOException
java.io.IOException
byte[] URLtoByteArray(java.lang.String location) throws java.io.IOException
java.io.IOException
byte[] URLtoByteArray(java.lang.String location, boolean post) throws java.io.IOException
java.io.IOException
java.io.InputStream URLtoInputStream(Http.Options options) throws java.io.IOException
java.io.IOException
java.io.InputStream URLtoInputStream(java.lang.String location) throws java.io.IOException
java.io.IOException
java.io.InputStream URLtoInputStream(java.lang.String location, boolean post) throws java.io.IOException
java.io.IOException
java.lang.String URLtoString(Http.Options options) throws java.io.IOException
java.io.IOException
java.lang.String URLtoString(java.lang.String location) throws java.io.IOException
java.io.IOException
java.lang.String URLtoString(java.lang.String location, boolean post) throws java.io.IOException
java.io.IOException
java.lang.String URLtoString(java.net.URL url) throws java.io.IOException
url
- the URLjava.io.IOException
- if an IO exception occurred