cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-8702) Plugins should be able to override shouldInterceptRequest()
Date Wed, 18 Mar 2015 14:46:38 GMT
Andrew Grieve created CB-8702:
---------------------------------

             Summary: Plugins should be able to override shouldInterceptRequest()
                 Key: CB-8702
                 URL: https://issues.apache.org/jira/browse/CB-8702
             Project: Apache Cordova
          Issue Type: Improvement
          Components: Android
            Reporter: Andrew Grieve
            Assignee: Andrew Grieve
            Priority: Minor


Right now plugins can alter the result of {code}shouldInterceptRequest{code} via {code}remapUri{code},
but it would be nicer if they could actually return an {code}InputStream{code}.

Propose new API to be:
1. remapUri() to a "cdvplugin://PluginId" URI
2. add a handleOpenForRead() for dealing with these URIs

This way plugins can return streams not just for  {code}shouldInterceptRequest{code}, but
for all {code}CordovaResourceApi{code} usages.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message