HttpServletResponse

Web服务器收到客户端的http请求,会针对每一次请求,分别创建一个用于代表请求的request对象、和代表响应的response对象。
request和response对象即然代表请求和响应,那我们要获取客户机提交过来的数据,只需要找request对象就行了。要向客户机输出数据,只需要找response对象就行了。

一、HttpServletResponse对象介绍

  aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAABBQAAAFqCAIAAAAlbZ7dAAAgAElEQVR4nO3d0ZHrtpIAUMblHCaNWw7CHy8AfziEjeF9OIrNwElsBtqPa485BNBogJBEac6pKZdEgo0GSGrQGul6uwEAACRsz04AAAB4DYoHAAAgRfEAAACkKB4AAIAUxQMAAJCieAAAAFIUDwAAQIriAQAASFE8AAAAKf3iYdu2bXv/GmPbuVPwj4+P5ZEBAOBh3r8qGDJUPIw2bhUPrTjfpGwDAOBVWJt+oXgAAICWaG3a+iRPuf3z6e+//x7sPWz59ddfhz4stH0V5/n5SaH9rjjPW2O9Ho8on/whmSDO6HYAAHiA4e88lGvZ6ce//vprGT+TRubxbbfUzsTJbAmmIpn/tqthunGq2+P8AQDgfia/MF2++Z1ZlGcW991Mgshl/PKTQnPFQ5B/PvnPZBQPAAC8opni4XNLqxgYbT+WcXoFXy0egjyr0eL4igcAAL6PZR9bujUW5a32oxVFN0411NriIbPoDyIrHgAAeGnzf3nolgpB+0/7Ly4fGsdBWrsy7ecGFWcVbCkjJI+KW1bbAwDA/Ux+54FncToAAHiW5jLU29sX5KQAAPBE1qAAAECK4gEAAEhRPAAAACmN4mHb/Pjx4+cJPwDAhbWLB4AH88oDANemeAAuwysPAFyb4gG4DK88AHBtigfgMrzyAMC1KR54e3/+2LZt+/Hns/OgzysPAFxbVDz89ccvW91LrsN+LiFfaBDH+f+ZcH3r8xyndfvx5+3PH8/P6+Hnu5iIf/3yx1/37ft9KB4A4NpSf3n4Z726ZPn11x+/PH419ffC7u9u/xnPC6zp6lMfnJDk9K45C1+ndbflUpP7d06PuHqLCfm31Ht6MfUaFA8AcG2PLx7+/PHwleXf+X92+s7FQ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/>

  HttpServletResponse对象代表服务器的响应。这个对象中封装了向客户端发送数据、发送响应头,发送响应状态码的方法。查看HttpServletResponse的API,可以看到这些相关的方法。

