Class DelegatingServiceInstance
- java.lang.Object
-
- org.springframework.cloud.gateway.support.DelegatingServiceInstance
-
- All Implemented Interfaces:
org.springframework.cloud.client.ServiceInstance
public class DelegatingServiceInstance extends Object implements org.springframework.cloud.client.ServiceInstance
AServiceInstanceimplementation that uses a delegate instance under the hood.- Author:
- Spencer Gibb
-
-
Constructor Summary
Constructors Constructor Description DelegatingServiceInstance(org.springframework.cloud.client.ServiceInstance delegate, String overrideScheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHost()Map<String,String>getMetadata()intgetPort()StringgetScheme()StringgetServiceId()URIgetUri()booleanisSecure()
-
-
-
Constructor Detail
-
DelegatingServiceInstance
public DelegatingServiceInstance(org.springframework.cloud.client.ServiceInstance delegate, String overrideScheme)
-
-
Method Detail
-
getServiceId
public String getServiceId()
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getHost
public String getHost()
- Specified by:
getHostin interfaceorg.springframework.cloud.client.ServiceInstance
-
getPort
public int getPort()
- Specified by:
getPortin interfaceorg.springframework.cloud.client.ServiceInstance
-
isSecure
public boolean isSecure()
- Specified by:
isSecurein interfaceorg.springframework.cloud.client.ServiceInstance
-
getUri
public URI getUri()
- Specified by:
getUriin interfaceorg.springframework.cloud.client.ServiceInstance
-
getMetadata
public Map<String,String> getMetadata()
- Specified by:
getMetadatain interfaceorg.springframework.cloud.client.ServiceInstance
-
getScheme
public String getScheme()
- Specified by:
getSchemein interfaceorg.springframework.cloud.client.ServiceInstance
-
-