public class DefaultServiceInstanceConverter extends Object implements ServiceInstanceConverter
ServiceInstances to Applications.| Constructor and Description |
|---|
DefaultServiceInstanceConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
append(String uri,
String path) |
Application |
convert(org.springframework.cloud.client.ServiceInstance instance)
Converts a service instance to a application to be registered.
|
void |
setHealthEndpointPath(String healthEndpointPath)
path of the health-endpoint to be used for the health-url of the discovered service.
|
void |
setManagementContextPath(String managementContextPath)
management.context-path to be appended to the url of the discovered service for
the managment-url. |
public Application convert(org.springframework.cloud.client.ServiceInstance instance)
ServiceInstanceConverterconvert in interface ServiceInstanceConverterinstance - the service instance.public void setManagementContextPath(String managementContextPath)
management.context-path to be appended to the url of the discovered service for
the managment-url.managementContextPath - the management context-path.public void setHealthEndpointPath(String healthEndpointPath)
healthEndpointPath - the path for the health-endpoint.Copyright © 2016 codecentric AG. All rights reserved.