Skip to content

Commit af8c0b6

Browse files
committed
转移 solon-web-servlet-jakarta,solon.web.servlet.jakarta 到 solon-jakarta 仓库
1 parent 4d53bf5 commit af8c0b6

File tree

18 files changed

+84
-32
lines changed

18 files changed

+84
-32
lines changed

__release/solon-jakarta-bundle1/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626

2727
<module>../../solon-jakarta-projects/solon-logging/solon-logging-logback-jakarta</module>
2828

29+
<module>../../solon-jakarta-projects/solon-render/solon-view-jsp-jakarta</module>
30+
31+
<module>../../solon-jakarta-projects/solon-web/solon-web-servlet-jakarta</module>
32+
2933
<module>../../solon-jakarta-projects/solon-web/solon-web-webservices-jakarta</module>
34+
35+
<module>../../solon-jakarta-projects/solon-web_old/solon.web.servlet.jakarta</module>
3036
</modules>
3137
</project>

pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,5 @@
2626
<module>solon-jakarta-projects/solon-boot/solon-boot-undertow-add-jsp-jakarta</module>
2727
<module>solon-jakarta-projects/solon-boot/solon-boot-undertow-jakarta</module>
2828

29-
<module>solon-jakarta-projects/solon-render/solon-view-jsp-jakarta</module>
30-
31-
<module>solon-jakarta-projects/solon-web/solon-web-servlet-jakarta</module>
32-
3329
</modules>
3430
</project>

solon-jakarta-projects/solon-boot/solon-boot-jetty-jakarta/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
<dependencies>
2828
<dependency>
2929
<groupId>org.noear</groupId>
30-
<artifactId>solon.boot</artifactId>
30+
<artifactId>solon-boot</artifactId>
3131
</dependency>
3232

3333
<dependency>
3434
<groupId>org.noear</groupId>
35-
<artifactId>solon.net</artifactId>
35+
<artifactId>solon-net</artifactId>
3636
</dependency>
3737

3838
<dependency>

solon-jakarta-projects/solon-render/solon-view-jsp-jakarta/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
<dependencies>
2424
<dependency>
2525
<groupId>org.noear</groupId>
26-
<artifactId>solon.view</artifactId>
26+
<artifactId>solon-view</artifactId>
2727
</dependency>
2828

2929
<dependency>
3030
<groupId>org.noear</groupId>
31-
<artifactId>solon.auth</artifactId>
31+
<artifactId>solon-security-auth</artifactId>
3232
<scope>provided</scope>
3333
</dependency>
3434

solon-jakarta-projects/solon-web/solon-web-servlet-jakarta/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
<dependencies>
2323
<dependency>
2424
<groupId>org.noear</groupId>
25-
<artifactId>solon.boot</artifactId>
25+
<artifactId>solon-boot</artifactId>
2626
</dependency>
2727

2828
<dependency>
2929
<groupId>org.noear</groupId>
30-
<artifactId>solon.net</artifactId>
30+
<artifactId>solon-net</artifactId>
3131
</dependency>
3232

3333
<dependency>

solon-jakarta-projects/solon-web/solon-web-servlet-jakarta/src/main/java/org/noear/solon/web/servlet/AsyncListenerWrap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 noear.org and authors
2+
* Copyright 2017-2025 noear.org and authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

solon-jakarta-projects/solon-web/solon-web-servlet-jakarta/src/main/java/org/noear/solon/web/servlet/MultipartUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 noear.org and authors
2+
* Copyright 2017-2025 noear.org and authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

solon-jakarta-projects/solon-web/solon-web-servlet-jakarta/src/main/java/org/noear/solon/web/servlet/SolonServletContext.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 noear.org and authors
2+
* Copyright 2017-2025 noear.org and authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
1919
import jakarta.servlet.http.Cookie;
2020
import jakarta.servlet.http.HttpServletRequest;
2121
import jakarta.servlet.http.HttpServletResponse;
22+
import jakarta.servlet.http.HttpSession;
2223
import org.noear.solon.Utils;
2324
import org.noear.solon.boot.ServerProps;
2425
import org.noear.solon.boot.web.*;
@@ -86,7 +87,7 @@ public Object pull(Class<?> clz) {
8687
Object tmp = super.pull(clz);
8788

8889
if (tmp == null) {
89-
if (clz.isInstance(_request.getSession())) {
90+
if (HttpSession.class.isAssignableFrom(clz)) {
9091
return _request.getSession();
9192
}
9293
}
@@ -228,7 +229,7 @@ public MultiMap<UploadedFile> fileMap() {
228229
@Override
229230
public MultiMap<String> cookieMap() {
230231
if (_cookieMap == null) {
231-
_cookieMap = new MultiMap<String>();
232+
_cookieMap = new MultiMap<>(false);
232233

233234
//_request.cookies() 可能不支持多个同名 cookie
234235
DecodeUtils.decodeCookies(this, header(Constants.HEADER_COOKIE));

solon-jakarta-projects/solon-web/solon-web-servlet-jakarta/src/main/java/org/noear/solon/web/servlet/SolonServletContextListener.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 noear.org and authors
2+
* Copyright 2017-2025 noear.org and authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,7 +17,6 @@
1717

1818
import jakarta.servlet.*;
1919
import org.noear.solon.Solon;
20-
import org.noear.solon.SolonApp;
2120
import org.noear.solon.Utils;
2221
import org.noear.solon.boot.ServerProps;
2322
import org.noear.solon.core.Constants;
@@ -130,12 +129,8 @@ private void invokeMain(ServletContext sc, String[] strArgs) throws RuntimeExcep
130129
*/
131130
@Override
132131
public void contextDestroyed(ServletContextEvent sce) {
133-
// 1.获取SolonApp
134-
SolonApp app = Solon.app();
135-
136-
// 2.阻塞关闭Solon
137-
if (app.cfg().stopSafe()) {
138-
Solon.stopBlock(false, app.cfg().stopDelay());
132+
if (Solon.cfg().stopSafe()) {
133+
Solon.stopBlock(false, Solon.cfg().stopDelay());
139134
} else {
140135
Solon.stopBlock(false, 0);
141136
}

solon-jakarta-projects/solon-web/solon-web-servlet-jakarta/src/main/java/org/noear/solon/web/servlet/SolonServletFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 noear.org and authors
2+
* Copyright 2017-2025 noear.org and authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -65,7 +65,7 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
6565
//重新设置当前上下文(上面会清掉)
6666
ContextHolder.currentSet(ctx);
6767

68-
if (ctx.getHandled() == false) {
68+
if (ctx.getHandled() == false && ctx.status() == 200) { //说明未处理,且状态未变
6969
//如果未处理,则传递过滤链
7070
filterChain.doFilter(request, response);
7171
}

0 commit comments

Comments
 (0)