Class MockHttp

Object
com.liferay.portal.kernel.test.util.MockHttp
All Implemented Interfaces:
com.liferay.portal.kernel.util.Http

public class MockHttp extends Object implements com.liferay.portal.kernel.util.Http
Author:
Mikel Lorza
  • Constructor Details

  • Method Details

    • getCookies

      public javax.servlet.http.Cookie[] getCookies()
      Specified by:
      getCookies in interface com.liferay.portal.kernel.util.Http
    • hasProxyConfig

      public boolean hasProxyConfig()
      Specified by:
      hasProxyConfig in interface com.liferay.portal.kernel.util.Http
    • isNonProxyHost

      public boolean isNonProxyHost(String host)
      Specified by:
      isNonProxyHost in interface com.liferay.portal.kernel.util.Http
    • isProxyHost

      public boolean isProxyHost(String host)
      Specified by:
      isProxyHost in interface com.liferay.portal.kernel.util.Http
    • URLtoByteArray

      public byte[] URLtoByteArray(com.liferay.portal.kernel.util.Http.Options options) throws IOException
      Specified by:
      URLtoByteArray in interface com.liferay.portal.kernel.util.Http
      Throws:
      IOException
    • URLtoByteArray

      public byte[] URLtoByteArray(String location) throws IOException
      Specified by:
      URLtoByteArray in interface com.liferay.portal.kernel.util.Http
      Throws:
      IOException
    • URLtoByteArray

      public byte[] URLtoByteArray(String location, boolean post) throws IOException
      Specified by:
      URLtoByteArray in interface com.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 interface com.liferay.portal.kernel.util.Http
      Throws:
      IOException
    • URLtoInputStream

      public InputStream URLtoInputStream(String location) throws IOException
      Specified by:
      URLtoInputStream in interface com.liferay.portal.kernel.util.Http
      Throws:
      IOException
    • URLtoInputStream

      public InputStream URLtoInputStream(String location, boolean post) throws IOException
      Specified by:
      URLtoInputStream in interface com.liferay.portal.kernel.util.Http
      Throws:
      IOException
    • URLtoString

      public String URLtoString(com.liferay.portal.kernel.util.Http.Options options) throws IOException
      Specified by:
      URLtoString in interface com.liferay.portal.kernel.util.Http
      Throws:
      IOException
    • URLtoString

      public String URLtoString(String location) throws IOException
      Specified by:
      URLtoString in interface com.liferay.portal.kernel.util.Http
      Throws:
      IOException
    • URLtoString

      public String URLtoString(String location, boolean post) throws IOException
      Specified by:
      URLtoString in interface com.liferay.portal.kernel.util.Http
      Throws:
      IOException
    • URLtoString

      public String URLtoString(URL url) throws IOException
      Specified by:
      URLtoString in interface com.liferay.portal.kernel.util.Http
      Throws:
      IOException