Package pl.metaprogramming.model.oas
Class HttpResponse
-
- All Implemented Interfaces:
public final class HttpResponse
-
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerDEFAULTprivate final BooleanisSuccessResponseprivate final BooleanisDefaultprivate final DataSchemaschemaprivate final Integerstatusprivate Stringdescriptionprivate final Set<String>headersprivate final Map<String, DataSchema>contents
-
Constructor Summary
Constructors Constructor Description HttpResponse(Integer status, String description, Set<String> headers, Map<String, DataSchema> contents)
-
Method Summary
Modifier and Type Method Description final BooleanisSuccessResponse()final BooleanisDefault()final DataSchemagetSchema()final IntegergetStatus()final StringgetDescription()final UnitsetDescription(String description)final Set<String>getHeaders()final Map<String, DataSchema>getContents()StringtoString()-
-
Method Detail
-
isSuccessResponse
final Boolean isSuccessResponse()
-
getSchema
final DataSchema getSchema()
-
getDescription
final String getDescription()
-
setDescription
final Unit setDescription(String description)
-
getHeaders
final Set<String> getHeaders()
-
getContents
final Map<String, DataSchema> getContents()
-
-
-
-