1.1、负责向客户端(浏览器)发送数据的相关方法

  aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzIAAABdCAIAAADxHcRoAAAO0UlEQVR4nO2dPXLruBJGuS7uYbaBdYzzCRhM6qobzRIYvAVM5CpHjlRO7YlcN3PIF0iiKPw0GkBLJK1zynUfBTa6G00S/AaQ/bppmn7//v3r168JGqCGAAAA0Eg3TdNvAAAAAFibkyz7BW1QQwAAAGjkIstWXrbbOdQQAAAAGkGW2UANAQAAoBFkmQ3UEAAAABpBltlADQEAAKCRe8iyw+vX4XbetwGyDAAAABrRyLIv514699K5F/da6v/LuZfu6UMpy8bnl67EviyNyiGoQJYBAABAI3lZdhjfTlLm82Oo0TTfw3NaZn1+uPH7dPz63h+PX9/j4mlpnGVhHBlCkSsFyDIAAABoRLFalhJJWkRZNkuxaTqMH+Op9cs9f8nGeZbG4RCKXClAlm2Bruu8AwAAgB2h+m7ZcW9x1jGnrUb3Pp6O38fX96PB+PzSubfh83t4mvcir2TZsu/0+n7cWDxajs/vZ1n2PYwfw9Mx4pdzb8NnaPzSP7117hJOMPaHELhaDsFP8vOjd/PH7+HptBm6LIimhi382f15/LmR/1LmfDaVlSfFUGYAALA7Cr7yf9oKnDXN+Xtah/GtuyxunUTYYulrIcuCvtdbje/D5/Hwyz1/zacu7cudx8+P/hj02Cgbe0MIzl4NIUhyqdIO4/vw+T08fxyuPZjIsqjKmRv1GshKLcn5hAbrqjRkGQAA7B3Nd8vOAuu4FRhsCC4U2Gy23IW8kmX+ZmLiu2V9VmnNxwpZ5g9hCmXZYgjXSc5K7riYd2dZVqd77ibLbhS3gqgIQ5kBAMC+UH237HpDcN7Iexs+55Wk5W84fg9Pb5d1L3cx9vpO07xFeNq+vP5NzMuvT3bnhbE+vreYMw72NJdngyFcJ7lYPOue3t3TS//83rs39/y2/I3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0PIv8I+NY8sG6MDiZqlJtDqQNHJS5mVZvjRxEKbaF/5cmvMNERvs4rbpihukf9UPhrnjf6L4qbsK+oZvVWs7ofSuDKl/pW9bOOW+qm4/7POld3145Kfi9J67gVkmQ3UUHiwPaK9Ui3Zd4by/aQklafeMtVXMJPH2MVkmT5QtkXjMxulaFoPI4bFlNO49etNf7vWZZgdr+b2y3rW+DeMK38M6ynEar8fUnXIumr3P5/V+KmIW+FQ70cel8az5qy+ntn7Sk5vpyDLbKCGqYmvYj7VuFXaKycXZSwhbmm7vlxz/sq3S7akUzAJZn1moyin0bCxtIyleabs6y5HdX2ysSoCFV3BluulMaiop8ZVKs9sVsr6KynyP+1cljVmqDmrryeyDOqhhhuUZZr2Uj/Vgapl2dxYPdLqSVDgp8oyq9fAreVRyu3WZJnV44wsi7Ygy/Ip7hBkmQ3U0Oo9503cVvM4sqw6uibKsuxFEqGuLNuXZVMi/1vfri3yKCUmhNAmcVMGgn3RNKKJK1Pnv1TMNcY18VPhv+I5vd3zqLyHNw6yzIYHr2F3xmvxzqYm4vBhmxu7GKm4QseiUWR7pQzkJMPcohWIFmQKpj9NINmn0D01cM1go+HC4WjiCvno8wzto/UPPyormQ0qjDcaSHMVshnqx7sclHJ0Rf6F8UbDCQZCZYrqoBxmqX8vQ2F05nGL/KTKUu1fqIOyPRpX/hiOK/y4U5BlNlBDAAFv6lwxEwCALYMss4EaAgjU/Sc+AMCjgSyzgRoCAABAI8gyG6ghAAAANIIss4EaAgAAQCPIMhuoIQAAADSCLLOBGgIAAEAjJ1kGAAAAAOtyWS2DFqghAAAANMImpg3UEAAAABpBltlADQEAAKCR/wMnO+UjOK9lXAAAAABJRU5ErkJggg==" alt="" />

1.2、负责向客户端(浏览器)发送响应头的相关方法

  aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAycAAAC2CAIAAABMGWWFAAAcCElEQVR4nO2dzZnjqBaGics5dBqOZhZedAAdhRcTQ2fgBO6yMtBdVJVHBZzDB0IIy+/71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h/Wuot853R8Eq7/OrjKY7wKm3pPkHaLvKgE74zci4w29PRmjxO+pq3RqZ/6iPIs9FEmRelq/3eqvj55nzzzMzmonf+n8cfTUzYfNxlH3o6O/6XV04i2dirC6+S/WPUq/ouctwNT7E8/4NVak1SJWTObPysvqFG1GXzT99qwesVObxdQZf7+/Sh79ksVVxDVIX9REAdk8e8ZfnNXJQRDnYfV8iKtYYsKPqReNQza/VU7slxWW7a+j0NKpXBddcxzvq8rqt3JWXK/BwdSHwJm4ybBNY+kK4icUizrx2Tt5z+J17Erh13U0HJJHERn/m01VuojrUiv66yS3Jq3fqFz30v76883RsNmoGwcnv9iul1DyZOM3hxRbVQ758eI1SpY4cN6OD6beh7pJVro26XVLc5auJgeauhKvCxPz7NTvpMqKnNLUK+b5nhGovi+y7TtNvdF94VfJ5tFNvbTdP+TEFwnG1DuAqdfdtPsX60amXrQYKR+xWy92B+Zfx1Q8Veg69yy1J5u6OK9eZOu21tPI1A+vu4npZeobPfF1PGr+V+jJxiv3qT62A4Kp9yH8xjpknajkEUs7Z/lh1s2cbc/mcXarxy0Z6e86+ZO9W6L1wsmcFfk6xdr2U4njqQgQ8xR1LR5bpV9OT/f0V+9XLG+9UTEO2fxJ/XF1Mbk+PlZLrGQT48QnxSgkg5PD5ZSIw/x+FSkcCkwdzuB97xBogWMG8EZwHQcEU4fmVHw2h+mpe2iD0eA6jgamDgAAMAmYOgAAwCRg6gAAAJOAqQMAAEwCpg4AADAJ4QkAAABTEP704Pl8dqkLAAAwMbx+BwAAmARMHQAAYBL+D/gMwAuoYqFtAAAAAElFTkSuQmCC" alt="" />

