public class RamlHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_RAML |
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
RamlHandler(String ramlLocation,
boolean keepRamlBaseUri,
org.mule.runtime.core.api.MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.raml.interfaces.model.IRaml |
getApi() |
String |
getBaseUriReplacement(String apiServer) |
String |
getRamlV1() |
String |
getRamlV2(String resourceRelativePath) |
String |
getRootRamlLocationForV1() |
String |
getRootRamlLocationForV2() |
String |
getSuccessStatusCode(org.mule.raml.interfaces.model.IAction action) |
boolean |
isParserV2() |
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 APPLICATION_RAML
protected static final org.slf4j.Logger logger
public RamlHandler(String ramlLocation, boolean keepRamlBaseUri, org.mule.runtime.core.api.MuleContext muleContext) throws IOException
IOExceptionpublic boolean isParserV2()
public org.mule.raml.interfaces.model.IRaml getApi()
public void setApi(org.mule.raml.interfaces.model.IRaml api)
public String getRamlV1()
public String getRamlV2(String resourceRelativePath) throws org.mule.runtime.api.exception.TypedException
org.mule.runtime.api.exception.TypedExceptionpublic 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.