Class HttpConnection.KeyVal

    • Method Detail

      • create

        public static HttpConnection.KeyVal create​(java.lang.String key,
                                                   java.lang.String filename,
                                                   java.io.InputStream stream)
      • inputStream

        public java.io.InputStream inputStream()
        Description copied from interface: Connection.KeyVal
        Get the input stream associated with this keyval, if any
        Specified by:
        inputStream in interface Connection.KeyVal
        Returns:
        input stream if set, or null
      • hasInputStream

        public boolean hasInputStream()
        Description copied from interface: Connection.KeyVal
        Does this keyval have an input stream?
        Specified by:
        hasInputStream in interface Connection.KeyVal
        Returns:
        true if this keyval does indeed have an input stream
      • contentType

        public java.lang.String contentType()
        Description copied from interface: Connection.KeyVal
        Get the current Content Type, or null if not set.
        Specified by:
        contentType in interface Connection.KeyVal
        Returns:
        the current Content Type.
      • toString

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