Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/Request.java @ 977:d35b0a3a7a4a
remove __currentConnection
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 16 Oct 2016 01:31:05 -0600 |
parents | 5ee36654b383 |
children | af8742d31bca |
comparison
equal
deleted
inserted
replaced
976:0697c1219e70 | 977:d35b0a3a7a4a |
---|---|
130 | 130 |
131 private static final String __ASYNC_FWD = "org.eclipse.asyncfwd"; | 131 private static final String __ASYNC_FWD = "org.eclipse.asyncfwd"; |
132 private static final Collection __defaultLocale = Collections.singleton(Locale.getDefault()); | 132 private static final Collection __defaultLocale = Collections.singleton(Locale.getDefault()); |
133 private static final int __NONE = 0, _STREAM = 1, __READER = 2; | 133 private static final int __NONE = 0, _STREAM = 1, __READER = 2; |
134 | 134 |
135 | |
136 public static Request getRequest(HttpServletRequest request) | |
137 { | |
138 if (request instanceof Request) | |
139 return (Request)request; | |
140 | |
141 return AbstractHttpConnection.getCurrentConnection().getRequest(); | |
142 } | |
143 private volatile Attributes _attributes; | 135 private volatile Attributes _attributes; |
144 private MultiMap<String> _baseParameters; | 136 private MultiMap<String> _baseParameters; |
145 private String _characterEncoding; | 137 private String _characterEncoding; |
146 protected AbstractHttpConnection _connection; | 138 protected AbstractHttpConnection _connection; |
147 private ContextHandler.Context _context; | 139 private ContextHandler.Context _context; |