public class DefaultResponse extends AbstractResponse implements Response
charset
Constructor and Description |
---|
DefaultResponse(org.apache.commons.httpclient.HttpMethodBase method,
org.apache.commons.httpclient.HttpState state) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Cookie[] |
getCookies() |
Header[] |
getHeaders() |
protected InputStream |
getSourceInputStream()
得到原始流
|
StatusLine |
getStatusLine() |
protected Response |
self() |
bytes, charset, charset, getCookie, getGzipInputStream, getHeader, isGzip, stream, text
public DefaultResponse(org.apache.commons.httpclient.HttpMethodBase method, org.apache.commons.httpclient.HttpState state)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public StatusLine getStatusLine()
getStatusLine
in interface Response
public Header[] getHeaders()
getHeaders
in interface Response
public Cookie[] getCookies()
getCookies
in interface Response
protected InputStream getSourceInputStream() throws IOException
AbstractResponse
getSourceInputStream
in class AbstractResponse
IOException
protected Response self()
self
in class AbstractResponse
Copyright © 2006–2018 TinyGroup. All rights reserved.