public abstract class ModelGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
orgId |
protected String |
proxyReferer |
protected String |
proxyUri |
protected boolean |
safeFileLoader |
protected SpecFormat |
specFormat |
protected boolean |
tlsEnabled |
protected String |
token |
| Constructor and Description |
|---|
ModelGenerator(SpecFormat specFormat) |
| Modifier and Type | Method and Description |
|---|---|
RestConnectModelBuilder |
generateAPIModel(File raml) |
abstract RestConnectModelBuilder |
generateAPIModel(File raml,
String rootDir) |
static ModelGenerator |
get(SpecFormat format,
Parser parser) |
void |
withSafeFileLoader(boolean useSafeFileLoader) |
void |
withSafeProxy(String proxyUri,
String proxyReferer,
String token,
String orgId) |
void |
withTlsEnabled(boolean tlsEnabled) |
protected final SpecFormat specFormat
protected String proxyUri
protected String proxyReferer
protected String token
protected String orgId
protected boolean safeFileLoader
protected boolean tlsEnabled
public ModelGenerator(SpecFormat specFormat)
public abstract RestConnectModelBuilder generateAPIModel(File raml, String rootDir) throws Exception
Exceptionpublic RestConnectModelBuilder generateAPIModel(File raml) throws Exception
Exceptionpublic void withSafeProxy(String proxyUri, String proxyReferer, String token, String orgId)
public void withSafeFileLoader(boolean useSafeFileLoader)
public void withTlsEnabled(boolean tlsEnabled)
public static ModelGenerator get(SpecFormat format, Parser parser)
Copyright © 2024. All rights reserved.