org.wso2.registry.jdbc.mediatypes
Class MediaTypeManager

java.lang.Object
  extended by 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(ConnectionFactory connectionFactory, org.wso2.usermanager.Realm realm)
           
 
Method Summary
 void delete(java.lang.String path)
           
 Artifact get(java.lang.String path)
           
 MediaTypeHandler getDefaultMediaTypeHandler()
           
 MediaTypeHandler getMediaTypeHandler(java.lang.String mediaType)
           
 void put(java.lang.String path, Artifact artifact)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaTypeManager

public MediaTypeManager(ConnectionFactory connectionFactory,
                        org.wso2.usermanager.Realm realm)
Method Detail

get

public Artifact get(java.lang.String path)
             throws RegistryException
Throws:
RegistryException

put

public void put(java.lang.String path,
                Artifact artifact)
         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 MediaTypeHandler getDefaultMediaTypeHandler()


Copyright © 2007 Apache Web Services Project. All Rights Reserved.