org.wso2.registry.jdbc.mediatypes
Class MediaTypeManager
java.lang.Object
org.wso2.registry.jdbc.mediatypes.MediaTypeManager
public class MediaTypeManager
- extends java.lang.Object
Handles the actions by delegating them to registered media type handlers. If a mediatype handler
is not registered for a media type, its handling will be delegated to the
DefaultMediaTypeHandler. This class initializes all media type handlers at start up so that they
can be looked up by the media type string.
Constructor Summary |
MediaTypeManager(javax.sql.DataSource dataSource,
org.wso2.usermanager.Realm realm)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MediaTypeManager
public MediaTypeManager(javax.sql.DataSource dataSource,
org.wso2.usermanager.Realm realm)
throws RegistryException
- Throws:
RegistryException
get
public Resource get(java.lang.String path)
throws RegistryException
- Throws:
RegistryException
put
public void put(java.lang.String path,
Resource resource)
throws RegistryException
- Throws:
RegistryException
importResource
public java.lang.String importResource(java.lang.String path,
java.lang.String sourceURL,
Resource metadata)
throws RegistryException
- Throws:
RegistryException
delete
public void delete(java.lang.String path)
throws RegistryException
- Throws:
RegistryException
getMediaTypeHandler
public MediaTypeHandler getMediaTypeHandler(java.lang.String mediaType)
getDefaultMediaTypeHandler
public DefaultMediaTypeHandler getDefaultMediaTypeHandler()
Copyright © 2007 Apache Web Services Project. All Rights Reserved.