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

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

public class XmlRecordsListHandler
extends AbstractUriHandler

XML Records List Handler


Field Summary
 
Fields inherited from class fr.paris.lutece.plugins.directory.modules.rest.handlers.AbstractUriHandler
CONTENT_TYPE_JSON, EXTENSION_JSON, EXTENSION_XML, METHOD_GET, METHOD_POST, URI_BASE_PATH_PATTERN
 
Constructor Summary
XmlRecordsListHandler()
           
 
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

XmlRecordsListHandler

public XmlRecordsListHandler()
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.