Package io.virtualan.core
Class OpenApiVirtualServiceInfo
java.lang.Object
io.virtualan.core.OpenApiVirtualServiceInfo
- All Implemented Interfaces:
VirtualServiceInfo
@Service("openApiVirtualServiceInfo")
public class OpenApiVirtualServiceInfo
extends Object
implements VirtualServiceInfo
This class provide support for OpenAPI based web services.
- Author:
- Elan Thangamani
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.virtualan.core.VirtualServiceInfo
VirtualServiceInfo.LogHolder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildInput(Method method, VirtualServiceRequest mockLoadRequest) buildResponseType(Method method) buildServiceDetails(boolean scriptEnabled, Map.Entry<String, Class> virtualServiceEntry, Method method) com.fasterxml.jackson.databind.ObjectMappervoidsetMockLoadChoice(Map<String, Map<String, VirtualServiceRequest>> mockLoadChoice) voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) voidsetResourceParent(ResourceMapper resourceParent) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.virtualan.core.VirtualServiceInfo
buildHierarchyObject, buildOpenAPIResponseType, buildVirtualServiceInfo, getHttpStatusMap, getInputType, getOperationId, getResourceDesc, getResponseType, getTypes, loadMapper, loadVirtualServices
-
Constructor Details
-
OpenApiVirtualServiceInfo
public OpenApiVirtualServiceInfo()
-
-
Method Details
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()- Specified by:
getObjectMapperin interfaceVirtualServiceInfo
-
setObjectMapper
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) - Specified by:
setObjectMapperin interfaceVirtualServiceInfo
-
getResourceParent
- Specified by:
getResourceParentin interfaceVirtualServiceInfo
-
setResourceParent
- Specified by:
setResourceParentin interfaceVirtualServiceInfo
-
getMockLoadChoice
- Specified by:
getMockLoadChoicein interfaceVirtualServiceInfo
-
setMockLoadChoice
- Specified by:
setMockLoadChoicein interfaceVirtualServiceInfo
-
buildServiceDetails
public VirtualServiceRequest buildServiceDetails(boolean scriptEnabled, Map.Entry<String, Class> virtualServiceEntry, Method method) throws com.fasterxml.jackson.core.JsonProcessingException, InstantiationException, IllegalAccessException, ClassNotFoundException- Specified by:
buildServiceDetailsin interfaceVirtualServiceInfo- Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionInstantiationExceptionIllegalAccessExceptionClassNotFoundException
-
buildInput
public void buildInput(Method method, VirtualServiceRequest mockLoadRequest) throws ClassNotFoundException - Specified by:
buildInputin interfaceVirtualServiceInfo- Throws:
ClassNotFoundException
-
findVirtualServices
- Specified by:
findVirtualServicesin interfaceVirtualServiceInfo
-
buildResponseType
- Specified by:
buildResponseTypein interfaceVirtualServiceInfo
-