|
21 | 21 | import jakarta.servlet.http.HttpServletResponse; |
22 | 22 | import jakarta.servlet.http.HttpSession; |
23 | 23 | import org.noear.solon.Utils; |
24 | | -import org.noear.solon.boot.ServerProps; |
25 | | -import org.noear.solon.boot.web.*; |
| 24 | +import org.noear.solon.server.ServerProps; |
| 25 | +import org.noear.solon.server.handle.AsyncContextState; |
| 26 | +import org.noear.solon.server.handle.ContextBase; |
| 27 | +import org.noear.solon.server.handle.HeaderNames; |
| 28 | +import org.noear.solon.server.http.*; |
26 | 29 | import org.noear.solon.core.handle.ContextAsyncListener; |
27 | 30 | import org.noear.solon.core.handle.UploadedFile; |
28 | 31 | import org.noear.solon.core.util.IoUtil; |
29 | 32 | import org.noear.solon.core.util.MultiMap; |
| 33 | +import org.noear.solon.server.util.DecodeUtils; |
| 34 | +import org.noear.solon.server.util.RedirectUtils; |
30 | 35 | import org.slf4j.Logger; |
31 | 36 | import org.slf4j.LoggerFactory; |
32 | 37 |
|
|
47 | 52 | * @since 1.2 |
48 | 53 | * @since 2.9 |
49 | 54 | * */ |
50 | | -public class SolonServletContext extends WebContextBase { |
| 55 | +public class SolonServletContext extends ContextBase { |
51 | 56 | static final Logger log = LoggerFactory.getLogger(SolonServletContext.class); |
52 | 57 |
|
53 | 58 | private HttpServletRequest _request; |
@@ -232,7 +237,7 @@ public MultiMap<String> cookieMap() { |
232 | 237 | _cookieMap = new MultiMap<>(false); |
233 | 238 |
|
234 | 239 | //_request.cookies() 可能不支持多个同名 cookie |
235 | | - DecodeUtils.decodeCookies(this, header(Constants.HEADER_COOKIE)); |
| 240 | + DecodeUtils.decodeCookies(this, header(HeaderNames.HEADER_COOKIE)); |
236 | 241 | } |
237 | 242 |
|
238 | 243 | return _cookieMap; |
@@ -355,7 +360,7 @@ public void cookieSet(org.noear.solon.core.handle.Cookie cookie) { |
355 | 360 | public void redirect(String url, int code) { |
356 | 361 | url = RedirectUtils.getRedirectPath(url); |
357 | 362 |
|
358 | | - headerSet(Constants.HEADER_LOCATION, url); |
| 363 | + headerSet(HeaderNames.HEADER_LOCATION, url); |
359 | 364 | statusDoSet(code); |
360 | 365 | } |
361 | 366 |
|
|
0 commit comments