Package io.virtualan.core
Interface VirtualServiceInfo
- All Known Implementing Classes:
NonRestVirtualServiceInfo,OpenApiVirtualServiceInfo,SpringVirtualServiceInfo
public interface VirtualServiceInfo
This interface is base for all VirtualService types
- Author:
- Elan Thangamani
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault ResourceMapperbuildHierarchyObject(String httpVerb, ResourceMapper resourceParent, List<String> resouceSplitterList, String operationId) voidbuildInput(Method method, VirtualServiceRequest mockLoadRequest) default Map<String,VirtualServiceApiResponse> buildOpenAPIResponseType(Method method) default Map<String,VirtualServiceApiResponse> buildResponseType(Method method) default VirtualServiceRequestbuildServiceDetails(boolean scriptEnabled, Map.Entry<String, Class> virtualServiceEntry, Method method) default Map<String,VirtualServiceRequest> buildVirtualServiceInfo(boolean scriptEnabled, Map.Entry<String, Class> virtualServiceEntry) default ClassgetInputType(VirtualServiceRequest mockTransferInput) com.fasterxml.jackson.databind.ObjectMapperdefault StringgetOperationId(String httpVerb, ResourceMapper resourceParent, List<String> resouceSplitterList) default StringgetResourceDesc(Method method) default VirtualServiceRequestgetResponseType(VirtualServiceRequest mockTransferInput) getTypes(boolean scriptEnabled) default ResourceMapperdefault Map<String,Map<String, VirtualServiceRequest>> loadVirtualServices(boolean scriptEnabled) voidsetMockLoadChoice(Map<String, Map<String, VirtualServiceRequest>> mockLoadChoice) voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) voidsetResourceParent(ResourceMapper resourceParent)
-
Method Details
-
getObjectMapper
com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
setObjectMapper
void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
getResourceParent
ResourceMapper getResourceParent() -
setResourceParent
-
getMockLoadChoice
Map<String,Map<String, getMockLoadChoice()VirtualServiceRequest>> -
setMockLoadChoice
-
buildInput
void buildInput(Method method, VirtualServiceRequest mockLoadRequest) throws com.fasterxml.jackson.core.JsonProcessingException, InstantiationException, IllegalAccessException, ClassNotFoundException - Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionInstantiationExceptionIllegalAccessExceptionClassNotFoundException
-
getResourceDesc
-
findVirtualServices
-
loadVirtualServices
default Map<String,Map<String, loadVirtualServicesVirtualServiceRequest>> (boolean scriptEnabled) throws ClassNotFoundException, com.fasterxml.jackson.core.JsonProcessingException, InstantiationException, IllegalAccessException - Throws:
ClassNotFoundExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionInstantiationExceptionIllegalAccessException
-
buildVirtualServiceInfo
default Map<String,VirtualServiceRequest> buildVirtualServiceInfo(boolean scriptEnabled, Map.Entry<String, Class> virtualServiceEntry) throws com.fasterxml.jackson.core.JsonProcessingException, InstantiationException, IllegalAccessException, ClassNotFoundException- Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionInstantiationExceptionIllegalAccessExceptionClassNotFoundException
-
getInputType
-
buildOpenAPIResponseType
-
getOperationId
default String getOperationId(String httpVerb, ResourceMapper resourceParent, List<String> resouceSplitterList) -
getResponseType
-
getTypes
-
getHttpStatusMap
-
loadMapper
-
buildHierarchyObject
default ResourceMapper buildHierarchyObject(String httpVerb, ResourceMapper resourceParent, List<String> resouceSplitterList, String operationId) -
buildResponseType
default Map<String,VirtualServiceApiResponse> buildResponseType(Method method) throws com.fasterxml.jackson.core.JsonProcessingException, InstantiationException, IllegalAccessException, ClassNotFoundException - Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionInstantiationExceptionIllegalAccessExceptionClassNotFoundException
-
buildServiceDetails
default VirtualServiceRequest buildServiceDetails(boolean scriptEnabled, Map.Entry<String, Class> virtualServiceEntry, Method method) throws com.fasterxml.jackson.core.JsonProcessingException, InstantiationException, IllegalAccessException, ClassNotFoundException- Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionInstantiationExceptionIllegalAccessExceptionClassNotFoundException
-