Package io.muserver.openapi
Class ResponseObject
- java.lang.Object
-
- io.muserver.openapi.ResponseObject
-
public class ResponseObject extends java.lang.Object
- See Also:
ResponseObjectBuilder
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.String,MediaTypeObject>
content
Deprecated.usecontent()
insteadjava.lang.String
description
Deprecated.usedescription()
insteadjava.util.Map<java.lang.String,HeaderObject>
headers
Deprecated.useheaders()
insteadjava.util.Map<java.lang.String,LinkObject>
links
Deprecated.uselinks()
instead
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,MediaTypeObject>
content()
java.lang.String
description()
java.util.Map<java.lang.String,HeaderObject>
headers()
java.util.Map<java.lang.String,LinkObject>
links()
void
writeJson(java.io.Writer writer)
-
-
-
Field Detail
-
description
@Deprecated public final java.lang.String description
Deprecated.usedescription()
instead
-
headers
@Deprecated public final java.util.Map<java.lang.String,HeaderObject> headers
Deprecated.useheaders()
instead
-
content
@Deprecated public final java.util.Map<java.lang.String,MediaTypeObject> content
Deprecated.usecontent()
instead
-
links
@Deprecated public final java.util.Map<java.lang.String,LinkObject> links
Deprecated.uselinks()
instead
-
-
Method Detail
-
writeJson
public void writeJson(java.io.Writer writer) throws java.io.IOException
- Throws:
java.io.IOException
-
description
public java.lang.String description()
- Returns:
- the value described by
ResponseObjectBuilder.withDescription(java.lang.String)
-
headers
public java.util.Map<java.lang.String,HeaderObject> headers()
- Returns:
- the value described by
ResponseObjectBuilder.withHeaders(java.util.Map<java.lang.String, io.muserver.openapi.HeaderObject>)
-
content
public java.util.Map<java.lang.String,MediaTypeObject> content()
- Returns:
- the value described by
ResponseObjectBuilder.withContent(java.util.Map<java.lang.String, io.muserver.openapi.MediaTypeObject>)
-
links
public java.util.Map<java.lang.String,LinkObject> links()
- Returns:
- the value described by
ResponseObjectBuilder.withLinks(java.util.Map<java.lang.String, io.muserver.openapi.LinkObject>)
-
-