Class HttpConnection.KeyVal

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String contentType  
      private java.lang.String key  
      private java.io.InputStream stream  
      private java.lang.String value  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private KeyVal()  
    • Field Detail

      • key

        private java.lang.String key
      • value

        private java.lang.String value
      • stream

        private java.io.InputStream stream
      • contentType

        private java.lang.String contentType
    • Constructor Detail

      • KeyVal

        private 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