|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.registry.jdbc.handlers.filters.Filter
org.wso2.registry.jdbc.handlers.filters.MediaTypeMatcher
public class MediaTypeMatcher
Field Summary |
---|
Fields inherited from class org.wso2.registry.jdbc.handlers.filters.Filter |
---|
DELETE, GET, IMPORT, IMPORT_CHILD, PUT, PUT_CHILD |
Constructor Summary | |
---|---|
MediaTypeMatcher()
|
|
MediaTypeMatcher(java.lang.String mediaType)
|
Method Summary | |
---|---|
java.lang.String |
getMediaType()
|
boolean |
handleDelete(RequestContext requestContext)
Determines whether the associating handler should handle the delete action. |
boolean |
handleGet(RequestContext requestContext)
Matches if the media type of the current resource is equal to the handler's media type. |
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)
Matches if the media type of the parent collection of the current resource is equal to the handler's media type. |
void |
setMediaType(java.lang.String mediaType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MediaTypeMatcher()
public MediaTypeMatcher(java.lang.String mediaType)
Method Detail |
---|
public boolean handleGet(RequestContext requestContext) throws RegistryException
handleGet
in class Filter
requestContext
- RequestContext for the current request
RegistryException
public boolean handlePut(RequestContext requestContext) throws RegistryException
Filter
handlePut
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter impls 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 impls 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 impls 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
handlePutChild
in class Filter
requestContext
- RequestContext for the current request
RegistryException
public boolean handleImportChild(RequestContext requestContext) throws RegistryException
Filter
handleImportChild
in class Filter
requestContext
- Information about the current requestContext.
RegistryException
- Filter impls should deal with the specific exceptions and throw
a RegistryException if the exception has to be propagated to the surface.public java.lang.String getMediaType()
public void setMediaType(java.lang.String mediaType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |