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.