public abstract class CacheResponse extends Object
Constructor and Description |
---|
CacheResponse() |
Modifier and Type | Method and Description |
---|---|
abstract InputStream |
getBody()
将响应体作为InputStream返回。
|
abstract Map<String,List<String>> |
getHeaders()
将响应标头作为Map返回。
|
public abstract Map<String,List<String>> getHeaders() throws IOException
IOException
- 如果在获取响应标头时发生I / O错误
public abstract InputStream getBody() throws IOException
IOException
- 如果在获取响应正文时发生I / O错误
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.