public class ServerObject extends Object
ServerObjectBuilder
Modifier and Type | Field and Description |
---|---|
String |
description
Deprecated.
use
description() instead |
String |
url
Deprecated.
use
url() instead |
Map<String,ServerVariableObject> |
variables
Deprecated.
use
variables() instead |
Modifier and Type | Method and Description |
---|---|
String |
description() |
String |
url() |
Map<String,ServerVariableObject> |
variables() |
void |
writeJson(Writer writer)
Writes this object as a JSON Object
|
@Deprecated public final String url
url()
instead@Deprecated public final String description
description()
instead@Deprecated public final Map<String,ServerVariableObject> variables
variables()
insteadpublic void writeJson(Writer writer) throws IOException
writer
- The writer to write toIOException
- Thrown if the writer throws this while writingpublic String url()
ServerObjectBuilder.withUrl(java.lang.String)
public String description()
ServerObjectBuilder.withDescription(java.lang.String)
public Map<String,ServerVariableObject> variables()
ServerObjectBuilder.withVariables(java.util.Map<java.lang.String, io.muserver.openapi.ServerVariableObject>)
Copyright © 2017–2021. All rights reserved.