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.AioDecodeException
public static void main(String[] args) throws UnsupportedEncodingException, org.tio.core.exception.LengthOverflowException
args
- UnsupportedEncodingException
org.tio.core.exception.LengthOverflowException
public 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
- UnsupportedEncodingException
org.tio.core.exception.LengthOverflowException
public 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.AioDecodeException
Copyright © 2018. All rights reserved.