public class ResourceStatusManager
extends java.lang.Object
${services_rest_ResourceStatusManager_Title}
${services_rest_ResourceStatusManager_Description}
Constructor and Description |
---|
ResourceStatusManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
containKey(java.lang.String resourceUri)
According to the resource identification, in the resource state manager, whether or not the resource status corresponding to the specified resource identifier is saved.
|
boolean |
containResourceStatus(ResourceStatus resourceStatus)
Determines whether the resource state is saved in the resource manager.
|
boolean |
deleteResourceStatus(java.lang.String resourceUrl)
Deletes the resource status corresponding to the resource ID specified in the status manager.
|
java.lang.String[] |
getChildResourceByUrl(java.lang.String parentResourceUrl)
Gets the resource ID for all child resources for the specified resource.
|
java.util.Date |
getResourceLastModifier(java.lang.String resourceUrl)
Gets the last modified time for the specified resource state.
|
ResourceStatus |
getResourceStatus(java.lang.String resourceUrl)
According to the resource identifier, obtains the status of the map resources, map, layers, layers and other mapping module resources.
|
boolean |
putResourceStatus(java.lang.String resourceUrl, java.lang.Object statusObject)
${services_rest_ResourceStatusManager_method_putResourceStatus_Title}
|
boolean |
setResourceStatusModifier(java.lang.String resourceUrl, java.util.Date lastModifier)
Sets the last modified time for the specified resource state.
|
public ResourceStatus getResourceStatus(java.lang.String resourceUrl)
According to the resource identifier, obtains the status of the map resources, map, layers, layers and other mapping module resources.
For example, you can get the status of a map resource named World by getResourceStatus ("/ maps / World") .
resourceUrl
- resource identifier, corresponding to the & lt; urlTemplate / & gt; tag content in the resource configuration.public boolean putResourceStatus(java.lang.String resourceUrl, java.lang.Object statusObject)
${services_rest_ResourceStatusManager_method_putResourceStatus_Title}
${services_rest_ResourceStatusManager_method_putResourceStatus_Description}
resourceUrl
- The URI identifier of the resource to save / update state.statusObject
- ${services_rest_ResourceStatusManager_method_putResourceStatus_param_statusObject}public boolean deleteResourceStatus(java.lang.String resourceUrl)
Deletes the resource status corresponding to the resource ID specified in the status manager.
resourceUrl
- The identifier of the resource to be deleted, corresponding to the contents of the & lt; urlTemplate / & gt; tag in the resource configuration.public java.util.Date getResourceLastModifier(java.lang.String resourceUrl)
Gets the last modified time for the specified resource state.
${services_rest_ResourceStatusManager_method_getResourceLastModifier_Description}
resourceUrl
- To get the last modified resource ID.public boolean setResourceStatusModifier(java.lang.String resourceUrl, java.util.Date lastModifier)
Sets the last modified time for the specified resource state.
${services_rest_ResourceStatusManager_method_setResourceStatusModifier_Description}
resourceUrl
- To set the last modified resource ID.lastModifier
- ${services_rest_ResourceStatusManager_method_setResourceStatusModifier_param_lastModifier}public boolean containResourceStatus(ResourceStatus resourceStatus)
Determines whether the resource state is saved in the resource manager.
resourceStatus
- Specifies the resource state.public boolean containKey(java.lang.String resourceUri)
According to the resource identification, in the resource state manager, whether or not the resource status corresponding to the specified resource identifier is saved.
For example, "/ maps" is the resource ID of the maps resource, false if the resource state manager does not save the resource state corresponding to "/ maps".
resourceUri
- resource identifier.public java.lang.String[] getChildResourceByUrl(java.lang.String parentResourceUrl)
Gets the resource ID for all child resources for the specified resource.
The resource identifier corresponds to the content of the & lt; urlTemplate / & gt; tag in the resource configuration, for example "/ maps" for the resource ID of the maps resource.
parentResourceUrl
- Specifies the resource ID of the parent resource.