public class HandlerInputContent
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HandlerInputContent.Builder
Builder for content.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
consumeBytes()
Consume the bytes.
|
java.io.InputStream |
consumeStream()
Consume stream.
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Headers.
|
static HandlerInputContent.Builder |
newBuilder()
Create a builder for content.
|
public static HandlerInputContent.Builder newBuilder()
public java.io.InputStream consumeStream()
consumeBytes() be
called. Users should not close this stream, it is closed externally when the operation method
is complete. Therefore, the InputStream cannot be used after the operation method is complete.public byte[] consumeBytes()
throws java.io.IOException
consumeStream(). Once called, this
cannot be called again nor can consumeStream() be called, even if this method throws an
exception.java.io.IOExceptionpublic java.util.Map<java.lang.String,java.lang.String> getHeaders()