public class RequestNameValue extends Object
Constructor and Description |
---|
RequestNameValue(String name,
int target)
请求对象中键值对数据的封装
|
RequestNameValue(String name,
int target,
String partContentType) |
RequestNameValue(String name,
Object value,
int target) |
RequestNameValue(String name,
Object value,
int target,
String partContentType) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
getPartContentType() |
int |
getTarget() |
Object |
getValue() |
boolean |
isInBody() |
boolean |
isInHeader() |
boolean |
isInQuery() |
void |
setName(String name) |
void |
setPartContentType(String partContentType) |
void |
setValue(Object value) |
public RequestNameValue(String name, int target)
name
- 键值字符串target
- 在请求报文中的目标位置public String getName()
public void setName(String name)
public Object getValue()
public void setValue(Object value)
public boolean isInQuery()
public boolean isInBody()
public boolean isInHeader()
public int getTarget()
public String getPartContentType()
public void setPartContentType(String partContentType)
Copyright © 2020. All rights reserved.