1.3、负责向客户端(浏览器)发送响应状态码的相关方法

  aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAb4AAAAxCAIAAAAqflsHAAAET0lEQVR4nO2c0XWrMAxAPVcGYh5GyBSZ4m3AEmxAP5qeR4wlS8aAaO89/UiMkIXBtzg0TUsY5nl+Pp9XVwEAUCfNAADgJD3DMM/z1SUAAJhIV9/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qhmtYY4I2vtnt3/MvqdAVIMd4LsqM6LfFGUGcg2i6FZpXoezXXU818qDrXNxQN41DUk0VhO/sthkVT587xrOaxtB9xN6q0K8eIOgORPpE2STta8lgKyJLob43zx1X/dpfi1mL8emvbOHjHf9uvHq/0aOm37aCyUreHuR3AbReurvVgV35Xnobj0usRD1A//jNBnQCwparpSwhUE+oEgAzjTe75BCoIdQLAXUCdAABuUCcAgBvUCQDgBnUCALhJMwAAOEnPMMzzfHUJAAAmWLADALhBnQAAbr4AWdWpW2F4mXgAAAAASUVORK5CYII=" alt="" />

1.4、响应状态码的常量

  HttpServletResponse定义了很多状态码的常量(具体可以查看Servlet的API),当需要向客户端发送响应状态码时,可以使用这些常量,避免了直接写数字,常见的状态码对应的常量:

  状态码404对应的常量

  aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAuMAAAAxCAIAAAD/djD+AAAGiklEQVR4nO3cMZbbNhCAYZ5Ld8g1eAofIYWKVKn2CH4pVKRMvU1qtS7y3HhvgBQraSkCM5gBQAmg/u+5kEhwMIQAckz6eQohfHx8vL29haGMmDMAAPCaQggfAAAAXbpUKm+jGTFnAADg9VWpPPnhjtOIOQMAAC8qFQAA0C8qFQAA0C8qFQAA0C8qFQAA0K/tKpXz8XA4nrdoHAKVCgAAr8FTqZyPs1JN6HtrpCJTqQAA8Ao8lcpp1p576HtrpCJTqQAA8AqUSuV8PEzTNE3T4XgO4TRPi29fO6f5FKK9n98X9cV1f7KYuWt8mqfD4SBHvkjmPM3vyz/Z7YnhuLb57Y9zfEgywiq4Mb6eZ7zl97//Sx67ytOeCQAAQ1ArldVLl/sN1xJiPqWbL77nH7csGp+Ph/l0t8n29icuKfTPklsFIB0bFxN//ftrWTRY4iufk8WK9NmeJwAAI1Lf/lwenBziiuFaToTTbKpUro0kd6Hny1Ob8kpF36hLVgBK9XDb8nmIMb6+0V51KZWK1BcAAAORK5Wv9ztflcohfimzfh90LWCW74bW74pW7hqf5s8Pi1dCd5EvlLc/+pb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M85GUhfF173idW3sIvnZPoau0fP2lYzjXrlhzLv+iDm3VTkzKttnt3sPrLlSlyUQ/Eu3wXp7eKVSdmXc9I5eE59KxZVDV5VKstlAlUpNg+bzOTs+ro6aXweoVC5GzLmtR1Yqy79GVF7RXFeiyn6zLb13hUdWKkEYB6Vf7zhLcQryvElGq4nfSaXS6s4t3XGT/Vrmf8PrgDLfklznW7N9lY9l0lZeN7zXz2yE5vN56+u/N44yV4vj3DUIY971R8y5reme1EA5JLk32X65N9uvnq2Uj5T8agF4+70dKOWTHQSlvSuN5LjpX0NqHPTxz45z9pS9ecbRXANiGQdX/hv1a4kpNfbuWg2vno/edUiNTzaf5FGV56sckt0eH66frP187aeW7VpJQ/qqnEI2zzilVbbG9gXnK8VJJm+Mkz19KhW8BOPif2LAQcVXn2dlMjTGDVBQqQCoov8dEVmMHqCjUgEAAP2iUgEAAP2iUgEAAP2iUgEAAP2iUgEAAP26VCoAAAAd+nqmMpYRcwYAAF68/QEAAP2iUgEAAP36HzPoouA470ezAAAAAElFTkSuQmCC" alt="" />

  状态码200对应的常量

  aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnMAAAAyCAIAAAC4Scq5AAAFcElEQVR4nO3bwXmjPBCHcdVFQVTzHVxCqvBha/g6cAN7TAfag50YC81oRggbiff37MHGQoyE4B+TbIgxfn9/f319xa70WDMA4AxC7DOleqwZAHAGj2QFAABNPL+z9qXHmgEAZ8DTYAAAWiJZAQBoiWQFAKAlkhUAgJZIVgAAWtovWW+Xabrc9mgcI8kKADgqT7LeLrOSfvqnW+R6JlkBAMfkSdbrrH2v1D/dItczyQoAOCYlWW+XKYQQQpgutxivc1i8e34Y5mtcfXp/v8jDn8+z4fvS+DqHaZrknh+yNYf5/+W/4nZxUuQe/vvz194PAOCE1GRNHsK+bviJvPmab754X/46u2h8u0zz9WWT7WnwMu0sryW/bbLhauwEAHBa6tPgxxfTaZ1wP/EXr7MpWX8aSV66nh/fiuuTVd+okNI0vn7xtXcIADg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7dOnr0zeuMnoqQ8cXxu12kUP+pe7VsZWVQtlD1BXcnpQ+aPKUMoTiM9diWEpeZZgx3BoKho63bvOP84M6/zm1ZP9N2u3pL+ZiFCGedVE/mOsnqZnr7D21mKbtxx46ROsz2y2MmZJH9Awboj8pthIclOonMgBsDhsWHoGdvUc290+yB4Am9O9CAOBxYNvC47Cb98gjzIJkDwAAAACwB0j2AAAAAAB7gGQPAAAAALAHSPYAAAAAAHuAZA8AAAAAsAfekz0AAAAAAAzN53f2YzGiZwAAAACA9eDXOAAAAAAAe4BkDwAAAACwB/4HZ/P4m6iYDEsAAAAASUVORK5CYII=" alt="" width="950" />

