org.wso2.registry.jdbc.handlers.filters
Class Filter

java.lang.Object
  extended by org.wso2.registry.jdbc.handlers.filters.Filter
Direct Known Subclasses:
MediaTypeMatcher, URLMatcher

public abstract class Filter
extends java.lang.Object

Base class of all filter implementations. All handlers have to be registered in the jdbc registry with a filter implementation. Filter implementations determine the conditions to invoke the associating handler.


Field Summary
static java.lang.String DELETE
           
static java.lang.String GET
          Supported method names
static java.lang.String IMPORT
           
static java.lang.String IMPORT_CHILD
           
static java.lang.String PUT
           
static java.lang.String PUT_CHILD
           
 
Constructor Summary
Filter()
           
 
Method Summary
abstract  boolean handleDelete(RequestContext requestContext)
          Determines whether the associating handler should handle the delete action.
abstract  boolean handleGet(RequestContext requestContext)
          Determines whether the associating handler should handle the get action.
abstract  boolean handleImportChild(RequestContext requestContext)
          Determines whether the associating handler should handle the importChild action.
abstract  boolean handleImportResource(RequestContext requestContext)
          Determines whether the associating handler should handle the import resource action.
abstract  boolean handlePut(RequestContext requestContext)
          Determines whether the associating handler should handle the put action.
abstract  boolean handlePutChild(RequestContext requestContext)
          Determines whether the associating handler should handle the putChild action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GET

public static final java.lang.String GET
Supported method names

See Also:
Constant Field Values

PUT

public static final java.lang.String PUT
See Also:
Constant Field Values

DELETE

public static final java.lang.String DELETE
See Also:
Constant Field Values

IMPORT

public static final java.lang.String IMPORT
See Also:
Constant Field Values

PUT_CHILD

public static final java.lang.String PUT_CHILD
See Also:
Constant Field Values

IMPORT_CHILD

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

Filter

public Filter()
Method Detail

handleGet

public abstract boolean handleGet(RequestContext requestContext)
                           throws RegistryException
Determines whether the associating handler should handle the get action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter impls should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handlePut

public abstract boolean handlePut(RequestContext requestContext)
                           throws RegistryException
Determines whether the associating handler should handle the put action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter impls should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleImportResource

public abstract boolean handleImportResource(RequestContext requestContext)
                                      throws RegistryException
Determines whether the associating handler should handle the import resource action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter impls should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleDelete

public abstract boolean handleDelete(RequestContext requestContext)
                              throws RegistryException
Determines whether the associating handler should handle the delete action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter impls should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handlePutChild

public abstract boolean handlePutChild(RequestContext requestContext)
                                throws RegistryException
Determines whether the associating handler should handle the putChild action. putChild action occurs when it is attempted to put a resource as a child of the resource referred by requestContext.parentPath or to the resource requestContext.parentCollection.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter impls should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleImportChild

public abstract boolean handleImportChild(RequestContext requestContext)
                                   throws RegistryException
Determines whether the associating handler should handle the importChild action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter impls should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.


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