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
IOException
BadRequestException
public static byte[][] loadFields(byte[] buffer, int max) throws BadRequestException
BadRequestException
public byte[] concatBytes(byte[][] fields, boolean addCrLf)
public static HttpResponseMessage loadResponse(byte[] buffer) throws BadRequestException
BadRequestException
public static HttpResponseMessage loadResponse(InputStream in) throws BadRequestException, IOException
BadRequestException
IOException
public static HttpRequestMessage loadRequest(byte[] buffer) throws BadRequestException
BadRequestException
public static HttpRequestMessage loadRequest(InputStream in) throws BadRequestException, IOException
BadRequestException
IOException
Copyright © 2005–2015 IIPC. All rights reserved.