Thanks Danesh, I used the media-type of the Registry Resource to identify the file type.
Regards Awanthika Awanthika Senarath Software Engineer, WSO2 Inc. Mobile: +94717681791 On Thu, Mar 10, 2016 at 10:22 AM, Danesh Kuruppu <[email protected]> wrote: > Hi Awanthika, > > We cannot filter resources in Registry browser. for your case, you need to > use registry search to filter results. Anyway media type is attached in the > registry resource. We can check the mediatype of the resource once we > retrieved the registry resource. > > Thanks > Danesh > > On Thu, Mar 10, 2016 at 9:07 AM, Awanthika Senarath <[email protected]> > wrote: > >> Hi, >> >> Is $subject doable? >> >> We have a requirement in Developer Studio to load registry resources and >> process them separately accorgin to they file type. For an example if it is >> an XML , XSD or a JSON we need to process them in separate methods. >> >> Currently we are retrieving only the resource path from our registry >> browser and then we retrieve it as a stream to temp file created in the >> file system. Hence We are unable to differentiate the file type. >> >> We have a combo box for the user to select the file type we wants to load >> and for users local file system we are filtering the files according to the >> file extension. What we look for is something similar in browsing registry >> resources. >> >> If that is not possible retrieving the file type on selection would also >> be adequate. >> >> Appreciate your input on this. >> >> Regards >> Awanthika Senarath >> Software Engineer, WSO2 Inc. >> Mobile: +94717681791 >> >> >> > > > -- > > Danesh Kuruppu > Software Engineer > WSO2 Inc, > Mobile: +94 (77) 1690552 >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
