Regarding Media Types
What is the Importance of Media Types when adding a collection. I saw some configuration like given below in the WEB-INF/registry.xml file
<mediaTypeHandler>
<mediaType>application/vnd.apache.axis2</mediaType> <handler>org.wso2.registry.jdbc.mediatypes.builtin.Axis2RepositoryMediaTypeHandler</handler>
</mediaTypeHandler>
And I couldn't find the "org.wso2.registry.jdbc.mediatypes.builtin.Axis2RepositoryMediaTypeHandler" class in the source code.
- Login or register to post comments
- Printer friendly version
- 346 reads











Media types of collections
Media types of collections can be used to control the behavior of certain collection types. In this example, registry has defined a media type to identify Axis2 repository. Handler of that media type knows what resources and collections should go inside that collection. Thus, it monitors the resources put in to the Axis2 repository and make sure that only the allowed resources are added.
This is only a one example use case of collection media types. We are planning to add more features around collection media types as we identify suitable collection types.
Axis2RepositoryMediaTypeHandler is moved to the extensions module along with some other handlers. Now its package is org.wso2.registry.handlers.