Package org.hcjf.io.net.http
Interface HttpPackage.TransferDecodingLayerInterface
-
- All Superinterfaces:
java.lang.reflect.InvocationHandler,LayerInterface
- All Known Implementing Classes:
HttpPackage.ChunkedDecoderLayer
- Enclosing class:
- HttpPackage
public static interface HttpPackage.TransferDecodingLayerInterface extends LayerInterface
Specify the interface for all the implementations of http body decode method.
-
-
Method Summary
Modifier and Type Method Description voidadd(java.nio.ByteBuffer bodyFragment)Add a new fragment for the current body.booleandone(HttpPackage httpPackage)Verify if the body is done depends of the decode method.byte[]getBody()Returns the decoded instance of the body.-
Methods inherited from interface org.hcjf.layers.LayerInterface
getImplName, getRegex, isDistributed, isPlugin, isStateful
-
-
-
-
Method Detail
-
add
void add(java.nio.ByteBuffer bodyFragment)
Add a new fragment for the current body.- Parameters:
bodyFragment- Body fragment.
-
done
boolean done(HttpPackage httpPackage)
Verify if the body is done depends of the decode method.- Parameters:
httpPackage- Package to verify if the body is complete.- Returns:
- Body done.
-
getBody
byte[] getBody()
Returns the decoded instance of the body.- Returns:
- Body.
-
-