HTTP响应头信息

/**
 * 类说明:HTTP响应头信息
 * 
 * @author 作者: LiuJunGuang
 * @version 创建时间:2011-10-29 上午09:11:08
 */
public interface ResponseConstant {
	/**
	 * 指示新的资源的位置
	 */
	String LOCATION = "Location";
	/**
	 * 指示服务器的类型
	 */
	String SERVER = "Server";
	/**
	 * 服务器发送的数据采用的编码类型 ; 例如:gzip
	 */
	String CONTENT_ENCODING = "Content-Encoding";
	/**
	 * 正文的长度
	 */
	String CONTENT_LENGTH = "Content-Length";
	/**
	 * 服务发送的文本的语言; 例如:zh-cn
	 */
	String CONTENT_LANGUAGE = "Content-Language";
	/**
	 * 服务器发送的内容的MIME类型 ; 例如:text/html; charset=GB2312
	 */
	String CONTENT_TYPE = "Content-Type";
	/**
	 * 文件的最后修改时间
	 */
	String LAST_MODIFIED = "Last-Modified";
	/**
	 * 指示客户端刷新频率。单位是秒; 例如:1;url=http://www.baidu.com
	 */
	String REFRESH = "Refresh";
	/**
	 * 指示客户端下载文件;例如: attachment; filename=aaa.zip
	 */
	String CONTENT_DISPOSITION = "Content-Disposition";
	/**
	 * 服务器端发送的Cookie; 例如:Set-Cookie:SS=Q0=5Lb_nQ; path=/search
	 */
	String SET_COOKIE = "Set-Cookie";
	/**
	 * 页面存活时间; 无缓存一般是0或-1,单位是毫秒(时间是相对于1970-01-01 00:00 00),
	 * 例如存活一天:System.System.currentTimeMillis()+24*60*60*1000
	 */
	String EXPIRES = "Expires";
	/**
	 * Http1.1 无缓存; 例如:no-cache
	 */
	String CACHE_CONTROL = "Cache-Control";
	/**
	 * Http1.0 无缓存; 例如:no-cache
	 */
	String PRAGMA = "Pragma";
	/**
	 * 保持与服务器的连接; 例如: close/Keep-Alive
	 */
	String CONNECTION = "Connection";
	/**
	 * 日期
	 */
	String DATE = "Date";
}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值