@Service @ConditionalOnBean(value=ForwardingConfiguration.class) public class ForwardingService extends Object
Constructor and Description |
---|
ForwardingService(ElasticsearchConfiguration esConfig,
PunchletFilteringService filteringService) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<?> |
forwardToElastic(javax.servlet.http.HttpServletRequest req,
String tenant,
String clusterName,
String path,
String body)
Build the forwarded request to Elasticsearch with :
- the proper data cluster
- filtering, if this service is enabled
- the ssl context, if ssl is enabled to the data cluster
- the round robin mechanism to the data cluster nodes REST API
|
public ForwardingService(ElasticsearchConfiguration esConfig, PunchletFilteringService filteringService) throws GeneralSecurityException, IOException, URISyntaxException
public org.springframework.http.ResponseEntity<?> forwardToElastic(javax.servlet.http.HttpServletRequest req, String tenant, String clusterName, String path, String body)
req
- the request to forwardtenant
- the requested tenantclusterName
- the targeted clusterpath
- ES path of the request to forwardbody
- body of the requestCopyright © 2023. All rights reserved.