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[]booleanbooleanisNonProxyHost(String host) booleanisProxyHost(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:
getCookiesin interfacecom.liferay.portal.kernel.util.Http
-
hasProxyConfig
public boolean hasProxyConfig()- Specified by:
hasProxyConfigin interfacecom.liferay.portal.kernel.util.Http
-
isNonProxyHost
- Specified by:
isNonProxyHostin interfacecom.liferay.portal.kernel.util.Http
-
isProxyHost
- Specified by:
isProxyHostin interfacecom.liferay.portal.kernel.util.Http
-
URLtoByteArray
public byte[] URLtoByteArray(com.liferay.portal.kernel.util.Http.Options options) throws IOException - Specified by:
URLtoByteArrayin interfacecom.liferay.portal.kernel.util.Http- Throws:
IOException
-
URLtoByteArray
- Specified by:
URLtoByteArrayin interfacecom.liferay.portal.kernel.util.Http- Throws:
IOException
-
URLtoByteArray
- Specified by:
URLtoByteArrayin interfacecom.liferay.portal.kernel.util.Http- Throws:
IOException
-
URLtoInputStream
public InputStream URLtoInputStream(com.liferay.portal.kernel.util.Http.Options options) throws IOException - Specified by:
URLtoInputStreamin interfacecom.liferay.portal.kernel.util.Http- Throws:
IOException
-
URLtoInputStream
- Specified by:
URLtoInputStreamin interfacecom.liferay.portal.kernel.util.Http- Throws:
IOException
-
URLtoInputStream
- Specified by:
URLtoInputStreamin interfacecom.liferay.portal.kernel.util.Http- Throws:
IOException
-
URLtoString
- Specified by:
URLtoStringin interfacecom.liferay.portal.kernel.util.Http- Throws:
IOException
-
URLtoString
- Specified by:
URLtoStringin interfacecom.liferay.portal.kernel.util.Http- Throws:
IOException
-
URLtoString
- Specified by:
URLtoStringin interfacecom.liferay.portal.kernel.util.Http- Throws:
IOException
-
URLtoString
- Specified by:
URLtoStringin interfacecom.liferay.portal.kernel.util.Http- Throws:
IOException
-