Class HttpPipelineResponse.StreamingPackage

  • Enclosing class:
    HttpPipelineResponse

    protected final class HttpPipelineResponse.StreamingPackage
    extends java.lang.Object
    This class encapsulate the byte and custom properties send.
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamingPackage​(int bufferSize)  
    • Method Summary

      Modifier and Type Method Description
      void clear()
      Clean internal properties map.
      boolean contains​(java.lang.String propertyName)
      Returns true if the name is contained into the properties of the package.
      <O> O get​(java.lang.String propertyName)
      Returns the property value for the property name specified.
      byte[] getBuffer()
      Returns the buffer of the package.
      void put​(java.lang.String propertyName, java.lang.Object propertyValue)
      Put a property into the package.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StreamingPackage

        public StreamingPackage​(int bufferSize)
    • Method Detail

      • getBuffer

        public byte[] getBuffer()
        Returns the buffer of the package.
        Returns:
        Buffer of the package.
      • put

        public void put​(java.lang.String propertyName,
                        java.lang.Object propertyValue)
        Put a property into the package.
        Parameters:
        propertyName - Property name.
        propertyValue - Property value.
      • get

        public <O> O get​(java.lang.String propertyName)
        Returns the property value for the property name specified.
        Type Parameters:
        O - Expected property value type.
        Parameters:
        propertyName - Property name.
        Returns:
        Property value.
      • contains

        public boolean contains​(java.lang.String propertyName)
        Returns true if the name is contained into the properties of the package.
        Parameters:
        propertyName - Property name.
        Returns:
        True if the property is contained and false in the otherwise.
      • clear

        public void clear()
        Clean internal properties map.