public class ResponseMessage
extends java.lang.Object
构造器和说明 |
---|
ResponseMessage() |
限定符和类型 | 方法和说明 |
---|---|
void |
addHeader(java.lang.String key,
java.lang.String value) |
void |
close() |
java.io.InputStream |
getContent() |
long |
getContentLength() |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders() |
RequestMessage |
getRequest() |
okhttp3.Response |
getResponse() |
int |
getStatusCode() |
java.lang.String |
getStringBody() |
void |
setContent(java.io.InputStream content) |
void |
setContentLength(long contentLength) |
void |
setHeaders(java.util.Map<java.lang.String,java.lang.String> headers) |
void |
setRequest(RequestMessage request) |
void |
setResponse(okhttp3.Response response) |
void |
setStatusCode(int statusCode) |
void |
setStringBody(java.lang.String stringBody) |
public int getStatusCode()
public void setStatusCode(int statusCode)
public okhttp3.Response getResponse()
public void setResponse(okhttp3.Response response)
public RequestMessage getRequest()
public void setRequest(RequestMessage request)
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public void setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
public void addHeader(java.lang.String key, java.lang.String value)
public java.io.InputStream getContent()
public void setContent(java.io.InputStream content)
public java.lang.String getStringBody()
public void setStringBody(java.lang.String stringBody)
public long getContentLength()
public void setContentLength(long contentLength)
public void close() throws java.io.IOException
java.io.IOException