public class RestContext
extends java.lang.Object
${services_rest_RestContext_Title}
${services_rest_RestContext_Description}
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPBEANMAP
REST application component mapping.
|
static java.lang.String |
CORE_BEAN_FILENAME
REST The path to the core component (bean) configuration file (relative to the Jar package for SuperMap iServer).
|
static java.lang.String |
DEFAULT_CONTEXT_FILENAME
The default REST application context configuration file path (default relative to the installation root).
|
static java.lang.String |
DEFAULT_CONTEXT_JARPATH
The default REST application context profile in the Jar package path (as opposed to the SuperMap iServer Jar package).
|
static java.lang.String |
ERROR
Error message "ERROR".
|
static java.lang.String |
EXTENDS_RESOURCE_FILENAME
Extending the path of the resource's configuration file (default relative to the installation root).
|
Constructor and Description |
---|
RestContext()
The Constructor.
|
RestContext(java.io.File file, java.util.List<java.lang.Object> beans)
Constructs a REST application context based on a contextual configuration file for the file system.
|
RestContext(java.util.List<java.lang.Object> beans)
${services_rest_RestContext_constructor_RestContextByDefault_Title}
|
RestContext(ResourceManager resourceManager, RestConfig restConfig, TempObjRepository tempObjRepository, ResourceStatusManager resourceStatusManager)
${services_rest_RestContext_constructor_RestContextByParam_Title}
|
RestContext(java.lang.String appContextFileName)
Constructs an application context based on the given REST application context configuration file.
|
RestContext(java.lang.String appContextFileName, java.util.List<java.lang.Object> beans)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String key)
${services_rest_RestContext_method_get_Title}
|
java.util.Map |
getAttributes()
${services_rest_RestContext_method_getAttributes_Title}
|
InterfaceContext |
getInterfaceContext()
Gets the interface context.
|
ResourceManager |
getResourceManager()
${services_rest_RestContext_method_getResourceManager_Title}
|
ResourceStatusManager |
getResourceStatusManager()
${services_rest_RestContext_method_getResourceStatusManager_Title}
|
RestConfig |
getRestConfig()
${services_rest_RestContext_method_getRestConfig_Title}
|
java.util.List<Decoder> |
getSystemDecoders()
Gets the default parser.
|
java.util.List<Encoder> |
getSystemEncoders()
Gets the default resource expression generator.
|
TempObjRepository |
getTempObjRepository()
Obtains the algorithm parameters and algorithm results in the REST application context.
|
Verifier |
getVerifier()
Returns to the security tester in the REST service.
|
protected void |
loadExpandPlugin(java.util.List components)
Initialize the REST service interface plug-in associated with the corresponding service component.
|
java.lang.Object |
put(java.lang.String key, java.lang.Object obj)
${services_rest_RestContext_method_put_Title}
|
void |
setAttributes(java.util.Map attributes)
${services_rest_RestContext_method_setAttributes_Title}
|
void |
setInterfaceContext(InterfaceContext interfaceContext)
Sets the interface context.
|
void |
setResourceManager(ResourceManager resourceManager)
${services_rest_RestContext_method_setResourceManager_Title}
|
void |
setResourceStatusManager(ResourceStatusManager resourceStatusManager)
${services_rest_RestContext_method_setResourceStatusManager_Title}
|
void |
setRestConfig(RestConfig restConfig)
${services_rest_RestContext_method_setRestConfig_Title}
|
void |
setTempObjRepository(TempObjRepository tempObjRepository)
${services_rest_RestContext_method_setTempObjRepository_Title}
|
void |
setVerifier(Verifier verifier)
Sets to the security tester in the REST service.
|
public static final java.lang.String DEFAULT_CONTEXT_FILENAME
public static final java.lang.String DEFAULT_CONTEXT_JARPATH
public static final java.lang.String CORE_BEAN_FILENAME
public static final java.lang.String EXTENDS_RESOURCE_FILENAME
public static final java.lang.String APPBEANMAP
public static final java.lang.String ERROR
Error message "ERROR".
public RestContext()
The Constructor.
public RestContext(java.util.List<java.lang.Object> beans)
${services_rest_RestContext_constructor_RestContextByDefault_Title}
${services_rest_RestContext_constructor_RestContextByDefault_Description}
public RestContext(java.lang.String appContextFileName)
appContextFileName
- REST Applies the context profile path.public RestContext(java.io.File file, java.util.List<java.lang.Object> beans)
file
- REST Apply the context configuration file (File object).public RestContext(java.lang.String appContextFileName, java.util.List<java.lang.Object> beans)
The Constructor.
appContextFileName
- REST Applies the context profile path.beans
- Context configuration object.public RestContext(ResourceManager resourceManager, RestConfig restConfig, TempObjRepository tempObjRepository, ResourceStatusManager resourceStatusManager)
${services_rest_RestContext_constructor_RestContextByParam_Title}
${services_rest_RestContext_constructor_RestContextByParam_Description}
resourceManager
- ${ services_rest_RestContext_constructor_RestContextByParam_param_resourceManager }restConfig
- ${ services_rest_RestContext_constructor_RestContextByParam_param_restConfig }tempObjRepository
- ${ services_rest_RestContext_constructor_RestContextByParam_param_tempObjRepository }resourceStatusManager
- ${services_rest_RestContext_constructor_RestContextByParam_param_resourceStatusManager }protected void loadExpandPlugin(java.util.List components)
components
- Service component listpublic java.lang.Object get(java.lang.String key)
${services_rest_RestContext_method_get_Title}
${services_rest_RestContext_method_get_Description}
key
- ${services_rest_RestContext_method_get_param_key}public java.lang.Object put(java.lang.String key, java.lang.Object obj)
${services_rest_RestContext_method_put_Title}
${services_rest_RestContext_method_put_Description}
key
- ${services_rest_RestContext_method_put_param_key}obj
- ${services_rest_RestContext_method_put_param_obj}public ResourceManager getResourceManager()
${services_rest_RestContext_method_getResourceManager_Title}
${services_rest_RestContext_method_getResourceManager_Description}
public void setResourceManager(ResourceManager resourceManager)
${services_rest_RestContext_method_setResourceManager_Title}
${services_rest_RestContext_method_setResourceManager_Description}
resourceManager
- ${ services_rest_RestContext_method_setResourceManager_param_resourceManager }public void setRestConfig(RestConfig restConfig)
${services_rest_RestContext_method_setRestConfig_Title}
${services_rest_RestContext_method_setRestConfig_Description}
restConfig
- ${services_rest_RestContext_method_setRestConfig_param_restConfig }public RestConfig getRestConfig()
${services_rest_RestContext_method_getRestConfig_Title}
${services_rest_RestContext_method_getRestConfig_Description}
public java.util.Map getAttributes()
${services_rest_RestContext_method_getAttributes_Title}
${services_rest_RestContext_method_getAttributes_Description}
public TempObjRepository getTempObjRepository()
Obtains the algorithm parameters and algorithm results in the REST application context.
Algorithm parameters and algorithm results warehouse, is to save the algorithm results, temporary resources and other places.
public void setTempObjRepository(TempObjRepository tempObjRepository)
${services_rest_RestContext_method_setTempObjRepository_Title}
${services_rest_RestContext_method_setTempObjRepository_Description}
tempObjRepository
- ${ services_rest_RestContext_method_setTempObjRepository_param_tempObjRepository }public void setAttributes(java.util.Map attributes)
${services_rest_RestContext_method_setAttributes_Title}
${services_rest_RestContext_method_setAttributes_Description}
attributes
- ${services_rest_RestContext_method_setAttributes_param_attributes }public ResourceStatusManager getResourceStatusManager()
${services_rest_RestContext_method_getResourceStatusManager_Title}
${services_rest_RestContext_method_getResourceStatusManager_Description}
public void setResourceStatusManager(ResourceStatusManager resourceStatusManager)
${services_rest_RestContext_method_setResourceStatusManager_Title}
${services_rest_RestContext_method_setResourceStatusManager_Description}
resourceStatusManager
- ${services_rest_RestContext_method_setResourceStatusManager_param_resourceStatusManager }public java.util.List<Encoder> getSystemEncoders()
Gets the default resource expression generator.
The resource expression generator is used to transform the state of the resource into a specified type of expression, such as a json format.
public java.util.List<Decoder> getSystemDecoders()
Gets the default parser.
The parser is used to deserialize a certain type of parameter string into a Java object, such as a json-formatted parameter string.
public InterfaceContext getInterfaceContext()
Gets the interface context.
public void setInterfaceContext(InterfaceContext interfaceContext)
Sets the interface context.
interfaceContext
- interface context.public Verifier getVerifier()
public void setVerifier(Verifier verifier)
Sets to the security tester in the REST service.
verifier
- Safety test device.