public class HttpRespImpl extends Object implements HttpResp
Constructor and Description |
---|
HttpRespImpl(String response,
int code,
String reasonPhrase) |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
响应码
|
String |
getReasonPhrase()
响应码说明
|
String |
getResponse()
相应数据
|
void |
setCode(int code) |
void |
setReasonPhrase(String reasonPhrase) |
void |
setResponse(String response) |
String |
toString() |
public int getCode()
HttpResp
public void setCode(int code)
public String getResponse()
HttpResp
getResponse
in interface HttpResp
public void setResponse(String response)
public String getReasonPhrase()
HttpResp
getReasonPhrase
in interface HttpResp
public void setReasonPhrase(String reasonPhrase)
Copyright © 2020. All rights reserved.