public abstract class BaseRequest extends Object implements IHttpRequest
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
body |
protected Map<String,String> |
header |
protected HttpMethod |
method |
protected ResponseType |
responseType |
protected String |
url |
| 构造器和说明 |
|---|
BaseRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBody() |
Map<String,String> |
getHeader() |
HttpMethod |
getMethod() |
ResponseType |
getResponseType() |
String |
getUrl() |
void |
setBody(String body) |
void |
setHeader(Map<String,String> header) |
void |
setMethod(HttpMethod method) |
void |
setResponseType(ResponseType responseType) |
void |
setUrl(String url) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonResponse, onResponse, onResponseprotected HttpMethod method
protected String url
protected String body
protected ResponseType responseType
public HttpMethod getMethod()
getMethod 在接口中 IHttpRequestpublic String getUrl()
getUrl 在接口中 IHttpRequestpublic Map<String,String> getHeader()
getHeader 在接口中 IHttpRequestpublic String getBody()
getBody 在接口中 IHttpRequestpublic ResponseType getResponseType()
getResponseType 在接口中 IHttpRequestpublic void setMethod(HttpMethod method)
public void setUrl(String url)
public void setBody(String body)
public void setResponseType(ResponseType responseType)
Copyright © 2016. All rights reserved.