|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.jdbc.handlers.filters.Filter
org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher
public class URLMatcher
This is a built-in Filter implementation to match against the URL (path) of the resources. This can match different URLs for different handler operations. URLs to match for necessary handler operations can be given as regular expressions. If a URL for particular operation is not specified, it will always evaluate to false.
Handler authors can use this Filter in their configurations if the filtering requirement is only to match against URLs of the resources.
Field Summary |
---|
Fields inherited from class org.wso2.carbon.registry.core.jdbc.handlers.filters.Filter |
---|
ADD_ASSOCIATION, ADD_COMMENT, APPLY_TAG, COPY, CREATE_LINK, CREATE_VERSION, DELETE, DUMP, EDIT_COMMENT, EXECUTE_QUERY, GET, GET_ALL_ASSOCIATIONS, GET_ASSOCIATIONS, GET_AVERAGE_RATING, GET_COMMENTS, GET_RATING, GET_REGISTRY_CONTEXT, GET_RESOURCE_PATHS_WITH_TAG, GET_TAGS, GET_VERSIONS, IMPORT, IMPORT_CHILD, invert, INVOKE_ASPECT, MOVE, PUT, PUT_CHILD, RATE_RESOURCE, REMOVE_ASSOCIATION, REMOVE_COMMENT, REMOVE_LINK, REMOVE_TAG, RENAME, RESOURCE_EXISTS, RESTORE, RESTORE_VERSION, SEARCH_CONTENT |
Constructor Summary | |
---|---|
URLMatcher()
|
Method Summary | |
---|---|
boolean |
equals(Object other)
Compares this MediaTypeMatcher to the specified object. |
boolean |
handleAddAssociation(RequestContext requestContext)
Determines whether the associating handler should handle the addAssociation action. |
boolean |
handleAddComment(RequestContext requestContext)
Determines whether the associating handler should handle the addComment action. |
boolean |
handleApplyTag(RequestContext requestContext)
Determines whether the associating handler should handle the applyTag action. |
boolean |
handleCopy(RequestContext requestContext)
Determines whether the associating handler should handle the copy action. |
boolean |
handleCreateLink(RequestContext requestContext)
Determines whether the associating handler should handle the createLink action. |
boolean |
handleCreateVersion(RequestContext requestContext)
Determines whether the associating handler should handle the createVersion action. |
boolean |
handleDelete(RequestContext requestContext)
Determines whether the associating handler should handle the delete action. |
boolean |
handleDump(RequestContext requestContext)
Determines whether the associating handler should handle the dump action. |
boolean |
handleEditComment(RequestContext requestContext)
Determines whether the associating handler should handle the editComment action. |
boolean |
handleExecuteQuery(RequestContext requestContext)
Determines whether the associating handler should handle the executeQuery action. |
boolean |
handleGet(RequestContext requestContext)
Determines whether the associating handler should handle the get action. |
boolean |
handleGetAllAssociations(RequestContext requestContext)
Determines whether the associating handler should handle the getAllAssociations action. |
boolean |
handleGetAssociations(RequestContext requestContext)
Determines whether the associating handler should handle the getAssociations action. |
boolean |
handleGetAverageRating(RequestContext requestContext)
Determines whether the associating handler should handle the getAverageRating action. |
boolean |
handleGetComments(RequestContext requestContext)
Determines whether the associating handler should handle the getComments action. |
boolean |
handleGetRating(RequestContext requestContext)
Determines whether the associating handler should handle the getRating action. |
boolean |
handleGetRegistryContext(RequestContext requestContext)
Determines whether the associating handler should handle the getRegistryContext action. |
boolean |
handleGetTags(RequestContext requestContext)
Determines whether the associating handler should handle the getTags action. |
boolean |
handleGetVersions(RequestContext requestContext)
Determines whether the associating handler should handle the getVersions 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 |
handleInvokeAspect(RequestContext requestContext)
Determines whether the associating handler should handle the invokeAspect action. |
boolean |
handleMove(RequestContext requestContext)
Determines whether the associating handler should handle the move 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. |
boolean |
handleRateResource(RequestContext requestContext)
Determines whether the associating handler should handle the rateResource action. |
boolean |
handleRemoveAssociation(RequestContext requestContext)
Determines whether the associating handler should handle the removeAssociation action. |
boolean |
handleRemoveComment(RequestContext requestContext)
Determines whether the associating handler should handle the removeComment action. |
boolean |
handleRemoveLink(RequestContext requestContext)
Determines whether the associating handler should handle the removeLink action. |
boolean |
handleRemoveTag(RequestContext requestContext)
Determines whether the associating handler should handle the removeTag action. |
boolean |
handleRename(RequestContext requestContext)
Determines whether the associating handler should handle the rename action. |
boolean |
handleResourceExists(RequestContext requestContext)
Determines whether the associating handler should handle the resourceExists action. |
boolean |
handleRestore(RequestContext requestContext)
Determines whether the associating handler should handle the restore action. |
boolean |
handleRestoreVersion(RequestContext requestContext)
Determines whether the associating handler should handle the restoreVersion action. |
int |
hashCode()
This overrides the default hash code implementation for filter objects, to make sure that each filter of the same type will have identical hash codes unless otherwise it has its own extension. |
void |
setAddAssociationPattern(String addAssociationPattern)
Method to set addAssociation Pattern |
void |
setAddCommentPattern(String addCommentPattern)
Method to set addComment Pattern |
void |
setApplyTagPattern(String applyTagPattern)
Method to set applyTag Pattern |
void |
setCopyPattern(String copyPattern)
Method to set copy Pattern |
void |
setCreateLinkPattern(String createLinkPattern)
Method to set createLink Pattern |
void |
setCreateVersionPattern(String createVersionPattern)
Method to set createVersion Pattern |
void |
setDeletePattern(String deletePattern)
Method to set delete Pattern |
void |
setDumpPattern(String dumpPattern)
Method to set dump Pattern |
void |
setEditCommentPattern(String editCommentPattern)
Method to set editComment Pattern |
void |
setExecuteQueryPattern(String executeQuery)
Method to set get Pattern |
void |
setGetAllAssociationsPattern(String getAllAssociationsPattern)
Method to set getAllAssociations Pattern |
void |
setGetAssociationsPattern(String getAssociationsPattern)
Method to set getAssociations Pattern |
void |
setGetAverageRatingPattern(String getAverageRatingPattern)
Method to set getAverageRating Pattern |
void |
setGetCommentsPattern(String getCommentsPattern)
Method to set getComments Pattern |
void |
setGetPattern(String getPattern)
Method to set get Pattern |
void |
setGetRatingPattern(String getRatingPattern)
Method to set getRating Pattern |
void |
setGetRegistryContextPattern(String getRegistryContextPattern)
Method to set getRegistryContext Pattern |
void |
setGetTagsPattern(String getTagsPattern)
Method to set getTags Pattern |
void |
setGetVersionsPattern(String getVersionsPattern)
Method to set getVersions Pattern |
void |
setImportChildPattern(String importChildPattern)
Method to set importChild Pattern |
void |
setImportPattern(String importPattern)
Method to set import Pattern |
void |
setInvokeAspectPattern(String invokeAspectPattern)
Method to set invokeAspect Pattern |
void |
setMovePattern(String movePattern)
Method to set move Pattern |
void |
setPattern(String pattern)
Method to set the given pattern for all registry operations. |
void |
setPutChildPattern(String putChildPattern)
Method to set putChild Pattern |
void |
setPutPattern(String putPattern)
Method to set put Pattern |
void |
setRateResourcePattern(String rateResourcePattern)
Method to set rateResource Pattern |
void |
setRemoveAssociationPattern(String removeAssociationPattern)
Method to set removeAssociation Pattern |
void |
setRemoveCommentPattern(String removeCommentPattern)
Method to set removeComment Pattern |
void |
setRemoveLinkPattern(String removeLinkPattern)
Method to set removeLink Pattern |
void |
setRemoveTagPattern(String removeTagPattern)
Method to set removeTag Pattern |
void |
setRenamePattern(String renamePattern)
Method to set rename Pattern |
void |
setResourceExistsPattern(String resourceExistsPattern)
Method to set resourceExists Pattern |
void |
setRestorePattern(String restorePattern)
Method to set restore Pattern |
void |
setRestoreVersionPattern(String restoreVersionPattern)
Method to set restoreVersion Pattern |
Methods inherited from class org.wso2.carbon.registry.core.jdbc.handlers.filters.Filter |
---|
getInvert, handleGetResourcePathsWithTag, handleSearchContent, setInvert |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLMatcher()
Method Detail |
---|
public int hashCode()
Filter
hashCode
in class Filter
public boolean equals(Object other)
true
if and
only if the argument is not null
and is a MediaTypeMatcher
object that
contains the same values for the fields as this object.
equals
in class Filter
other
- The object to compare the MediaTypeMatcher
against
true
if the given object represents a MediaTypeMatcher
equivalent to
this instance, false
otherwise.public boolean handleGet(RequestContext requestContext) throws RegistryException
Filter
handleGet
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleExecuteQuery(RequestContext requestContext) throws RegistryException
Filter
handleExecuteQuery
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handlePut(RequestContext requestContext) throws RegistryException
Filter
handlePut
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleImportResource(RequestContext requestContext) throws RegistryException
Filter
handleImportResource
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleDelete(RequestContext requestContext) throws RegistryException
Filter
handleDelete
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handlePutChild(RequestContext requestContext) throws RegistryException
Filter
handlePutChild
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleImportChild(RequestContext requestContext) throws RegistryException
Filter
handleImportChild
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleInvokeAspect(RequestContext requestContext) throws RegistryException
Filter
handleInvokeAspect
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleCopy(RequestContext requestContext) throws RegistryException
Filter
handleCopy
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleMove(RequestContext requestContext) throws RegistryException
Filter
handleMove
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRename(RequestContext requestContext) throws RegistryException
Filter
handleRename
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleCreateLink(RequestContext requestContext) throws RegistryException
Filter
handleCreateLink
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRemoveLink(RequestContext requestContext) throws RegistryException
Filter
handleRemoveLink
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleResourceExists(RequestContext requestContext) throws RegistryException
Filter
handleResourceExists
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetRegistryContext(RequestContext requestContext)
Filter
handleGetRegistryContext
in class Filter
requestContext
- Information about the current requestContext.
public boolean handleAddAssociation(RequestContext requestContext) throws RegistryException
Filter
handleAddAssociation
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRemoveAssociation(RequestContext requestContext) throws RegistryException
Filter
handleRemoveAssociation
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetAllAssociations(RequestContext requestContext) throws RegistryException
Filter
handleGetAllAssociations
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetAssociations(RequestContext requestContext) throws RegistryException
Filter
handleGetAssociations
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleApplyTag(RequestContext requestContext) throws RegistryException
Filter
handleApplyTag
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetTags(RequestContext requestContext) throws RegistryException
Filter
handleGetTags
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRemoveTag(RequestContext requestContext) throws RegistryException
Filter
handleRemoveTag
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleAddComment(RequestContext requestContext) throws RegistryException
Filter
handleAddComment
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleEditComment(RequestContext requestContext) throws RegistryException
Filter
handleEditComment
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRemoveComment(RequestContext requestContext) throws RegistryException
Filter
handleRemoveComment
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetComments(RequestContext requestContext) throws RegistryException
Filter
handleGetComments
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRateResource(RequestContext requestContext) throws RegistryException
Filter
handleRateResource
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetAverageRating(RequestContext requestContext) throws RegistryException
Filter
handleGetAverageRating
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetRating(RequestContext requestContext) throws RegistryException
Filter
handleGetRating
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleCreateVersion(RequestContext requestContext) throws RegistryException
Filter
handleCreateVersion
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetVersions(RequestContext requestContext) throws RegistryException
Filter
handleGetVersions
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRestoreVersion(RequestContext requestContext) throws RegistryException
Filter
handleRestoreVersion
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleDump(RequestContext requestContext) throws RegistryException
Filter
handleDump
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRestore(RequestContext requestContext) throws RegistryException
Filter
handleRestore
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public void setGetPattern(String getPattern)
getPattern
- the get Patternpublic void setExecuteQueryPattern(String executeQuery)
executeQuery
- the get Patternpublic void setPutPattern(String putPattern)
putPattern
- the put Patternpublic void setImportPattern(String importPattern)
importPattern
- the import Patternpublic void setDeletePattern(String deletePattern)
deletePattern
- the delete Patternpublic void setPutChildPattern(String putChildPattern)
putChildPattern
- the putChild Patternpublic void setImportChildPattern(String importChildPattern)
importChildPattern
- the importChild Patternpublic void setInvokeAspectPattern(String invokeAspectPattern)
invokeAspectPattern
- the invokeAspect Patternpublic void setMovePattern(String movePattern)
movePattern
- the move Patternpublic void setCopyPattern(String copyPattern)
copyPattern
- the copy Patternpublic void setRenamePattern(String renamePattern)
renamePattern
- the rename Patternpublic void setCreateLinkPattern(String createLinkPattern)
createLinkPattern
- the createLink Patternpublic void setRemoveLinkPattern(String removeLinkPattern)
removeLinkPattern
- the removeLink Patternpublic void setResourceExistsPattern(String resourceExistsPattern)
resourceExistsPattern
- the resourceExists Patternpublic void setGetRegistryContextPattern(String getRegistryContextPattern)
getRegistryContextPattern
- the getRegistryContext Patternpublic void setAddAssociationPattern(String addAssociationPattern)
addAssociationPattern
- the addAssociation Patternpublic void setRemoveAssociationPattern(String removeAssociationPattern)
removeAssociationPattern
- the removeAssociation Patternpublic void setGetAllAssociationsPattern(String getAllAssociationsPattern)
getAllAssociationsPattern
- the getAllAssociations Patternpublic void setGetAssociationsPattern(String getAssociationsPattern)
getAssociationsPattern
- the getAssociations Patternpublic void setApplyTagPattern(String applyTagPattern)
applyTagPattern
- the applyTag Patternpublic void setGetTagsPattern(String getTagsPattern)
getTagsPattern
- the getTags Patternpublic void setRemoveTagPattern(String removeTagPattern)
removeTagPattern
- the removeTag Patternpublic void setAddCommentPattern(String addCommentPattern)
addCommentPattern
- the addComment Patternpublic void setEditCommentPattern(String editCommentPattern)
editCommentPattern
- the editComment Patternpublic void setRemoveCommentPattern(String removeCommentPattern)
removeCommentPattern
- the removeComment Patternpublic void setGetCommentsPattern(String getCommentsPattern)
getCommentsPattern
- the getComments Patternpublic void setRateResourcePattern(String rateResourcePattern)
rateResourcePattern
- the rateResource Patternpublic void setGetAverageRatingPattern(String getAverageRatingPattern)
getAverageRatingPattern
- the getAverageRating Patternpublic void setGetRatingPattern(String getRatingPattern)
getRatingPattern
- the getRating Patternpublic void setCreateVersionPattern(String createVersionPattern)
createVersionPattern
- the createVersion Patternpublic void setGetVersionsPattern(String getVersionsPattern)
getVersionsPattern
- the getVersions Patternpublic void setRestoreVersionPattern(String restoreVersionPattern)
restoreVersionPattern
- the restoreVersion Patternpublic void setDumpPattern(String dumpPattern)
dumpPattern
- the dump Patternpublic void setRestorePattern(String restorePattern)
restorePattern
- the restore Patternpublic void setPattern(String pattern)
pattern
- the pattern to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |