Class MetaData.Response

  • All Implemented Interfaces:
    java.lang.Iterable<HttpField>
    Enclosing class:
    MetaData

    public static class MetaData.Response
    extends MetaData
    • Constructor Detail

      • Response

        public Response()
      • Response

        public Response​(HttpVersion version,
                        int status,
                        HttpFields fields,
                        long contentLength)
      • Response

        public Response​(HttpVersion version,
                        int status,
                        java.lang.String reason,
                        HttpFields fields,
                        long contentLength)
    • Method Detail

      • getStatus

        public int getStatus()
        Returns:
        the HTTP status
      • getReason

        public java.lang.String getReason()
        Returns:
        the HTTP reason
      • setStatus

        public void setStatus​(int status)
        Parameters:
        status - the HTTP status to set
      • setReason

        public void setReason​(java.lang.String reason)
        Parameters:
        reason - the HTTP reason to set
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class MetaData