public abstract class AbstractResponse extends Object implements Response
Constructor and Description |
---|
AbstractResponse() |
Modifier and Type | Method and Description |
---|---|
byte[] |
bytes()
得到字节数组
|
Response |
charset(Charset charset)
设置响应编码
|
Response |
charset(String charset)
设置响应编码
|
Cookie |
getCookie(String name) |
protected InputStream |
getGzipInputStream()
通过Gzip包装的流
|
Header |
getHeader(String name) |
protected abstract InputStream |
getSourceInputStream()
得到原始流
|
protected boolean |
isGzip()
判断流是否采用GZIP压缩
|
protected abstract Response |
self() |
InputStream |
stream()
得到流
|
String |
text()
得到文本内容
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCookies, getHeaders, getStatusLine
protected Charset charset
public byte[] bytes()
Response
public InputStream stream()
Response
protected boolean isGzip()
protected InputStream getGzipInputStream() throws IOException
IOException
protected abstract InputStream getSourceInputStream() throws IOException
IOException
protected abstract Response self()
Copyright © 2006–2018 TinyGroup. All rights reserved.