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 Stringdescriptionprivate final Set<String>headersprivate final Map<String, DataSchema>contentsprivate final BooleanisSuccessResponseprivate final BooleanisDefaultprivate final DataSchemaschemaprivate final Integerstatusprivate final HttpResponseSchemaresponseSchema
-
Constructor Summary
Constructors Constructor Description HttpResponse(Integer status, HttpResponseSchema responseSchema)
-
Method Summary
Modifier and Type Method Description final StringgetDescription()final Set<String>getHeaders()final Map<String, DataSchema>getContents()final BooleanisSuccessResponse()final BooleanisDefault()final DataSchemagetSchema()final IntegergetStatus()final HttpResponseSchemagetResponseSchema()StringtoString()-
-
Constructor Detail
-
HttpResponse
HttpResponse(Integer status, HttpResponseSchema responseSchema)
-
-
Method Detail
-
getDescription
final String getDescription()
-
getHeaders
final Set<String> getHeaders()
-
getContents
final Map<String, DataSchema> getContents()
-
isSuccessResponse
final Boolean isSuccessResponse()
-
getSchema
final DataSchema getSchema()
-
getResponseSchema
final HttpResponseSchema getResponseSchema()
-
-
-
-