Package com.liferay.portal.kernel.util
Interface Http
@ProviderType
public interface Http
- Author:
- Brian Wing Shun Chan, Hugo Huijser
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
static enum
static class
static class
static enum
static class
static class
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.http.Cookie[]
boolean
boolean
isNonProxyHost
(String host) boolean
isProxyHost
(String host) byte[]
URLtoByteArray
(Http.Options options) byte[]
URLtoByteArray
(String location) byte[]
URLtoByteArray
(String location, boolean post) URLtoInputStream
(Http.Options options) URLtoInputStream
(String location) URLtoInputStream
(String location, boolean post) URLtoString
(Http.Options options) URLtoString
(String location) URLtoString
(String location, boolean post) URLtoString
(URL url) This method only uses the default Commons HttpClient implementation when the URL object represents a HTTP resource.
-
Field Details
-
HTTP
- See Also:
-
HTTP_PORT
static final int HTTP_PORT- See Also:
-
HTTP_WITH_SLASH
- See Also:
-
HTTPS
- See Also:
-
HTTPS_PORT
static final int HTTPS_PORT- See Also:
-
HTTPS_WITH_SLASH
- See Also:
-
PROTOCOL_DELIMITER
- See Also:
-
URL_MAXIMUM_LENGTH
static final int URL_MAXIMUM_LENGTH- See Also:
-
-
Method Details
-
getCookies
javax.servlet.http.Cookie[] getCookies() -
hasProxyConfig
boolean hasProxyConfig() -
isNonProxyHost
-
isProxyHost
-
URLtoByteArray
- Throws:
IOException
-
URLtoByteArray
- Throws:
IOException
-
URLtoByteArray
- Throws:
IOException
-
URLtoInputStream
- Throws:
IOException
-
URLtoInputStream
- Throws:
IOException
-
URLtoInputStream
- Throws:
IOException
-
URLtoString
- Throws:
IOException
-
URLtoString
- Throws:
IOException
-
URLtoString
- Throws:
IOException
-
URLtoString
This method only uses the default Commons HttpClient implementation when the URL object represents a HTTP resource. The URL object could also represent a file or some JNDI resource. In that case, the default Java implementation is used.- Parameters:
url
- the URL- Returns:
- A string representation of the resource referenced by the URL object
- Throws:
IOException
- if an IO exception occurred
-