comparison src/org/eclipse/jetty/server/Response.java @ 1015:0114d373748e

remove recycle()
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 24 Oct 2016 01:26:16 -0600
parents 74b9daf2826c
children 4dc1e1a18661
comparison
equal deleted inserted replaced
1014:36fcc157bf5f 1015:0114d373748e
93 private PrintWriter _writer; 93 private PrintWriter _writer;
94 94
95 public Response(AbstractHttpConnection connection) 95 public Response(AbstractHttpConnection connection)
96 { 96 {
97 _connection = connection; 97 _connection = connection;
98 }
99
100
101 void recycle()
102 {
103 _status = SC_OK;
104 _reason = null;
105 _locale = null;
106 _mimeType = null;
107 _cachedMimeType = null;
108 _characterEncoding = null;
109 _explicitEncoding = false;
110 _contentType = null;
111 _writer = null;
112 _outputState = NONE;
113 } 98 }
114 99
115 public void addCookie(HttpCookie cookie) 100 public void addCookie(HttpCookie cookie)
116 { 101 {
117 _connection._responseFields.addSetCookie(cookie); 102 _connection._responseFields.addSetCookie(cookie);