|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.registry.jdbc.mediatypes.MediaTypeHandler
org.wso2.registry.jdbc.mediatypes.builtin.XSDMediaTypeHandler
public class XSDMediaTypeHandler
Field Summary |
---|
Fields inherited from class org.wso2.registry.jdbc.mediatypes.MediaTypeHandler |
---|
authorizationUtil, dataSource, mediaTypeManager, realm, resourceDAO |
Constructor Summary | |
---|---|
XSDMediaTypeHandler(javax.sql.DataSource dataSource,
org.wso2.usermanager.Realm realm,
MediaTypeManager mediaTypeManager)
|
Method Summary | |
---|---|
boolean |
delete(java.lang.String path)
Processes the DELETE action of the media type. |
Resource |
get(java.lang.String path,
Resource rawArtifact)
Processes the GET action of the media type. |
boolean |
importChild(java.lang.String childPath,
java.lang.String sourceURL)
Invokes when a child resource is imported. |
boolean |
importResource(java.lang.String path,
java.lang.String sourceURL,
Resource metadata)
Creates a resource in the given path by fetching the resource content from the given URL. |
boolean |
put(java.lang.String path,
Resource resource)
Processes the PUT action of the media type. |
boolean |
putChild(java.lang.String childPath,
Resource resource)
Invokes when a child resource is added. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSDMediaTypeHandler(javax.sql.DataSource dataSource, org.wso2.usermanager.Realm realm, MediaTypeManager mediaTypeManager)
Method Detail |
---|
public Resource get(java.lang.String path, Resource rawArtifact) throws RegistryException
MediaTypeHandler
get
in class MediaTypeHandler
path
- Path of the resourcerawArtifact
- 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.
RegistryException
public boolean put(java.lang.String path, Resource resource) throws RegistryException
MediaTypeHandler
put
in class MediaTypeHandler
path
- to put the resource.resource
- to put.
RegistryException
public boolean importResource(java.lang.String path, java.lang.String sourceURL, Resource metadata) throws RegistryException
MediaTypeHandler
importResource
in class MediaTypeHandler
path
- Path to add the new resource.sourceURL
- URL to fetch the resource content
RegistryException
public boolean delete(java.lang.String path) throws RegistryException
MediaTypeHandler
delete
in class MediaTypeHandler
path
- path of the resource to be deleted.
RegistryException
public boolean putChild(java.lang.String childPath, Resource resource) throws RegistryException
MediaTypeHandler
putChild
in class MediaTypeHandler
childPath
- Path of the child resourceresource
- Child resource
RegistryException
public boolean importChild(java.lang.String childPath, java.lang.String sourceURL) throws RegistryException
MediaTypeHandler
importChild
in class MediaTypeHandler
childPath
- Path of the child resourcesourceURL
- URL to import child resource content
RegistryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |