Class HttpCore.Response

  • Enclosing class:
    HttpCore

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

      Constructors 
      Constructor Description
      Response()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • 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 Detail

      • Response

        public Response()
    • Method Detail

      • 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.