public class ClientContextHolder extends Object
| Constructor and Description |
|---|
ClientContextHolder() |
| Modifier and Type | Method and Description |
|---|---|
static ClientContextHolder |
buildContext(BLangService service,
List<BLangSimpleVariable> endpoints)
Build a parsable context from a Ballerina
ServiceNode. |
List<EndpointContextHolder> |
getEndpoints() |
String |
getName() |
List<ResourceContextHolder> |
getResources() |
public static ClientContextHolder buildContext(BLangService service, List<BLangSimpleVariable> endpoints) throws CodeGeneratorException
ServiceNode.service - ServiceNode for a valid ballerina source fileendpoints - list of endpoints to be used as service endpoints for generated clientserviceCodeGeneratorException - when there are generation exceptionspublic String getName()
public List<ResourceContextHolder> getResources()
public List<EndpointContextHolder> getEndpoints()
Copyright © 2019 WSO2. All rights reserved.