@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @Import(value=HttpServiceConfiguration.class) @UsesGemFireProperties public @interface EnableHttpService
EnableHttpService annotation marks a Spring @Configuration
annotated Class to configure and enable Pivotal GemFire/Apache Geode's embedded HTTP service.
By using this Annotation, this enables the embedded HTTP services like Pulse, the Management REST API
and the Developer REST API on startup.
However, the embedded Pivotal GemFire/Apache Geode HTTP service and all dependent services (e.g. Pulse)
can be enabled/disabled externally in application.properties with
the spring.data.gemfire.service.http.enabled property even when this Annotation is present,
thereby serving as a toggle.Annotation,
Import,
HttpServiceConfiguration,
Developing REST Applications for Apache Geode| Modifier and Type | Optional Element and Description |
|---|---|
String |
bindAddress
If set, then the GemFire member binds the embedded HTTP service to the specified address.
|
int |
port
If non-zero, then GemFire starts an embedded HTTP service that listens on this port.
|
boolean |
sslRequireAuthentication
Boolean indicating whether to require authentication for HTTP service connections.
|
boolean |
startDeveloperRestApi
If set to true, then the Developer REST API service will be started when the cache is created.
|
public abstract String bindAddress
public abstract int port
public abstract boolean sslRequireAuthentication
EnableSsl annotation and set the
EnableSsl.components() to contain
org.springframework.data.gemfire.config.annotation.EnableSsl.Component#HTTP.
Defaults to false.
Use the spring.data.gemfire.service.http.ssl-require-authentication property
in application.properties.public abstract boolean startDeveloperRestApi
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.