Package org.hcjf.io.net.http.pipeline
Class HttpPipelineResponse.StreamingPackage
- java.lang.Object
-
- org.hcjf.io.net.http.pipeline.HttpPipelineResponse.StreamingPackage
-
- Enclosing class:
- HttpPipelineResponse
protected final class HttpPipelineResponse.StreamingPackage extends java.lang.ObjectThis class encapsulate the byte and custom properties send.
-
-
Constructor Summary
Constructors Constructor Description StreamingPackage(int bufferSize)
-
Method Summary
Modifier and Type Method Description voidclear()Clean internal properties map.booleancontains(java.lang.String propertyName)Returns true if the name is contained into the properties of the package.<O> Oget(java.lang.String propertyName)Returns the property value for the property name specified.byte[]getBuffer()Returns the buffer of the package.voidput(java.lang.String propertyName, java.lang.Object propertyValue)Put a property into the package.
-
-
-
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.
-
-