IHTTPLinkSubsystemObjectFactory is used to implement custom handling of http links through scheme system. For creating a plugin for handling of http links, first define a scheme. Then do following steps:
- Include this interface on the http link resource connection provider boss that is registered with the service registry as a kHTTPLinkResourceConnectionProvider. Its GetSchemes should return list of schemes supported by plugin. It will be called when HTTPLinkManager is initialized and schemes will be registered. IHTTPLinkManager will be using query functions defined here for the uri which matches with the schemes provided in GetSchemes.
- Implement IHTTPLinkResourceServerAPIWrapper(for details see IHTTPLinkResourceServerAPIWrapper.h). It is mandatory to implement this interface. It deals with high level API interaction with server.
- Implement IHTTPLinkResourceConnection(for details see IHTTPLinkResourceConnection.h). It is mandatory to implement this interface. It deals with creating connection with server. It handles responsibilities like login credentials and passing session tokens.
Above mentioned interfaces are mandatory, but there are other interfaces also that can be overriden to extend the functionalities:
- IHTTPLinkResourceStateBatchUpdater - If web-api supports batch state updates, this interface can be implemented to alter default implementation
- IHTTPLinkResourceServerCache - This should be implemented if want to handle cache by yourself.
- IHTTPAssetDownloadManager - Should be implemented if different handling http asset downloads.
- See Also
- IHTTPLinkResourceServerAPIWrapper
- IHTTPLinkResourceConnection
- IK2ServiceProvider
- IHTTPLinkResourceServerCache
- IHTTPLinkResourceStateBatchUpdater