public class AsyncApi extends Object
| Constructor and Description |
|---|
AsyncApi() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseTopic() |
String |
getHost() |
Information |
getInformation() |
Set<Message> |
getMessages() |
Set<String> |
getSchemes() |
Set<Topic> |
getTopics() |
Set<Type> |
getTypes() |
static AsyncApi |
parseYaml(InputStream in)
Load an AsyncAPI specification encoded in YAML
|
static AsyncApi |
parseYaml(Path path)
Load an AsyncAPI specification encoded in YAML
|
static AsyncApi |
parseYaml(Reader reader)
Load an AsyncAPI specification encoded in YAML
|
void |
setBaseTopic(String baseTopic) |
void |
setHost(String host) |
void |
setInformation(Information info) |
void |
setMessages(Set<Message> messages) |
void |
setSchemes(Set<String> schemes) |
void |
setTopics(Set<Topic> topics) |
void |
setTypes(Set<Type> types) |
static AsyncApi |
validate(AsyncApi api) |
public static final String VERSION
public String getHost()
public void setHost(String host)
public String getBaseTopic()
public void setBaseTopic(String baseTopic)
public Information getInformation()
public void setInformation(Information info)
public static AsyncApi parseYaml(InputStream in) throws ParserException
in - the stream to read fromParserException - in case the document cannot be parsedpublic static AsyncApi parseYaml(Reader reader) throws ParserException
reader - the reader to read fromParserException - in case the document cannot be parsedpublic static AsyncApi parseYaml(Path path) throws ParserException
path - the file system resource to read fromParserException - in case the document cannot be parsedCopyright © 2017. All rights reserved.