|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smartbear.swagger4j.impl.SwaggerReaderImpl
public class SwaggerReaderImpl
Default SwaggerReader implementation
SwaggerReader
Constructor Summary | |
---|---|
SwaggerReaderImpl()
|
Method Summary | |
---|---|
ApiDeclaration |
readApiDeclaration(Reader reader,
Constants.Format format)
|
ApiDeclaration |
readApiDeclaration(URI uri)
Reads an API Declaration from the specified URI - use this is you have standalone API Declarations. |
ResourceListing |
readResourceListing(SwaggerSource source)
Reads a Resource Listing and all contained API Declarations from the specified SwaggerSource |
ResourceListing |
readResourceListing(URI uri)
Reads a Resource Listing and all contained API Declarations from the specified URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwaggerReaderImpl()
Method Detail |
---|
public ResourceListing readResourceListing(URI uri) throws IOException
SwaggerReader
readResourceListing
in interface SwaggerReader
uri
- the URI of the starting api-docs document (with either json or xml extension)
IOException
public ResourceListing readResourceListing(SwaggerSource source) throws IOException
SwaggerReader
readResourceListing
in interface SwaggerReader
source
- the SwaggerSource providing the Resource Listing and its API Declarations
IOException
public ApiDeclaration readApiDeclaration(URI uri) throws IOException
SwaggerReader
readApiDeclaration
in interface SwaggerReader
uri
- the URI of the API declaration document (with either json or xml extension)
IOException
public ApiDeclaration readApiDeclaration(Reader reader, Constants.Format format) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |