Class ServiceInstanceUtils
java.lang.Object
io.microsphere.util.BaseUtils
io.microsphere.spring.cloud.client.service.util.ServiceInstanceUtils
public class ServiceInstanceUtils
extends io.microsphere.util.BaseUtils
ServiceInstance Utilities class- Since:
- 1.0.0
- Author:
- Mercy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidattachMetadata(String contextPath, org.springframework.cloud.client.ServiceInstance serviceInstance, Collection<io.microsphere.spring.web.metadata.WebEndpointMapping> webEndpointMappings) static Collection<io.microsphere.spring.web.metadata.WebEndpointMapping>getWebEndpointMappings(org.springframework.cloud.client.ServiceInstance serviceInstance)
-
Constructor Details
-
ServiceInstanceUtils
public ServiceInstanceUtils()
-
-
Method Details
-
attachMetadata
public static void attachMetadata(String contextPath, org.springframework.cloud.client.ServiceInstance serviceInstance, Collection<io.microsphere.spring.web.metadata.WebEndpointMapping> webEndpointMappings) -
getWebEndpointMappings
public static Collection<io.microsphere.spring.web.metadata.WebEndpointMapping> getWebEndpointMappings(org.springframework.cloud.client.ServiceInstance serviceInstance)
-