Rss-Bridge/lib
Roliga 49da67cb33 core: Automatically select a bridge based on a URL (#928)
* core: Add bridge parameter auto detection

This adds a new 'detect' action which accepts a URL from which an
appropriate bridge is selected and relevant parameters are extracted.
The user is then automatically redirected to the selected bridge.

For example to get a feed from: https://twitter.com/search?q=%23rss-bridge
we could send a request to:
'/?action=detect&format=Atom&url=twitter.com/search%3Fq%3D%2523rss-bridge'
which would redirect to:
'/?action=display&q=%23rss-bridge&bridge=Twitter&format=Atom'.

This auto detection happens on a per-bridge basis, so a new function
'detectParameters' is added to BridgeInterface which bridges may implement.
It takes a URL for an argument and returns a list of parameters that were
extracted, or null if the URL isn't relevant for the bridge.

* [TwitterBridge] Add parameter auto detection

* [BridgeAbstract] Add generic parameter detection

This adds generic "paramater detection" for bridges that don't have any
parameters defined. If the queried URL matches the URI defined in the
bridge (ignoring https://, www. and trailing /) an emtpy list of parameters is
returned.
2018-11-26 18:05:40 +01:00
..
Authentication.php [Authentication] Throw exception creating objects from this class 2018-11-18 15:20:43 +01:00
Bridge.php bridge: Rename listBridge to getBridgeNames 2018-11-15 19:43:23 +01:00
BridgeAbstract.php core: Automatically select a bridge based on a URL (#928) 2018-11-26 18:05:40 +01:00
BridgeCard.php [BridgeCard] Use self:: instead of BridgeCard:: 2018-11-18 16:59:13 +01:00
BridgeInterface.php core: Automatically select a bridge based on a URL (#928) 2018-11-26 18:05:40 +01:00
BridgeList.php lib: Add API documentation 2018-11-18 09:41:14 +01:00
Cache.php [Cache] Check if class is instantiable 2018-11-15 19:36:01 +01:00
CacheInterface.php lib: Add API documentation 2018-11-18 09:41:14 +01:00
Configuration.php [Configuration] Change scope of $config to private 2018-11-18 15:58:34 +01:00
contents.php [contents] Add server side caching for all requests (If-Modified-Since) (#889) 2018-11-19 17:53:08 +01:00
Debug.php [Debug] Fix debug mode reports indexing error 2018-11-16 20:19:52 +01:00
error.php exception: Remove HttpException class 2018-11-18 16:53:21 +01:00
Exceptions.php exception: Remove HttpException class 2018-11-18 16:53:21 +01:00
FeedExpander.php [FeedExpander] Add constants for feed types 2018-11-18 16:18:40 +01:00
Format.php format: Refactor searchInformation 2018-11-15 20:16:21 +01:00
FormatAbstract.php [FormatAbstract] Check content type before sending header 2018-11-18 16:30:34 +01:00
FormatInterface.php lib: Add API documentation 2018-11-18 09:41:14 +01:00
html.php [html] Remove todo as it is already implemented 2018-11-18 17:52:45 +01:00
ParameterValidator.php lib: Add API documentation 2018-11-18 09:41:14 +01:00
rssbridge.php [rssbridge] Improve documentation 2018-11-15 20:52:17 +01:00