Class OAResponse


  • public final class OAResponse
    extends Object
    An OpenAPI response object.
    Author:
    scf
    • Constructor Detail

      • OAResponse

        public OAResponse()
    • Method Detail

      • addHeader

        public void addHeader​(String name,
                              OAHeader header)
      • hasHeader

        public boolean hasHeader​(String name)
      • hasContent

        public boolean hasContent​(String name)
      • getRef

        public String getRef()
        Returns:
        the ref
      • setRef

        public void setRef​(String ref)
        Parameters:
        ref - the ref to set
      • getDescription

        public String getDescription()
        Returns:
        the description
      • setDescription

        public void setDescription​(String description)
        Parameters:
        description - the description to set
      • setHeaders

        public void setHeaders​(Map<String,​OAHeader> headers)
        Parameters:
        headers - the headers to set
      • setContent

        public void setContent​(Map<String,​OAMediaType> content)
        Parameters:
        content - the content to set