此内容没有您所选择的语言版本。
9.5. Configure the Interface Using Connectors
Red Hat JBoss Data Grid supports three connector types, namely:
- The
hotrod-connector
element, which defines the configuration for a Hot Rod based connector. - The
memcached-connector
element, which defines the configuration for a memcached based connector. - The
rest-connector
element, which defines the configuration for a REST interface based connector.
9.5.1. Configure REST Connectors 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Use the following procedure to the
rest-connector
element in Red Hat JBoss Data Grid's Remote Client-Server mode.
Procedure 9.1. Configuring REST Connectors for Remote Client-Server Mode
The
rest-connector
element specifies the configuration information for the REST connector.
The
virtual-server
ParameterThevirtual-server
parameter specifies the virtual server used by the REST connector. The default value for this parameter isdefault-host
. This is an optional parameter.<subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <rest-connector virtual-server="default-host" /> </subsystem>
<subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <rest-connector virtual-server="default-host" /> </subsystem>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
cache-container
ParameterThecache-container
parameter names the cache container used by the REST connector. This is a mandatory parameter.<subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <rest-connector virtual-server="default-host" cache-container="local" /> </subsystem>
<subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <rest-connector virtual-server="default-host" cache-container="local" /> </subsystem>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
context-path
ParameterThecontext-path
parameter specifies the context path for the REST connector. The default value for this parameter is an empty string (""
). This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
security-domain
ParameterThesecurity-domain
parameter specifies that the specified domain, declared in the security subsystem, should be used to authenticate access to the REST endpoint. This is an optional parameter. If this parameter is omitted, no authentication is performed.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
auth-method
ParameterTheauth-method
parameter specifies the method used to retrieve credentials for the end point. The default value for this parameter isBASIC
. Supported alternate values includeDIGEST
,CLIENT-CERT
andSPNEGO
. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
security-mode
ParameterThesecurity-mode
parameter specifies whether authentication is required only for write operations (such as PUT, POST and DELETE) or for read operations (such as GET and HEAD) as well. Valid values for this parameter areWRITE
for authenticating write operations only, orREAD_WRITE
to authenticate read and write operations. The default value for this parameter isREAD_WRITE
.Copy to Clipboard Copied! Toggle word wrap Toggle overflow