public class HttpDecodeSerializer extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
HttpDecodeSerializer.Step |
| 限定符和类型 | 字段和说明 |
|---|---|
protected static InternalLogger |
LOGGER |
static int |
READCONTENT |
static int |
READHEADERS |
static int |
READLINE |
| 构造器和说明 |
|---|
HttpDecodeSerializer() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
decodeParamsFromUri(String params,
HttpRequest request)
解析请求参数
|
static Map<String,String> |
getKeyValueAttribute(String str) |
static String |
getSubAttribute(String str,
String name) |
static boolean |
readContent(AutoByteBuffer buffer,
HttpRequest request)
读取消息体
|
static boolean |
readContent(AutoByteBuffer buffer,
HttpResponse response)
读取消息体
|
static boolean |
readHeaders(AutoByteBuffer buffer,
HttpRequest request)
读取消息头
|
static boolean |
readHeaders(AutoByteBuffer buffer,
HttpResponse response) |
static boolean |
readMultipart(HttpRequest request)
读取Multipart
|
static boolean |
readRequestLine(AutoByteBuffer autoByteBuffer,
HttpRequest request)
读取请求行
|
static boolean |
readResponseLine(AutoByteBuffer autoByteBuffer,
HttpResponse response) |
protected static final InternalLogger LOGGER
public static final int READLINE
public static final int READHEADERS
public static final int READCONTENT
public static boolean readRequestLine(AutoByteBuffer autoByteBuffer, HttpRequest request) throws HttpException, AutoByteBuffer.ByteBufferException, UnsupportedEncodingException
HttpExceptionAutoByteBuffer.ByteBufferExceptionUnsupportedEncodingExceptionpublic static boolean readResponseLine(AutoByteBuffer autoByteBuffer, HttpResponse response) throws HttpException, AutoByteBuffer.ByteBufferException, UnsupportedEncodingException
public static void decodeParamsFromUri(String params, HttpRequest request) throws UnsupportedEncodingException
public static boolean readHeaders(AutoByteBuffer buffer, HttpRequest request) throws HttpException, AutoByteBuffer.ByteBufferException
HttpExceptionAutoByteBuffer.ByteBufferExceptionpublic static boolean readHeaders(AutoByteBuffer buffer, HttpResponse response) throws HttpException, AutoByteBuffer.ByteBufferException
public static boolean readContent(AutoByteBuffer buffer, HttpRequest request) throws Exception
Exceptionpublic static boolean readContent(AutoByteBuffer buffer, HttpResponse response) throws Exception
Exceptionpublic static boolean readMultipart(HttpRequest request)
Copyright © 2021. All rights reserved.