Skip to content

AbstractTileFactory: add openRemoteStream hook for custom HTTP implementations#140

Open
catobus wants to merge 1 commit intomsteiger:masterfrom
catobus:feature/openremotestream
Open

AbstractTileFactory: add openRemoteStream hook for custom HTTP implementations#140
catobus wants to merge 1 commit intomsteiger:masterfrom
catobus:feature/openremotestream

Conversation

@catobus
Copy link
Copy Markdown

@catobus catobus commented Mar 3, 2026

This PR introduces a protected openRemoteStream(URL) method in AbstractTileFactory.

Motivation:
Allow subclasses to provide a custom HTTP implementation (e.g., different HTTP client) while preserving the existing TileRunner, queue, and caching logic.

Changes:

  • Added protected openRemoteStream(URL)
  • Modified cacheInputStream to delegate remote loading to this method
  • Default behavior remains unchanged (still uses URLConnection)

Compatibility:
No behavioral changes unless subclasses override the new method.

Tested:
Verified that tile loading continues to function normally with the default implementation.

@msteiger
Copy link
Copy Markdown
Owner

msteiger commented Mar 5, 2026

That's a good idea... Maybe we can combine it with #139
I can hopefully look at both this weekend.

@catobus
Copy link
Copy Markdown
Author

catobus commented Apr 9, 2026

Hi, just checking in on this — no rush, but wanted to make sure it didn't fall off your radar. Happy to address any feedback if needed.

@msteiger
Copy link
Copy Markdown
Owner

Thanks for the reminder - I will look into it as soon as I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants