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

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.modules.rest.handlers.AbstractUriHandler
All Implemented Interfaces:
UriHandler
Direct Known Subclasses:
DeleteRecordHandler, InsertRecordHandler, JsonRecordHandler, JsonRecordsListHandler, UpdateRecordHandler, XmlRecordHandler, XmlRecordsListHandler

public abstract class AbstractUriHandler
extends java.lang.Object
implements UriHandler

Abstract Uri Handler


Field Summary
protected static java.lang.String CONTENT_TYPE_JSON
           
protected static java.lang.String EXTENSION_JSON
           
protected static java.lang.String EXTENSION_XML
           
protected static java.lang.String METHOD_DELETE
           
protected static java.lang.String METHOD_GET
           
protected static java.lang.String METHOD_POST
           
protected static java.lang.String METHOD_PUT
           
static java.lang.String URI_BASE_PATH_PATTERN
           
 
Constructor Summary
AbstractUriHandler()
           
 
Method Summary
protected  int getDirectoryId(java.lang.String strURI)
           
protected  java.lang.String getResourceId(java.lang.String strURI)
           
protected  boolean isUriContentTypeMatch(java.lang.String strValidContentType, java.lang.String strContentType)
           
protected  boolean isUriExtensionMatch(java.lang.String strUri, java.lang.String strValidExtension)
           
static boolean isUriPathGloballyMatch(java.lang.String strUri)
           
protected  boolean isUriPathMatch(java.lang.String strUri, java.lang.String strPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.plugins.directory.modules.rest.handlers.UriHandler
isHandledUri, processUri
 

Field Detail

EXTENSION_XML

protected static final java.lang.String EXTENSION_XML
See Also:
Constant Field Values

EXTENSION_JSON

protected static final java.lang.String EXTENSION_JSON
See Also:
Constant Field Values

CONTENT_TYPE_JSON

protected static final java.lang.String CONTENT_TYPE_JSON
See Also:
Constant Field Values

METHOD_GET

protected static final java.lang.String METHOD_GET
See Also:
Constant Field Values

METHOD_POST

protected static final java.lang.String METHOD_POST
See Also:
Constant Field Values

METHOD_PUT

protected static final java.lang.String METHOD_PUT
See Also:
Constant Field Values

METHOD_DELETE

protected static final java.lang.String METHOD_DELETE
See Also:
Constant Field Values

URI_BASE_PATH_PATTERN

public static final java.lang.String URI_BASE_PATH_PATTERN
See Also:
Constant Field Values
Constructor Detail

AbstractUriHandler

public AbstractUriHandler()
Method Detail

isUriExtensionMatch

protected boolean isUriExtensionMatch(java.lang.String strUri,
                                      java.lang.String strValidExtension)

isUriPathGloballyMatch

public static boolean isUriPathGloballyMatch(java.lang.String strUri)

isUriPathMatch

protected boolean isUriPathMatch(java.lang.String strUri,
                                 java.lang.String strPath)

isUriContentTypeMatch

protected boolean isUriContentTypeMatch(java.lang.String strValidContentType,
                                        java.lang.String strContentType)

getResourceId

protected java.lang.String getResourceId(java.lang.String strURI)

getDirectoryId

protected int getDirectoryId(java.lang.String strURI)


Copyright © 2011 Mairie de Paris. All Rights Reserved.