Register Request Handlers
Any request handlers you create must be registered in the
RequestHandlerFactory
in order to work. The built-in
request handlers are registered as follows:
requestHandler.0001=./ECEContentRequestHandler requestHandler.0002=./ECEBlockCodeRequestHandler requestHandler.0003=./TwitterRequestHandler requestHandler.0004=./YoutubeRequestHandler requestHandler.0005=./InstagramRequestHandler requestHandler.0006=./VineRequestHandler requestHandler.0007=./VimeoRequestHandler
The numbers in the property names determine the order in which provider host names are matched.
To add your own request handlers:
-
Create a
RequestHandlerFactory.properties
file in your webapp configuration layer as follows:$
touch /etc/escenic/engine/common/com/escenic/livecenter/service/proxy/RequestHandlerFactory
.properties -
Open the file for editing and add properties to register your request handlers, using different number suffixes from the built-in request handlers. For example:
requestHandler.0008=./FlickrRequestHandler requestHandler.0009=./CNNRequestHandler
-
If you actually want to override one of the supplied request handlers with your own, you can do so by simply redefining the appropriate property. You can, for example, replace the supplied
TwitterRequestHandler
with your own custom implementation by entering something like:requestHandler.0003=./CustomTwitterRequestHandler