public class RamlHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_RAML |
static String |
MULE_APIKIT_PARSER_PROPERTY |
| Constructor and Description |
|---|
RamlHandler(String ramlLocation,
boolean keepApiBaseUri,
org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository) |
RamlHandler(String ramlLocation,
boolean keepApiBaseUri,
org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository,
org.mule.parser.service.ParserMode parserMode) |
| Modifier and Type | Method and Description |
|---|---|
String |
dumpRaml() |
String |
getAMFModel() |
org.mule.apikit.model.ApiSpecification |
getApi() |
org.mule.apikit.model.ApiVendor |
getApiVendor() |
String |
getBaseUriReplacement(String apiServer) |
String |
getRamlV1() |
String |
getRamlV2(String resourceRelativePath) |
String |
getRootRamlLocationForV1() |
String |
getRootRamlLocationForV2() |
String |
getSuccessStatusCode(org.mule.apikit.model.Action action) |
boolean |
isParserV2()
Deprecated.
use getApiVendor() instead.
|
boolean |
isRequestingRamlV1ForConsole(String listenerPath,
String requestPath,
String queryString,
String method,
String acceptHeader) |
boolean |
isRequestingRamlV2(String listenerPath,
String requestPath,
String queryString,
String method) |
void |
setApi(org.mule.apikit.model.ApiSpecification api) |
void |
setApiServer(String apiServer) |
public static final String MULE_APIKIT_PARSER_PROPERTY
public static final String APPLICATION_RAML
public RamlHandler(String ramlLocation, boolean keepApiBaseUri, org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository) throws IOException
IOExceptionpublic RamlHandler(String ramlLocation, boolean keepApiBaseUri, org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository, org.mule.parser.service.ParserMode parserMode) throws IOException
IOException@Deprecated public boolean isParserV2()
public org.mule.apikit.model.ApiVendor getApiVendor()
public org.mule.apikit.model.ApiSpecification getApi()
public void setApi(org.mule.apikit.model.ApiSpecification api)
public String dumpRaml()
public String getRamlV1()
public String getRamlV2(String resourceRelativePath) throws org.mule.runtime.api.exception.TypedException
org.mule.runtime.api.exception.TypedExceptionpublic String getAMFModel()
public boolean isRequestingRamlV1ForConsole(String listenerPath, String requestPath, String queryString, String method, String acceptHeader)
public boolean isRequestingRamlV2(String listenerPath, String requestPath, String queryString, String method)
public String getRootRamlLocationForV2()
public String getRootRamlLocationForV1()
public String getSuccessStatusCode(org.mule.apikit.model.Action action)
public void setApiServer(String apiServer)
Copyright © 2020. All rights reserved.