Package | Description |
---|---|
com.auxiliary.http |
Modifier and Type | Field and Description |
---|---|
protected Entry<MessageType,Object> |
InterfaceInfo.body
接口请求体
|
protected HashMap<Integer,HashSet<MessageType>> |
InterfaceInfo.responseContentTypeMap
接口响应内容格式集合
|
Modifier and Type | Method and Description |
---|---|
MessageType |
MessageType.setCharset(String charset)
该方法用于设置报文类型的编码格式
|
static MessageType |
MessageType.typeOf(String typeName)
该方法用于比对消息类型名称,返回对应的消息类型枚举
|
static MessageType |
MessageType.typeText2Type(String type)
该方法用于将枚举文本转换为消息枚举
|
static MessageType |
MessageType.typeText2Type(String type,
Function<String,String> mapper)
该方法用于将枚举文本转换为消息枚举
|
static MessageType |
MessageType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageType[] |
MessageType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Set<MessageType> |
InterfaceInfo.clearResponseContentType(int status)
该方法用于移除指定状态码的响应体内容
|
Entry<MessageType,Object> |
InterfaceInfo.getBodyContent()
该方法用于返回接口的请求报文与请求报文类型封装类
|
Set<MessageType> |
InterfaceInfo.getResponseContentType(int status)
该方法用于返回接口响应内容的格式枚举,当状态码不存在时,则返回空集合
|
Modifier and Type | Method and Description |
---|---|
void |
InterfaceInfo.addResponseContentTypeSet(int state,
MessageType... messageTypes)
该方法用于添加接口响应体内容的格式
|
static EasyResponse |
EasyHttp.requst(RequestType requestType,
String url,
Map<String,String> requestHead,
MessageType messageType,
Object body)
该方法用于对接口进行快速请求
|
static EasyResponse |
EasyHttp.requst(RequestType requestType,
String url,
MessageType messageType,
Object body)
该方法用于对接口进行快速请求
|
void |
InterfaceInfo.setBodyContent(MessageType messageType,
Object bodyObject)
该方法用于设置请求体以及请求体的类型
|
void |
InterfaceInfo.setFormBody(MessageType messageType,
List<Entry<String,Object>> dataList)
该方法用于设置表单格式类型的请求体
|
Modifier and Type | Method and Description |
---|---|
void |
InterfaceInfo.addResponseContentType(int state,
Collection<MessageType> messageTypes)
该方法用于添加接口响应体内容的格式
|
void |
EasyResponse.setMessageType(int status,
Set<MessageType> messageSet)
该方法用于添加响应体的内容格式
|
Copyright © 2024. All rights reserved.