Package com.jalios.jcms.rest
Class RestletApplication
- java.lang.Object
-
- org.restlet.Uniform
-
- org.restlet.Restlet
-
- org.restlet.Application
-
- com.jalios.jcms.rest.RestletApplication
-
- All Implemented Interfaces:
RestConstants
public class RestletApplication extends org.restlet.Application implements RestConstants
This implementation of a Restlet Application is the initialisation of the Restlet engine. In other things, it maps URI to Resources.- Since:
- JCMS-6.0
- Author:
- dissert
-
-
Field Summary
-
Fields inherited from interface com.jalios.jcms.rest.RestConstants
CSRF_HEADER_NAME, HTTP_HEADERS, METHOD_OVERRIDE_HTTP_HEADER, SERVER_REQUEST_HTTP_HEADER_PREFIX, UTS_ADMIN, UTS_ADMIN_CHECK_0, UTS_ADMIN_CHECK_1, UTS_ADMIN_CHECK_2, UTS_ADMIN_INDEX_SNAPSHOT, UTS_ADMIN_MEMBER_PREFERENCES, UTS_ADMIN_MEMBER_PREFERENCES_2, UTS_ADMIN_PLUGINS, UTS_ADMIN_PREFIX, UTS_ADMIN_PROPS_1, UTS_ADMIN_PROPS_2, UTS_ADMIN_PROPS_3, UTS_ADMIN_STATUS, UTS_ALERT, UTS_ALERT_LIST, UTS_ALERT_LIST_LEGACY, UTS_ALERT_WS, UTS_CHANNEL_NAME, UTS_DATA_CHILDREN, UTS_DATA_PARAM, UTS_DATATYPE_ITEM, UTS_DATATYPE_LIST, UTS_DOC, UTS_JSYNC_REQUEST, UTS_LOCK, UTS_MEMBER_ITEM, UTS_MEMBER_PHOTO_UPDATE, UTS_MEMBER_PREFERENCES_2_ITEM, UTS_MEMBER_PREFERENCES_ITEM, UTS_MSG_ENC_OPTIONS_ITEM, UTS_PUSH, UTS_SEARCH, UTS_SEARCH_CAT, UTS_SEARCH_GROUP, UTS_SEARCH_MBR, UTS_SEARCH_WS, UTS_STATE, UTS_UNLOCK, UTS_WHOAMI_ITEM, UTS_WORKFLOWS, UTS_WORKFLOWS_ITEM, UTS_WORKSPACE_ADMIN, UTS_WORKSPACE_ADMIN2
-
-
Constructor Summary
Constructors Constructor Description RestletApplication(org.restlet.Context parentContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attachResources(java.util.Map<java.lang.String,java.lang.Class<? extends JcmsRestResource>> map)
Attaches the given map of JcmsRestResources.org.restlet.Restlet
createRoot()
Creates a root Restlet that will receive all incoming calls.void
detachResources(java.util.Map<java.lang.String,java.lang.Class<? extends JcmsRestResource>> map)
Detaches the given map of JcmsRestResources.static java.util.Map<java.lang.String,java.lang.Class<? extends org.restlet.resource.Resource>>
getStandardResourcesMap()
-
Methods inherited from class org.restlet.Application
getAuthor, getConnectorService, getConverterService, getDecoderService, getDescription, getMetadataService, getName, getOwner, getRoot, getStatusService, getTunnelService, handle, setAuthor, setConnectorService, setConverterService, setDecoderService, setDescription, setMetadataService, setName, setOwner, setStatusService, setTunnelService, start, stop
-
Methods inherited from class org.restlet.Restlet
getContext, getLogger, init, isStarted, isStopped, setContext
-
-
-
-
Method Detail
-
createRoot
public org.restlet.Restlet createRoot()
Creates a root Restlet that will receive all incoming calls.- Specified by:
createRoot
in classorg.restlet.Application
-
attachResources
public void attachResources(java.util.Map<java.lang.String,java.lang.Class<? extends JcmsRestResource>> map)
Attaches the given map of JcmsRestResources.- Parameters:
map
- a map of JcmsRestResources.- Since:
- jcms-10.0.1
-
detachResources
public void detachResources(java.util.Map<java.lang.String,java.lang.Class<? extends JcmsRestResource>> map)
Detaches the given map of JcmsRestResources.- Parameters:
map
- a map of JcmsRestResources.- Since:
- jcms-10.0.1
-
getStandardResourcesMap
public static java.util.Map<java.lang.String,java.lang.Class<? extends org.restlet.resource.Resource>> getStandardResourcesMap()
-
-