comparison src/org/eclipse/jetty/server/Response.java @ 977:d35b0a3a7a4a

remove __currentConnection
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 16 Oct 2016 01:31:05 -0600
parents 5ee36654b383
children dbecd7faa1f5
comparison
equal deleted inserted replaced
976:0697c1219e70 977:d35b0a3a7a4a
78 /** 78 /**
79 * If this string is found within the comment of a cookie added with {@link #addCookie(Cookie)}, then the cookie 79 * If this string is found within the comment of a cookie added with {@link #addCookie(Cookie)}, then the cookie
80 * will be set as HTTP ONLY. 80 * will be set as HTTP ONLY.
81 */ 81 */
82 public final static String HTTP_ONLY_COMMENT="__HTTP_ONLY__"; 82 public final static String HTTP_ONLY_COMMENT="__HTTP_ONLY__";
83
84
85 public static Response getResponse(HttpServletResponse response)
86 {
87 if (response instanceof Response)
88 return (Response)response;
89
90 return AbstractHttpConnection.getCurrentConnection().getResponse();
91 }
92 83
93 private final AbstractHttpConnection _connection; 84 private final AbstractHttpConnection _connection;
94 private int _status=SC_OK; 85 private int _status=SC_OK;
95 private String _reason; 86 private String _reason;
96 private Locale _locale; 87 private Locale _locale;