Package com.networknt.oas.model.impl
Class ResponseImpl
- java.lang.Object
-
- com.networknt.jsonoverlay.JsonOverlay<V>
-
- com.networknt.jsonoverlay.PropertiesOverlay<Response>
-
- com.networknt.oas.model.impl.ResponseImpl
-
-
Field Summary
Fields Modifier and Type Field Description static StringF_contentMediaTypesstatic StringF_descriptionstatic StringF_extensionsstatic StringF_headersstatic StringF_linksstatic com.networknt.jsonoverlay.OverlayFactory<Response>factory
-
Constructor Summary
Constructors Constructor Description ResponseImpl(com.fasterxml.jackson.databind.JsonNode json, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)ResponseImpl(Response response, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)
-
Method Summary
-
Methods inherited from class com.networknt.jsonoverlay.PropertiesOverlay
_add, _createList, _createMap, _createScalar, _elaborate, _findInternal, _fixJson, _fromJson, _get, _get, _get, _get, _get, _get, _getList, _getList, _getMap, _getMap, _getOverlay, _insert, _isElaborated, _isPresent, _remove, _remove, _set, _set, _setList, _setMap, _setScalar, _toJsonInternal, equals, equals, hashCode
-
Methods inherited from class com.networknt.jsonoverlay.JsonOverlay
_ensureElaborated, _getCreatingRef, _jsonArray, _jsonBoolean, _jsonMissing, _jsonNull, _jsonObject, _jsonScalar, _jsonScalar, _jsonScalar, _jsonScalar, _jsonScalar, _jsonScalar, _jsonScalar, _jsonScalar, _jsonScalar, _setCreatingRef, _setParent, builder, create, toString
-
-
-
-
Field Detail
-
F_description
public static final String F_description
- See Also:
- Constant Field Values
-
F_headers
public static final String F_headers
- See Also:
- Constant Field Values
-
F_contentMediaTypes
public static final String F_contentMediaTypes
- See Also:
- Constant Field Values
-
F_links
public static final String F_links
- See Also:
- Constant Field Values
-
F_extensions
public static final String F_extensions
- See Also:
- Constant Field Values
-
factory
public static com.networknt.jsonoverlay.OverlayFactory<Response> factory
-
-
Constructor Detail
-
ResponseImpl
public ResponseImpl(com.fasterxml.jackson.databind.JsonNode json, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)
-
ResponseImpl
public ResponseImpl(Response response, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceResponse
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceResponse
-
getHeaders
public Map<String,Header> getHeaders()
- Specified by:
getHeadersin interfaceResponse
-
getHeaders
public Map<String,Header> getHeaders(boolean elaborate)
- Specified by:
getHeadersin interfaceResponse
-
hasHeaders
public boolean hasHeaders()
- Specified by:
hasHeadersin interfaceResponse
-
setHeaders
public void setHeaders(Map<String,Header> headers)
- Specified by:
setHeadersin interfaceResponse
-
removeHeader
public void removeHeader(String name)
- Specified by:
removeHeaderin interfaceResponse
-
getContentMediaTypes
public Map<String,MediaType> getContentMediaTypes()
- Specified by:
getContentMediaTypesin interfaceResponse
-
getContentMediaTypes
public Map<String,MediaType> getContentMediaTypes(boolean elaborate)
- Specified by:
getContentMediaTypesin interfaceResponse
-
hasContentMediaTypes
public boolean hasContentMediaTypes()
- Specified by:
hasContentMediaTypesin interfaceResponse
-
hasContentMediaType
public boolean hasContentMediaType(String name)
- Specified by:
hasContentMediaTypein interfaceResponse
-
getContentMediaType
public MediaType getContentMediaType(String name)
- Specified by:
getContentMediaTypein interfaceResponse
-
setContentMediaTypes
public void setContentMediaTypes(Map<String,MediaType> contentMediaTypes)
- Specified by:
setContentMediaTypesin interfaceResponse
-
setContentMediaType
public void setContentMediaType(String name, MediaType contentMediaType)
- Specified by:
setContentMediaTypein interfaceResponse
-
removeContentMediaType
public void removeContentMediaType(String name)
- Specified by:
removeContentMediaTypein interfaceResponse
-
removeLink
public void removeLink(String name)
- Specified by:
removeLinkin interfaceResponse
-
getExtensions
public Map<String,Object> getExtensions()
- Specified by:
getExtensionsin interfaceResponse
-
getExtensions
public Map<String,Object> getExtensions(boolean elaborate)
- Specified by:
getExtensionsin interfaceResponse
-
hasExtensions
public boolean hasExtensions()
- Specified by:
hasExtensionsin interfaceResponse
-
hasExtension
public boolean hasExtension(String name)
- Specified by:
hasExtensionin interfaceResponse
-
getExtension
public Object getExtension(String name)
- Specified by:
getExtensionin interfaceResponse
-
setExtensions
public void setExtensions(Map<String,Object> extensions)
- Specified by:
setExtensionsin interfaceResponse
-
setExtension
public void setExtension(String name, Object extension)
- Specified by:
setExtensionin interfaceResponse
-
removeExtension
public void removeExtension(String name)
- Specified by:
removeExtensionin interfaceResponse
-
_elaborateJson
protected void _elaborateJson()
- Overrides:
_elaborateJsonin classcom.networknt.jsonoverlay.PropertiesOverlay<Response>
-
_getModelType
public Class<?> _getModelType()
- Overrides:
_getModelTypein classcom.networknt.jsonoverlay.JsonOverlay<Response>
-
_getFactory
protected com.networknt.jsonoverlay.OverlayFactory<?> _getFactory()
- Specified by:
_getFactoryin classcom.networknt.jsonoverlay.JsonOverlay<Response>
-
builder
public static <OV extends com.networknt.jsonoverlay.IJsonOverlay<?>> com.networknt.jsonoverlay.Builder<Response> builder(OV modelMember)
-
create
public static <OV extends com.networknt.jsonoverlay.IJsonOverlay<?>> Response create(OV modelMember)
-
-