@ProviderType
public interface Http
Modifier and Type | Interface and Description |
---|---|
static class |
Http.Auth |
static class |
Http.Body |
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 String |
HTTP |
static int |
HTTP_PORT |
static String |
HTTP_WITH_SLASH |
static String |
HTTPS |
static int |
HTTPS_PORT |
static String |
HTTPS_WITH_SLASH |
static String |
PROTOCOL_DELIMITER |
static int |
URL_MAXIMUM_LENGTH |
Modifier and Type | Method and Description |
---|---|
javax.servlet.http.Cookie[] |
getCookies() |
boolean |
hasProxyConfig() |
boolean |
isNonProxyHost(String host) |
boolean |
isProxyHost(String host) |
byte[] |
URLtoByteArray(Http.Options options) |
byte[] |
URLtoByteArray(String location) |
byte[] |
URLtoByteArray(String location,
boolean post) |
InputStream |
URLtoInputStream(Http.Options options) |
InputStream |
URLtoInputStream(String location) |
InputStream |
URLtoInputStream(String location,
boolean post) |
String |
URLtoString(Http.Options options) |
String |
URLtoString(String location) |
String |
URLtoString(String location,
boolean post) |
String |
URLtoString(URL url)
This method only uses the default Commons HttpClient implementation when
the URL object represents a HTTP resource.
|
static final String HTTP
static final int HTTP_PORT
static final String HTTP_WITH_SLASH
static final String HTTPS
static final int HTTPS_PORT
static final String HTTPS_WITH_SLASH
static final String PROTOCOL_DELIMITER
static final int URL_MAXIMUM_LENGTH
javax.servlet.http.Cookie[] getCookies()
boolean hasProxyConfig()
boolean isNonProxyHost(String host)
boolean isProxyHost(String host)
byte[] URLtoByteArray(Http.Options options) throws IOException
IOException
byte[] URLtoByteArray(String location) throws IOException
IOException
byte[] URLtoByteArray(String location, boolean post) throws IOException
IOException
InputStream URLtoInputStream(Http.Options options) throws IOException
IOException
InputStream URLtoInputStream(String location) throws IOException
IOException
InputStream URLtoInputStream(String location, boolean post) throws IOException
IOException
String URLtoString(Http.Options options) throws IOException
IOException
String URLtoString(String location) throws IOException
IOException
String URLtoString(String location, boolean post) throws IOException
IOException
String URLtoString(URL url) throws IOException
url
- the URLIOException
- if an IO exception occurred