1 Star 0 Fork 2

东东dong/Java-Notes

forked from cxylk/Java-Notes 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CacheResponse.java 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
cxylk 提交于 2021-01-21 16:33 +08:00 . :rainbow:idea构建jdk源码
/*
* Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.net;
import java.io.InputStream;
import java.util.Map;
import java.util.List;
import java.io.IOException;
/**
* Represent channels for retrieving resources from the
* ResponseCache. Instances of such a class provide an
* InputStream that returns the entity body, and also a
* getHeaders() method which returns the associated response headers.
*
* @author Yingxian Wang
* @since 1.5
*/
public abstract class CacheResponse {
/**
* Returns the response headers as a Map.
*
* @return An immutable Map from response header field names to
* lists of field values. The status line has null as its
* field name.
* @throws IOException if an I/O error occurs
* while getting the response headers
*/
public abstract Map<String, List<String>> getHeaders() throws IOException;
/**
* Returns the response body as an InputStream.
*
* @return an InputStream from which the response body can
* be accessed
* @throws IOException if an I/O error occurs while
* getting the response body
*/
public abstract InputStream getBody() throws IOException;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dsfas/Java-Notes.git
git@gitee.com:dsfas/Java-Notes.git
dsfas
Java-Notes
Java-Notes
main

搜索帮助