public class EndpointContextHolder extends Object
| Constructor and Description |
|---|
EndpointContextHolder() |
| Modifier and Type | Method and Description |
|---|---|
static EndpointContextHolder |
buildContext(BLangService service,
BLangSimpleVariable ep)
Build a parsable object model for a service endpoint.
|
String |
getBasePath() |
String |
getHost() |
String |
getName() |
String |
getPort() |
String |
getUrl() |
public static EndpointContextHolder buildContext(BLangService service, BLangSimpleVariable ep)
ep must be bound to the service
inorder to extract its details. If ep is not bound to the service null
will be returnedservice - service with bound endpointsep - BLangSimpleVariable which to extract details fromep is bound to the service, endpoint context will be returned.
otherwise empty null will be returnedpublic String getHost()
public String getPort()
public String getBasePath()
public String getUrl()
public String getName()
Copyright © 2019 WSO2. All rights reserved.