org.wso2.registry.jdbc.mediatypes.builtin
Class SynapseRepositoryMediaTypeHandler
java.lang.Object
org.wso2.registry.jdbc.mediatypes.MediaTypeHandler
org.wso2.registry.jdbc.mediatypes.builtin.SynapseRepositoryMediaTypeHandler
public class SynapseRepositoryMediaTypeHandler
- extends MediaTypeHandler
Method Summary |
boolean |
delete(java.lang.String path)
Processes the DELETE action of the media type. |
Resource |
get(java.lang.String path,
Resource resource)
Processes the GET action of the media type. |
boolean |
put(java.lang.String path,
Resource resource)
Processes the PUT action of the media type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SynapseRepositoryMediaTypeHandler
public SynapseRepositoryMediaTypeHandler(ConnectionFactory connectionFactory,
org.wso2.usermanager.Realm realm,
MediaTypeManager mediaTypeManager)
get
public Resource get(java.lang.String path,
Resource resource)
throws RegistryException
- Description copied from class:
MediaTypeHandler
- Processes the GET action of the media type.
- Specified by:
get
in class MediaTypeHandler
- Parameters:
path
- Path of the resourceresource
- Raw artifact at the given path, which is retrieved directly from the
database. This can be used by media type handlers, which need to alter contents of the
raw artifact, etc.
- Returns:
- Resource instance if the media type handler processes the GET action. If resource is
returned it should perform all tasks to fulfill the GET request. Returns null if the
media type handler does not process the GET action. If null is returned, get(...) method of
the DefaultMediaTypeHandler will be invoked.
- Throws:
RegistryException
put
public boolean put(java.lang.String path,
Resource resource)
throws RegistryException
- Description copied from class:
MediaTypeHandler
- Processes the PUT action of the media type.
- Specified by:
put
in class MediaTypeHandler
- Parameters:
path
- to put the resource.resource
- to put.
- Returns:
- true if the media type handler processes the PUT action. If true is returned it
should perform all tasks to fulfill the PUT request. Returns false if the media type handler
does not process the PUT action. If false is returned, put(...) method of the
DefaultMediaTypeHandler will be invoked.
- Throws:
RegistryException
delete
public boolean delete(java.lang.String path)
throws RegistryException
- Description copied from class:
MediaTypeHandler
- Processes the DELETE action of the media type.
- Specified by:
delete
in class MediaTypeHandler
- Parameters:
path
- path of the resource to be deleted.
- Returns:
- true if the media type handler processes the DELETE action. If true is returned it
should perform all tasks to fulfill the DELETE request. Returns false if the media type handler
does not process the DELETE action. If false is returned, delete(...) method of the
DefaultMediaTypeHandler will be invoked.
- Throws:
RegistryException
Copyright © 2007 Apache Web Services Project. All Rights Reserved.