Class HttpCore.Response

java.lang.Object
io.ably.lib.http.HttpCore.Response
Enclosing class:
HttpCore

public static class HttpCore.Response
extends java.lang.Object
A type encapsulating an httpCore response
  • Field Summary

    Fields 
    Modifier and Type Field Description
    byte[] body  
    int contentLength  
    java.lang.String contentType  
    java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers  
    int statusCode  
    java.lang.String statusLine  
  • Constructor Summary

    Constructors 
    Constructor Description
    Response()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<java.lang.String> getHeaderFields​(java.lang.String name)
    Returns the value of the named header field.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • statusCode

      public int statusCode
    • statusLine

      public java.lang.String statusLine
    • headers

      public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers
    • contentType

      public java.lang.String contentType
    • contentLength

      public int contentLength
    • body

      public byte[] body
  • Constructor Details

  • Method Details

    • getHeaderFields

      public java.util.List<java.lang.String> getHeaderFields​(java.lang.String name)
      Returns the value of the named header field.

      If called on a connection that sets the same header multiple times with possibly different values, only the last value is returned.

      Parameters:
      name - the name of a header field.
      Returns:
      the value of the named header field, or null if there is no such field in the header.