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,
org.tio.core.ChannelContext channelContext) |
static void |
main(String[] args) |
static HttpMultiBodyDecoder.Step |
parseBody(HttpMultiBodyDecoder.Header header,
HttpRequest request,
ByteBuffer buffer,
String boundary,
String endBoundary,
org.tio.core.ChannelContext channelContext) |
static void |
parseHeader(List<String> lines,
HttpMultiBodyDecoder.Header header,
org.tio.core.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, org.tio.core.ChannelContext channelContext) throws org.tio.core.exception.AioDecodeException
org.tio.core.exception.AioDecodeExceptionpublic static void main(String[] args) throws UnsupportedEncodingException, org.tio.core.exception.LengthOverflowException
args - UnsupportedEncodingExceptionorg.tio.core.exception.LengthOverflowExceptionpublic static HttpMultiBodyDecoder.Step parseBody(HttpMultiBodyDecoder.Header header, HttpRequest request, ByteBuffer buffer, String boundary, String endBoundary, org.tio.core.ChannelContext channelContext) throws UnsupportedEncodingException, org.tio.core.exception.LengthOverflowException
header - request - buffer - boundary - endBoundary - channelContext - UnsupportedEncodingExceptionorg.tio.core.exception.LengthOverflowExceptionpublic static void parseHeader(List<String> lines, HttpMultiBodyDecoder.Header header, org.tio.core.ChannelContext channelContext) throws org.tio.core.exception.AioDecodeException
lines - header - org.tio.core.exception.AioDecodeExceptionCopyright © 2018. All rights reserved.