fr.paris.lutece.plugins.directory.modules.rest.handlers
Interface UriHandler

All Known Implementing Classes:
AbstractUriHandler, DeleteRecordHandler, InsertRecordHandler, JsonRecordHandler, JsonRecordsListHandler, UpdateRecordHandler, XmlRecordHandler, XmlRecordsListHandler

public interface UriHandler

URI Handler Interface


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
 

Method Detail

isHandledUri

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

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
mapParameters - The request parameters
Returns:
The response


Copyright © 2011 Mairie de Paris. All Rights Reserved.