fr.paris.lutece.plugins.directory.modules.rest.handlers
Class DeleteRecordHandler

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.modules.rest.handlers.AbstractUriHandler
      extended by fr.paris.lutece.plugins.directory.modules.rest.handlers.DeleteRecordHandler
All Implemented Interfaces:
UriHandler

public class DeleteRecordHandler
extends AbstractUriHandler

Delete a Record URI Handler


Field Summary
 
Fields inherited from class fr.paris.lutece.plugins.directory.modules.rest.handlers.AbstractUriHandler
CONTENT_TYPE_JSON, EXTENSION_JSON, EXTENSION_XML, METHOD_DELETE, METHOD_GET, METHOD_POST, METHOD_PUT, URI_BASE_PATH_PATTERN
 
Constructor Summary
DeleteRecordHandler()
           
 
Method Summary
 boolean isHandledUri(java.lang.String strURI, java.lang.String strMethod, java.lang.String strContentType)
          Tells if the current handler should handle the given URI with a given content type
 java.lang.String processUri(java.lang.String strURI, DirectoryRestService service, javax.servlet.ServletRequest request)
          Process the URI to build the response
 
Methods inherited from class fr.paris.lutece.plugins.directory.modules.rest.handlers.AbstractUriHandler
getDirectoryId, getResourceId, isUriContentTypeMatch, isUriExtensionMatch, isUriPathGloballyMatch, isUriPathMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteRecordHandler

public DeleteRecordHandler()
Method Detail

isHandledUri

public boolean isHandledUri(java.lang.String strURI,
                            java.lang.String strMethod,
                            java.lang.String strContentType)
Tells if the current handler should handle the given URI with a given content type

Parameters:
strURI - The URI
strMethod - The method (GET, POST, PUT, DELETE)
strContentType - The request content type
Returns:
True if the handler should handle this URI

processUri

public java.lang.String processUri(java.lang.String strURI,
                                   DirectoryRestService service,
                                   javax.servlet.ServletRequest request)
Process the URI to build the response

Parameters:
strURI - The request URI
service - The directory service
Returns:
The response


Copyright © 2011 Mairie de Paris. All Rights Reserved.