public class EndpointSchema extends Object
| Constructor and Description |
|---|
EndpointSchema(String name,
String interfaceName,
String clientTypeName,
List<NamedTypedValue> requestParams,
NamedTypedValue response,
List<NamedTypedValue> exceptions,
boolean authRequired,
List<Integer> requiredAuthCandidates,
Set<String> relatedCustomizedCandidates) |
| Modifier and Type | Method and Description |
|---|---|
EndpointSchema |
copyStructure() |
RPCActionDto |
getDto() |
List<NamedTypedValue> |
getExceptions() |
String |
getName() |
Set<String> |
getRelatedCustomizedCandidates() |
List<NamedTypedValue> |
getRequestParams() |
NamedTypedValue |
getResponse() |
List<String> |
newInvocationWithJavaOrKotlin(String responseVarName,
String controllerVarName,
String clientVariable,
SutInfoDto.OutputFormat outputFormat)
process to generate java code to invoke this request
|
boolean |
sameEndpoint(RPCActionDto dto) |
boolean |
sameEndpoint(SeededRPCActionDto dto)
find an endpoint schema based on seeded tests
|
void |
setValue(RPCActionDto dto)
set value of endpoint based on dto
|
public EndpointSchema(String name, String interfaceName, String clientTypeName, List<NamedTypedValue> requestParams, NamedTypedValue response, List<NamedTypedValue> exceptions, boolean authRequired, List<Integer> requiredAuthCandidates, Set<String> relatedCustomizedCandidates)
name - is the name of the endpoint, ie, method nameinterfaceName - is the full name of the interfaceclientTypeName - is the client type with its full namerequestParams - is a list of parameters in requestresponse - is the response, ie, returnexceptions - is related to exception for this endpointauthRequired - specifies whether the endpoint clearly declares that it requires auth, eg with annotation
note that if authRequired is false, the endpoint could also apply global auth setuprequiredAuthCandidates - represents required candidates for its auth setuprelatedCustomizedCandidates - represents related customizations based on their referencespublic String getName()
public List<NamedTypedValue> getRequestParams()
public NamedTypedValue getResponse()
public List<NamedTypedValue> getExceptions()
public RPCActionDto getDto()
public boolean sameEndpoint(RPCActionDto dto)
dto - is a dto of rpc call which contains value infopublic boolean sameEndpoint(SeededRPCActionDto dto)
dto - a seeded test dtopublic EndpointSchema copyStructure()
public void setValue(RPCActionDto dto)
dto - contains value info the endpoint
note that the dto is typically generated by core side, ie, searchpublic List<String> newInvocationWithJavaOrKotlin(String responseVarName, String controllerVarName, String clientVariable, SutInfoDto.OutputFormat outputFormat)
responseVarName - specifies a variable name representing a response of this endpointclientVariable - outputFormat - Copyright © 2016–2025. All rights reserved.