public class RamlHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_RAML |
protected static org.slf4j.Logger |
logger |
static String |
MULE_APIKIT_PARSER_AMF |
static String |
MULE_APIKIT_PARSER_PROPERTY |
| Constructor and Description |
|---|
RamlHandler(String ramlLocation,
boolean keepApiBaseUri) |
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.raml.interfaces.ParserType parserType) |
RamlHandler(String ramlLocation,
boolean keepApiBaseUri,
org.mule.raml.interfaces.ParserType parserType) |
| Modifier and Type | Method and Description |
|---|---|
String |
dumpRaml() |
String |
getAMFModel() |
org.mule.raml.interfaces.model.IRaml |
getApi() |
org.mule.raml.interfaces.model.ApiVendor |
getApiVendor() |
String |
getBaseUriReplacement(String apiServer) |
org.mule.raml.interfaces.ParserType |
getParserType() |
String |
getRamlV1() |
String |
getRamlV2(String resourceRelativePath) |
String |
getRootRamlLocationForV1() |
String |
getRootRamlLocationForV2() |
String |
getSuccessStatusCode(org.mule.raml.interfaces.model.IAction 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.raml.interfaces.model.IRaml api) |
void |
setApiServer(String apiServer) |
public static final String MULE_APIKIT_PARSER_PROPERTY
public static final String APPLICATION_RAML
protected static final org.slf4j.Logger logger
public static final String MULE_APIKIT_PARSER_AMF
public RamlHandler(String ramlLocation, boolean keepApiBaseUri) throws IOException
IOExceptionpublic RamlHandler(String ramlLocation, boolean keepApiBaseUri, org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository) throws IOException
IOExceptionpublic RamlHandler(String ramlLocation, boolean keepApiBaseUri, org.mule.raml.interfaces.ParserType parserType) throws IOException
IOExceptionpublic RamlHandler(String ramlLocation, boolean keepApiBaseUri, org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository, org.mule.raml.interfaces.ParserType parserType) throws IOException
IOExceptionpublic org.mule.raml.interfaces.ParserType getParserType()
@Deprecated public boolean isParserV2()
public org.mule.raml.interfaces.model.ApiVendor getApiVendor()
public org.mule.raml.interfaces.model.IRaml getApi()
public void setApi(org.mule.raml.interfaces.model.IRaml 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.raml.interfaces.model.IAction action)
public void setApiServer(String apiServer)
Copyright © 2019. All rights reserved.