Class OkHttpEngine

java.lang.Object
org.oscim.tiling.source.OkHttpEngine
All Implemented Interfaces:
org.oscim.tiling.source.HttpEngine

public class OkHttpEngine extends Object implements org.oscim.tiling.source.HttpEngine
  • Constructor Details

    • OkHttpEngine

      public OkHttpEngine(okhttp3.OkHttpClient client, org.oscim.tiling.source.UrlTileSource tileSource)
  • Method Details

    • read

      public InputStream read() throws IOException
      Specified by:
      read in interface org.oscim.tiling.source.HttpEngine
      Throws:
      IOException
    • sendRequest

      public void sendRequest(org.oscim.core.Tile tile) throws IOException
      Specified by:
      sendRequest in interface org.oscim.tiling.source.HttpEngine
      Throws:
      IOException
    • close

      public void close()
      Specified by:
      close in interface org.oscim.tiling.source.HttpEngine
    • setCache

      public void setCache(OutputStream os)
      Specified by:
      setCache in interface org.oscim.tiling.source.HttpEngine
    • requestCompleted

      public boolean requestCompleted(boolean success)
      Specified by:
      requestCompleted in interface org.oscim.tiling.source.HttpEngine