public class HttpConnection extends Object
| Constructor and Description |
|---|
HttpConnection(Stream stream) |
HttpConnection(Stream stream,
boolean useCompression) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getHost() |
ByteBuffer |
getMessageBody() |
int |
getStatusCode() |
String |
getStatusMessage() |
void |
readResponse() |
void |
sendGetRequest(String request) |
public HttpConnection(Stream stream)
public HttpConnection(Stream stream, boolean useCompression)
public void sendGetRequest(String request) throws IOException
IOExceptionpublic String getHost()
public void readResponse()
throws IOException,
DirectoryRequestFailedException
public int getStatusCode()
public String getStatusMessage()
public ByteBuffer getMessageBody()
public void close()
Copyright © 2015. All rights reserved.