public class HttpClientTransport extends Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
contentLength |
(package private) int |
statusCode |
(package private) String |
statusMessage |
Constructor and Description |
---|
HttpClientTransport(Packet packet,
Map<String,List<String>> reqHeaders) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkHTTPS(HttpURLConnection connection) |
(package private) void |
closeOutput() |
int |
getContentLength() |
(package private) String |
getContentType() |
Map<String,List<String>> |
getHeaders() |
(package private) InputStream |
getInput() |
(package private) OutputStream |
getOutput() |
(package private) boolean |
isSecure() |
protected HttpURLConnection |
openConnection(Packet packet) |
protected InputStream |
readResponse() |
protected void |
readResponseCodeAndMessage() |
protected void |
setStatusCode(int statusCode) |
int statusCode
String statusMessage
int contentLength
OutputStream getOutput()
void closeOutput() throws IOException
IOException
@Nullable InputStream getInput()
@Nullable protected InputStream readResponse()
protected void readResponseCodeAndMessage()
protected HttpURLConnection openConnection(Packet packet)
protected boolean checkHTTPS(HttpURLConnection connection)
boolean isSecure()
protected void setStatusCode(int statusCode)
@Nullable String getContentType()
public int getContentLength()
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.