public class HttpMultiBodyDecoder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpMultiBodyDecoder.Header |
static interface |
HttpMultiBodyDecoder.MultiBodyHeaderKey
【
Content-Disposition: form-data; name="uploadFile"; filename=""
Content-Type: application/octet-stream
】
【
Content-Disposition: form-data; name="end"
】
|
static class |
HttpMultiBodyDecoder.Step |
| Constructor and Description |
|---|
HttpMultiBodyDecoder() |
| Modifier and Type | Method and Description |
|---|---|
static void |
decode(HttpRequest request,
RequestLine firstLine,
byte[] bodyBytes,
String initboundary,
ChannelContext channelContext,
HttpConfig httpConfig) |
static HttpMultiBodyDecoder.Step |
parseBody(HttpMultiBodyDecoder.Header header,
HttpRequest request,
ByteBuffer buffer,
String boundary,
String endBoundary,
ChannelContext channelContext,
HttpConfig httpConfig) |
static void |
parseHeader(List<String> lines,
HttpMultiBodyDecoder.Header header,
ChannelContext channelContext)
【
Content-Disposition: form-data; name="uploadFile"; filename=""
Content-Type: application/octet-stream
】
【
Content-Disposition: form-data; name="end"
】
|
public static void decode(HttpRequest request, RequestLine firstLine, byte[] bodyBytes, String initboundary, ChannelContext channelContext, HttpConfig httpConfig) throws TioDecodeException
request - firstLine - bodyBytes - initboundary - channelContext - httpConfig - TioDecodeExceptionpublic static HttpMultiBodyDecoder.Step parseBody(HttpMultiBodyDecoder.Header header, HttpRequest request, ByteBuffer buffer, String boundary, String endBoundary, ChannelContext channelContext, HttpConfig httpConfig) throws UnsupportedEncodingException, LengthOverflowException, TioDecodeException
header - request - buffer - boundary - endBoundary - channelContext - httpConfig - UnsupportedEncodingExceptionLengthOverflowExceptionTioDecodeExceptionpublic static void parseHeader(List<String> lines, HttpMultiBodyDecoder.Header header, ChannelContext channelContext) throws TioDecodeException
lines - header - TioDecodeExceptionCopyright © 2021. All rights reserved.