Release all object references, and initialize instance variables, in preparation for reuse of this object.
()
| 194 | * Release all object references, and initialize instance variables, in preparation for reuse of this object. |
| 195 | */ |
| 196 | public void recycle() { |
| 197 | |
| 198 | outputBuffer.recycle(); |
| 199 | usingOutputStream = false; |
| 200 | usingWriter = false; |
| 201 | appCommitted = false; |
| 202 | included = false; |
| 203 | isCharacterEncodingSet = false; |
| 204 | |
| 205 | applicationResponse = null; |
| 206 | if (getRequest().getDiscardFacades()) { |
| 207 | if (facade != null) { |
| 208 | facade.clear(); |
| 209 | facade = null; |
| 210 | } |
| 211 | if (outputStream != null) { |
| 212 | outputStream.clear(); |
| 213 | outputStream = null; |
| 214 | } |
| 215 | if (writer != null) { |
| 216 | writer.clear(); |
| 217 | writer = null; |
| 218 | } |
| 219 | } else if (writer != null) { |
| 220 | writer.recycle(); |
| 221 | } |
| 222 | |
| 223 | } |
| 224 | |
| 225 | |
| 226 | // ------------------------------------------------------- Response Methods |
no test coverage detected