Package io.virtualan.core
Class OpenApiVirtualServiceInfo
- java.lang.Object
-
- io.virtualan.core.OpenApiVirtualServiceInfo
-
- All Implemented Interfaces:
VirtualServiceInfo
@Service("openApiVirtualServiceInfo") public class OpenApiVirtualServiceInfo extends java.lang.Object implements VirtualServiceInfoThis 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 Constructor Description OpenApiVirtualServiceInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildInput(java.lang.reflect.Method method, VirtualServiceRequest mockLoadRequest)java.util.Map<java.lang.String,VirtualServiceApiResponse>buildResponseType(java.lang.reflect.Method method)VirtualServiceRequestbuildServiceDetails(boolean scriptEnabled, java.util.Map.Entry<java.lang.String,java.lang.Class> virtualServiceEntry, java.lang.reflect.Method method)ApiTypegetApiType()java.util.Map<java.lang.String,java.util.Map<java.lang.String,VirtualServiceRequest>>getMockLoadChoice()com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()ResourceMappergetResourceParent()voidsetApiType(ApiType apiType)voidsetMockLoadChoice(java.util.Map<java.lang.String,java.util.Map<java.lang.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, wait
-
Methods inherited from interface io.virtualan.core.VirtualServiceInfo
buildHierarchyObject, buildOpenAPIResponseType, buildVirtualServiceInfo, findVirtualServices, findVirtualServices, getHttpStatusMap, getInputType, getName, getOperationId, getResourceDesc, getResponseType, getTypes, isValidJson, loadClasses, loadMapper, loadVirtualServices, loadVirtualServices
-
-
-
-
Method Detail
-
getApiType
public ApiType getApiType()
- Specified by:
getApiTypein interfaceVirtualServiceInfo
-
setApiType
public void setApiType(ApiType apiType)
- Specified by:
setApiTypein interfaceVirtualServiceInfo
-
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
public ResourceMapper getResourceParent()
- Specified by:
getResourceParentin interfaceVirtualServiceInfo
-
setResourceParent
public void setResourceParent(ResourceMapper resourceParent)
- Specified by:
setResourceParentin interfaceVirtualServiceInfo
-
getMockLoadChoice
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,VirtualServiceRequest>> getMockLoadChoice()
- Specified by:
getMockLoadChoicein interfaceVirtualServiceInfo
-
setMockLoadChoice
public void setMockLoadChoice(java.util.Map<java.lang.String,java.util.Map<java.lang.String,VirtualServiceRequest>> mockLoadChoice)
- Specified by:
setMockLoadChoicein interfaceVirtualServiceInfo
-
buildServiceDetails
public VirtualServiceRequest buildServiceDetails(boolean scriptEnabled, java.util.Map.Entry<java.lang.String,java.lang.Class> virtualServiceEntry, java.lang.reflect.Method method) throws com.fasterxml.jackson.core.JsonProcessingException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
- Specified by:
buildServiceDetailsin interfaceVirtualServiceInfo- Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.ClassNotFoundException
-
buildInput
public void buildInput(java.lang.reflect.Method method, VirtualServiceRequest mockLoadRequest) throws java.lang.ClassNotFoundException, com.fasterxml.jackson.core.JsonProcessingException- Specified by:
buildInputin interfaceVirtualServiceInfo- Throws:
java.lang.ClassNotFoundExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
buildResponseType
public java.util.Map<java.lang.String,VirtualServiceApiResponse> buildResponseType(java.lang.reflect.Method method)
- Specified by:
buildResponseTypein interfaceVirtualServiceInfo
-
-