public class HttpMessage extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
CR |
static byte |
LF |
static byte |
SPACE |
| Constructor and Description |
|---|
HttpMessage() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
concatBytes(byte[][] fields,
boolean addCrLf) |
static byte[][] |
loadFields(byte[] buffer,
int max) |
static HttpRequestMessage |
loadRequest(byte[] buffer) |
static HttpRequestMessage |
loadRequest(InputStream in) |
static HttpResponseMessage |
loadResponse(byte[] buffer) |
static HttpResponseMessage |
loadResponse(InputStream in) |
static byte[] |
readLine(InputStream in,
int max) |
public static byte[] readLine(InputStream in, int max) throws IOException, BadRequestException
IOExceptionBadRequestExceptionpublic static byte[][] loadFields(byte[] buffer,
int max)
throws BadRequestException
BadRequestExceptionpublic byte[] concatBytes(byte[][] fields,
boolean addCrLf)
public static HttpResponseMessage loadResponse(byte[] buffer) throws BadRequestException
BadRequestExceptionpublic static HttpResponseMessage loadResponse(InputStream in) throws BadRequestException, IOException
BadRequestExceptionIOExceptionpublic static HttpRequestMessage loadRequest(byte[] buffer) throws BadRequestException
BadRequestExceptionpublic static HttpRequestMessage loadRequest(InputStream in) throws BadRequestException, IOException
BadRequestExceptionIOExceptionCopyright © 2005–2017 IIPC. All rights reserved.