二、HttpServletResponse常见应用——设置响应头控制浏览器的行为

2.1、设置http响应头控制浏览器禁止缓存当前文档内容

1 response.setDateHeader("expries", -1);
2 response.setHeader("Cache-Control", "no-cache");
3 response.setHeader("Pragma", "no-cache");

2.2、设置http响应头控制浏览器定时刷新网页(refresh)

1 response.setHeader("refresh", "5");//设置refresh响应头控制浏览器每隔5秒钟刷新一次

2.3、通过response实现请求重定向

  请求重定向指:一个web资源收到客户端请求后,通知客户端去访问另外一个web资源,这称之为请求重定向。

  应用场景:用户登陆,用户首先访问登录页面,登录成功后,就会跳转到某个页面,这个过程就是一个请求重定向的过程

  实现方式:response.sendRedirect(String location),即调用response对象的sendRedirect方法实现请求重定向
  sendRedirect内部的实现原理:使用response设置302状态码和设置location响应头实现重定向

例如:

HttpServletResponse
 1 package gacl.response.study;
2 import java.io.IOException;
3 import javax.servlet.ServletException;
4 import javax.servlet.http.HttpServlet;
5 import javax.servlet.http.HttpServletRequest;
6 import javax.servlet.http.HttpServletResponse;
7
8 public class ResponseDemo04 extends HttpServlet {
9
10 public void doGet(HttpServletRequest request, HttpServletResponse response)
11 throws ServletException, IOException {
12 /**
13 * 1.调用sendRedirect方法实现请求重定向,
14 * sendRedirect方法内部调用了
15 * response.setHeader("Location", "/JavaWeb_HttpServletResponse_Study_20140615/index.jsp");
16 * response.setStatus(HttpServletResponse.SC_FOUND);//设置302状态码,等同于response.setStatus(302);
17 */
18 response.sendRedirect("/JavaWeb_HttpServletResponse_Study_20140615/index.jsp");
19
20 //2.使用response设置302状态码和设置location响应头实现重定向实现请求重定向
21 //response.setHeader("Location", "/JavaWeb_HttpServletResponse_Study_20140615/index.jsp");
22 //response.setStatus(HttpServletResponse.SC_FOUND);//设置302状态码,等同于response.setStatus(302);
23 }
24
25 public void doPost(HttpServletRequest request, HttpServletResponse response)
26 throws ServletException, IOException {
27 doGet(request, response);
28 }
29 }
HttpServletResponse
上一篇:MySQL优化的奇技淫巧之STRAIGHT_JOIN


下一篇:Python自然语言处理学习——jieba分词