org.wso2.registry.app
Class AtomRegistry

java.lang.Object
  extended by org.apache.abdera.protocol.server.impl.ProviderSupport
      extended by org.apache.abdera.protocol.server.impl.AbstractProvider
          extended by org.wso2.registry.app.AtomRegistry
All Implemented Interfaces:
org.apache.abdera.protocol.server.Provider, APPConstants

public class AtomRegistry
extends org.apache.abdera.protocol.server.impl.AbstractProvider
implements org.apache.abdera.protocol.server.Provider, APPConstants


Field Summary
static java.lang.String SECURE_REGISTRY
           
 
Fields inherited from class org.apache.abdera.protocol.server.impl.AbstractProvider
defaultpagesize
 
Fields inherited from interface org.wso2.registry.app.APPConstants
COMMENTID_QNAME, COMMENTS_QNAME, IMPORT_MEDIATYPE, NAMESPACE, PARAMETER_AVERAGE_RATINGS, PARAMETER_COMMENTS, PARAMETER_LOGS, PARAMETER_QUERY, PARAMETER_RATINGS, PARAMETER_RENAME, PARAMETER_RESOURCE_EXIST, PARAMETER_RESTORE, PARAMETER_TAG_PATHS, PARAMETER_TAGS, PARAMETER_TAGS_REMOVED, PARAMETER_VERSION, QNAME_AVGRATING
 
Constructor Summary
AtomRegistry()
           
 
Method Summary
 org.apache.abdera.protocol.server.ResponseContext createEntry(org.apache.abdera.protocol.server.RequestContext request)
          To post an entry we can use this method , however when it come to jdbcregistry posting means adding new resources , adding comments , adding tags , rating etc..
 org.apache.abdera.protocol.server.ResponseContext deleteEntry(org.apache.abdera.protocol.server.RequestContext request)
           
 org.apache.abdera.protocol.server.ResponseContext getEntry(org.apache.abdera.protocol.server.RequestContext request)
           
 org.apache.abdera.protocol.server.ResponseContext getFeed(org.apache.abdera.protocol.server.RequestContext request)
          This method used to get an atom feed representing the jdbcregistry and the depending on the URL the format of the feed will differ
 org.apache.abdera.protocol.server.ResponseContext getService(org.apache.abdera.protocol.server.RequestContext request)
           
 org.apache.abdera.protocol.server.ResponseContext updateEntry(org.apache.abdera.protocol.server.RequestContext request)
          This method is used for PUT operation and depending on the URL operation will be identify and perform that, not only that depending on the operation the structure of entry may vary
 
Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractProvider
combine, deleteMedia, entryPost, getAllowedMethods, getCategories, getMedia, mediaPost, request, updateMedia
 
Methods inherited from class org.apache.abdera.protocol.server.impl.ProviderSupport
badrequest, beforeOrEqual, checkEntryAddAdditionalNamespaces, checkEntryNamespaces, conflict, createErrorDocument, createErrorResponse, createErrorResponse, forbidden, getDefaultpagesize, getDefaultPageSize, getOffset, getPageSize, isValidEntry, locked, notallowed, notmodified, notsupported, preconditionfailed, resolveBase, returnBase, sanitizeSlug, servererror, setDefaultpagesize, unauthorized, unavailable, unknown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.abdera.protocol.server.Provider
deleteMedia, entryPost, getAllowedMethods, getCategories, getMedia, mediaPost, request, updateMedia
 

Field Detail

SECURE_REGISTRY

public static final java.lang.String SECURE_REGISTRY
See Also:
Constant Field Values
Constructor Detail

AtomRegistry

public AtomRegistry()
Method Detail

createEntry

public org.apache.abdera.protocol.server.ResponseContext createEntry(org.apache.abdera.protocol.server.RequestContext request)
To post an entry we can use this method , however when it come to jdbcregistry posting means adding new resources , adding comments , adding tags , rating etc..

Depending on the type of the operation URl will change , and the URL will contain operation as "/resource;operation" ,the entry value differ one to another

Specified by:
createEntry in interface org.apache.abdera.protocol.server.Provider
Parameters:
request - : RequestContext
Returns:
EmptyResponseContext(200) if everything has gone well else EmptyResponseContext(500)

deleteEntry

public org.apache.abdera.protocol.server.ResponseContext deleteEntry(org.apache.abdera.protocol.server.RequestContext request)
Specified by:
deleteEntry in interface org.apache.abdera.protocol.server.Provider

updateEntry

public org.apache.abdera.protocol.server.ResponseContext updateEntry(org.apache.abdera.protocol.server.RequestContext request)
This method is used for PUT operation and depending on the URL operation will be identify and perform that, not only that depending on the operation the structure of entry may vary

Specified by:
updateEntry in interface org.apache.abdera.protocol.server.Provider
Parameters:
request - : RequestContext
Returns:
: EmptyResponseContext(200) if everything has gone well else EmptyResponseContext(500)

getFeed

public org.apache.abdera.protocol.server.ResponseContext getFeed(org.apache.abdera.protocol.server.RequestContext request)
This method used to get an atom feed representing the jdbcregistry and the depending on the URL the format of the feed will differ

Specified by:
getFeed in interface org.apache.abdera.protocol.server.Provider
Parameters:
request - : RequestContext
Returns:
: Will contains the response feed.

getEntry

public org.apache.abdera.protocol.server.ResponseContext getEntry(org.apache.abdera.protocol.server.RequestContext request)
Specified by:
getEntry in interface org.apache.abdera.protocol.server.Provider

getService

public org.apache.abdera.protocol.server.ResponseContext getService(org.apache.abdera.protocol.server.RequestContext request)
Specified by:
getService in interface org.apache.abdera.protocol.server.Provider


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