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

java.lang.Object
  extended by org.wso2.registry.jdbc.handlers.filters.Filter
      extended by org.wso2.registry.jdbc.handlers.filters.URLMatcher

public class URLMatcher
extends Filter


Field Summary
 
Fields inherited from class org.wso2.registry.jdbc.handlers.filters.Filter
DELETE, GET, IMPORT, IMPORT_CHILD, PUT, PUT_CHILD
 
Constructor Summary
URLMatcher()
           
 
Method Summary
 java.lang.String getDeletePattern()
           
 java.lang.String getGetPattern()
           
 java.lang.String getImportChildPattern()
           
 java.lang.String getImportPattern()
           
 java.lang.String getPutChildPattern()
           
 java.lang.String getPutPattern()
           
 boolean handleDelete(RequestContext requestContext)
          Determines whether the associating handler should handle the delete action.
 boolean handleGet(RequestContext requestContext)
          Determines whether the associating handler should handle the get action.
 boolean handleImportChild(RequestContext requestContext)
          Determines whether the associating handler should handle the importChild action.
 boolean handleImportResource(RequestContext requestContext)
          Determines whether the associating handler should handle the import resource action.
 boolean handlePut(RequestContext requestContext)
          Determines whether the associating handler should handle the put action.
 boolean handlePutChild(RequestContext requestContext)
          Determines whether the associating handler should handle the putChild action.
 void setDeletePattern(java.lang.String deletePattern)
           
 void setGetPattern(java.lang.String getPattern)
           
 void setImportChildPattern(java.lang.String importChildPattern)
           
 void setImportPattern(java.lang.String importPattern)
           
 void setPutChildPattern(java.lang.String putChildPattern)
           
 void setPutPattern(java.lang.String putPattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLMatcher

public URLMatcher()
Method Detail

handleGet

public boolean handleGet(RequestContext requestContext)
                  throws RegistryException
Description copied from class: Filter
Determines whether the associating handler should handle the get action.

Specified by:
handleGet in class Filter
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 boolean handlePut(RequestContext requestContext)
                  throws RegistryException
Description copied from class: Filter
Determines whether the associating handler should handle the put action.

Specified by:
handlePut in class Filter
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 boolean handleImportResource(RequestContext requestContext)
                             throws RegistryException
Description copied from class: Filter
Determines whether the associating handler should handle the import resource action.

Specified by:
handleImportResource in class Filter
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 boolean handleDelete(RequestContext requestContext)
                     throws RegistryException
Description copied from class: Filter
Determines whether the associating handler should handle the delete action.

Specified by:
handleDelete in class Filter
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 boolean handlePutChild(RequestContext requestContext)
                       throws RegistryException
Description copied from class: Filter
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.

Specified by:
handlePutChild in class Filter
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 boolean handleImportChild(RequestContext requestContext)
                          throws RegistryException
Description copied from class: Filter
Determines whether the associating handler should handle the importChild action.

Specified by:
handleImportChild in class Filter
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.

getGetPattern

public java.lang.String getGetPattern()

setGetPattern

public void setGetPattern(java.lang.String getPattern)

getPutPattern

public java.lang.String getPutPattern()

setPutPattern

public void setPutPattern(java.lang.String putPattern)

getImportPattern

public java.lang.String getImportPattern()

setImportPattern

public void setImportPattern(java.lang.String importPattern)

getDeletePattern

public java.lang.String getDeletePattern()

setDeletePattern

public void setDeletePattern(java.lang.String deletePattern)

getPutChildPattern

public java.lang.String getPutChildPattern()

setPutChildPattern

public void setPutChildPattern(java.lang.String putChildPattern)

getImportChildPattern

public java.lang.String getImportChildPattern()

setImportChildPattern

public void setImportChildPattern(java.lang.String importChildPattern)


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