fr.paris.lutece.plugins.directory.modules.rest.handlers
Class AbstractUriHandler
java.lang.Object
fr.paris.lutece.plugins.directory.modules.rest.handlers.AbstractUriHandler
- All Implemented Interfaces:
- UriHandler
- Direct Known Subclasses:
- InsertRecordHandler, JsonRecordHandler, JsonRecordsListHandler, XmlRecordHandler, XmlRecordsListHandler
public abstract class AbstractUriHandler
- extends java.lang.Object
- implements UriHandler
Abstract Uri Handler
|
Method Summary |
protected int |
getDirectoryId(java.lang.String strURI)
|
protected java.lang.String |
getResourceId(java.lang.String strURI,
java.lang.String strPattern)
|
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 |
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
URI_BASE_PATH_PATTERN
public static final java.lang.String URI_BASE_PATH_PATTERN
- See Also:
- Constant Field Values
AbstractUriHandler
public AbstractUriHandler()
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,
java.lang.String strPattern)
getDirectoryId
protected int getDirectoryId(java.lang.String strURI)
Copyright © 2011 Mairie de Paris. All Rights Reserved.