Package org.oscim.tiling.source
Class LwHttp
java.lang.Object
org.oscim.tiling.source.LwHttp
- All Implemented Interfaces:
HttpEngine
Lightweight HTTP connection for tile loading. Does not do redirects,
https, full header parsing or other stuff.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.oscim.tiling.source.HttpEngine
HttpEngine.Factory -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()read()booleanrequestCompleted(boolean ok) voidsendRequest(Tile tile) voidsetCache(OutputStream os)
-
Method Details
-
read
- Specified by:
readin interfaceHttpEngine- Throws:
IOException
-
sendRequest
- Specified by:
sendRequestin interfaceHttpEngine- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceHttpEngine
-
setCache
- Specified by:
setCachein interfaceHttpEngine
-
requestCompleted
public boolean requestCompleted(boolean ok) - Specified by:
requestCompletedin interfaceHttpEngine- Parameters:
ok- maybe false when tile could not be decoded. Dont write cache in this case, close socket, etc at your option.- Returns:
- true when everything went ok
-