Class MockHttp
Object
com.liferay.portal.kernel.test.util.MockHttp
- All Implemented Interfaces:
com.liferay.portal.kernel.util.Http
- Author:
- Mikel Lorza
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.liferay.portal.kernel.util.Http
com.liferay.portal.kernel.util.Http.Auth, com.liferay.portal.kernel.util.Http.Body, com.liferay.portal.kernel.util.Http.CookieSpec, com.liferay.portal.kernel.util.Http.FilePart, com.liferay.portal.kernel.util.Http.InputStreamPart, com.liferay.portal.kernel.util.Http.Method, com.liferay.portal.kernel.util.Http.Options, com.liferay.portal.kernel.util.Http.Response
-
Field Summary
Fields inherited from interface com.liferay.portal.kernel.util.Http
HTTP, HTTP_PORT, HTTP_WITH_SLASH, HTTPS, HTTPS_PORT, HTTPS_WITH_SLASH, PROTOCOL_DELIMITER, URL_MAXIMUM_LENGTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.http.Cookie[]
boolean
boolean
isNonProxyHost
(String host) boolean
isProxyHost
(String host) byte[]
URLtoByteArray
(com.liferay.portal.kernel.util.Http.Options options) byte[]
URLtoByteArray
(String location) byte[]
URLtoByteArray
(String location, boolean post) URLtoInputStream
(com.liferay.portal.kernel.util.Http.Options options) URLtoInputStream
(String location) URLtoInputStream
(String location, boolean post) URLtoString
(com.liferay.portal.kernel.util.Http.Options options) URLtoString
(String location) URLtoString
(String location, boolean post) URLtoString
(URL url)
-
Constructor Details
-
MockHttp
-
-
Method Details
-
getCookies
public javax.servlet.http.Cookie[] getCookies()- Specified by:
getCookies
in interfacecom.liferay.portal.kernel.util.Http
-
hasProxyConfig
public boolean hasProxyConfig()- Specified by:
hasProxyConfig
in interfacecom.liferay.portal.kernel.util.Http
-
isNonProxyHost
- Specified by:
isNonProxyHost
in interfacecom.liferay.portal.kernel.util.Http
-
isProxyHost
- Specified by:
isProxyHost
in interfacecom.liferay.portal.kernel.util.Http
-
URLtoByteArray
public byte[] URLtoByteArray(com.liferay.portal.kernel.util.Http.Options options) throws IOException - Specified by:
URLtoByteArray
in interfacecom.liferay.portal.kernel.util.Http
- Throws:
IOException
-
URLtoByteArray
- Specified by:
URLtoByteArray
in interfacecom.liferay.portal.kernel.util.Http
- Throws:
IOException
-
URLtoByteArray
- Specified by:
URLtoByteArray
in interfacecom.liferay.portal.kernel.util.Http
- Throws:
IOException
-
URLtoInputStream
public InputStream URLtoInputStream(com.liferay.portal.kernel.util.Http.Options options) throws IOException - Specified by:
URLtoInputStream
in interfacecom.liferay.portal.kernel.util.Http
- Throws:
IOException
-
URLtoInputStream
- Specified by:
URLtoInputStream
in interfacecom.liferay.portal.kernel.util.Http
- Throws:
IOException
-
URLtoInputStream
- Specified by:
URLtoInputStream
in interfacecom.liferay.portal.kernel.util.Http
- Throws:
IOException
-
URLtoString
- Specified by:
URLtoString
in interfacecom.liferay.portal.kernel.util.Http
- Throws:
IOException
-
URLtoString
- Specified by:
URLtoString
in interfacecom.liferay.portal.kernel.util.Http
- Throws:
IOException
-
URLtoString
- Specified by:
URLtoString
in interfacecom.liferay.portal.kernel.util.Http
- Throws:
IOException
-
URLtoString
- Specified by:
URLtoString
in interfacecom.liferay.portal.kernel.util.Http
- Throws:
IOException
-