public class HTTPResponseParser extends HTTPParser
Modifier and Type | Field and Description |
---|---|
protected int |
_httpCode |
protected java.lang.String |
_httpMsg |
protected java.lang.String |
_httpType |
_chunked, _connection, _contentLength, _contentType, _host, _reader, _server
Constructor and Description |
---|
HTTPResponseParser(java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
int |
getStatusCode() |
boolean |
isOK() |
void |
parseHead(java.lang.String line) |
getContentLength, getContentType, getReader, getRest, isChunked, parse, setInputStream
protected java.lang.String _httpType
protected int _httpCode
protected java.lang.String _httpMsg
public HTTPResponseParser(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public java.lang.String getMessage()
public int getStatusCode()
public boolean isOK()
public void parseHead(java.lang.String line) throws java.io.IOException
parseHead
in class HTTPParser
java.io.IOException