public class Response extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addBodyBlock(Block block) |
String |
firstBlock() |
List<String> |
getBlocks() |
Map<byte[],byte[]> |
getBlocksAsMap() |
Map<String,String> |
getBlocksAsStringMap(Charset charset) |
List<Block> |
getBody() |
byte[] |
getBytes() |
Block |
getHead() |
List<String> |
getIds() |
List<IdScore> |
getIdScores() |
Integer |
getIntResult() |
int |
getIntResult(int defaultValue) |
List<KeyValue> |
getKeyValues() |
Long |
getLongResult() |
long |
getLongResult(long defaultValue) |
String |
joinBlocks(char joint) |
void |
setBody(List<Block> body) |
void |
setHead(Block head) |
public Response(Charset charset)
public Block getHead()
public void setHead(Block head)
public void addBodyBlock(Block block)
public String firstBlock()
public String joinBlocks(char joint)
public byte[] getBytes()
public Integer getIntResult()
public int getIntResult(int defaultValue)
public Long getLongResult()
public long getLongResult(long defaultValue)
public Map<byte[],byte[]> getBlocksAsMap()
Copyright © 2020. All rights reserved.