Skip to content

Commit b421e4e

Browse files
Feature2.4.6 (#276)
* recognize LocalDate as JAX-RS parameter type * recognize LocalDate as JAX-RS parameter type
1 parent aaeeea2 commit b421e4e

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>org.summerboot</groupId>
66
<artifactId>jexpress</artifactId>
7-
<version>2.4.5</version>
7+
<version>2.4.6</version>
88
<packaging>jar</packaging>
99
<name>Summer Boot jExpress</name>
1010
<description>Summer Boot jExpress focuses on solving non-functional and operational maintainability requirements,
@@ -200,7 +200,7 @@
200200
<netty-tcnative.version>2.0.65.Final</netty-tcnative.version>
201201
<!-- gRPC and protobuf -->
202202
<grpc.version>1.63.0</grpc.version>
203-
<guava.version>33.1.0-jre</guava.version>
203+
<guava.version>33.2.0-jre</guava.version>
204204
<protobuf.version>4.26.1</protobuf.version>
205205
<!-- Web JAX-RS -->
206206
<swagger.core.version>2.2.21</swagger.core.version>
@@ -210,12 +210,12 @@
210210
<!-- MIME-Type -->
211211
<tika.version>2.9.2</tika.version>
212212
<!-- JAX-RS -->
213-
<rs-api.version>3.1.0</rs-api.version>
213+
<rs-api.version>4.0.0</rs-api.version>
214214
<jakarta.annotation.version>3.0.0</jakarta.annotation.version>
215215
<reflections.version>0.10.2</reflections.version>
216216

217217
<!-- JSON/XML/Bean Validation -->
218-
<jackson.version>2.17.0</jackson.version>
218+
<jackson.version>2.17.1</jackson.version>
219219
<!-- Bean Validation -->
220220
<hibernate-validator.version>8.0.1.Final</hibernate-validator.version>
221221
<jakarta.el.version>6.0.0</jakarta.el.version>
@@ -243,12 +243,12 @@
243243
<openhtml.version>1.0.10</openhtml.version>
244244
<batik-transcoder.version>1.17</batik-transcoder.version>
245245
<!-- PDF - iText -->
246-
<itext7-core.version>8.0.3</itext7-core.version>
247-
<itext7-html2pdf.version>5.0.3</itext7-html2pdf.version>
246+
<itext7-core.version>8.0.4</itext7-core.version>
247+
<itext7-html2pdf.version>5.0.4</itext7-html2pdf.version>
248248

249249
<!-- Testing -->
250-
<testng.version>7.10.1</testng.version>
251-
<jdbc.version>8.3.0</jdbc.version>
250+
<testng.version>7.10.2</testng.version>
251+
<jdbc.version>8.4.0</jdbc.version>
252252
</properties>
253253

254254
<dependencies>

src/main/java/org/summerboot/jexpress/boot/BootConstant.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public interface BootConstant {
2525
String APP_ID = String.format("%06d", new Random().nextInt(999999));
2626

2727
//version
28-
String VERSION = "SummerBoot.jExpress 2.4.5";
28+
String VERSION = "SummerBoot.jExpress 2.4.6";
2929
String JEXPRESS_PACKAGE_NAME = "org.summerboot.jexpress";
3030

3131
String DEFAULT_ADMIN_MM = "changeit";

src/main/java/org/summerboot/jexpress/boot/instrumentation/BootHealthInspectorImpl.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
import com.google.inject.Singleton;
1919
import jakarta.annotation.Nonnull;
20-
import jakarta.annotation.Nullable;
21-
import org.apache.logging.log4j.Logger;
2220
import org.summerboot.jexpress.boot.BootConstant;
2321
import org.summerboot.jexpress.nio.server.domain.Err;
2422
import org.summerboot.jexpress.nio.server.domain.ServiceError;
@@ -38,12 +36,12 @@ public class BootHealthInspectorImpl implements HealthInspector {
3836
@Override
3937
public List<Err> ping(Object... args) {
4038
ServiceError error = new ServiceError(BootConstant.APP_ID + "- ping");
41-
healthCheck(error, null);
39+
healthCheck(error, args);
4240
List<Err> errors = error.getErrors();
4341
return errors;
4442
}
4543

46-
protected void healthCheck(@Nonnull ServiceError error, @Nullable Logger callerLog) {
44+
protected void healthCheck(@Nonnull ServiceError error, Object... args) {
4745
}
4846

4947
}

src/main/java/org/summerboot/jexpress/nio/server/ws/rs/BootController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,11 @@ protected String getVersion() {
211211
@Deamon
212212
//@CaptureTransaction("admin.inspect")
213213
public void inspect(@Parameter(hidden = true) final ServiceContext context) {
214-
//HealthInspector healthInspector = getHealthInspector();
215214
if (healthInspector == null) {
216215
context.error(new Err(BootErrorCode.ACCESS_BASE, null, null, null, "HealthInspector not provided")).status(HttpResponseStatus.NOT_IMPLEMENTED);
217216
return;
218217
}
219-
List<Err> error = healthInspector.ping(true);
218+
List<Err> error = healthInspector.ping();
220219
if (error == null || error.isEmpty()) {
221220
context.txt("inspection passed").errors(null).status(HttpResponseStatus.OK);
222221
} else {

src/main/java/org/summerboot/jexpress/util/ReflectionUtil.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import java.net.URL;
4343
import java.nio.file.Path;
4444
import java.security.GeneralSecurityException;
45+
import java.time.LocalDate;
4546
import java.time.LocalDateTime;
4647
import java.time.OffsetDateTime;
4748
import java.time.ZonedDateTime;
@@ -428,6 +429,8 @@ public static Object toStandardJavaType(String value, final Class targetClass, f
428429
return ZonedDateTime.parse(value, DateTimeFormatter.ISO_ZONED_DATE_TIME);
429430
} else if (targetClass.equals(LocalDateTime.class)) {
430431
return LocalDateTime.parse(value, DateTimeFormatter.ISO_DATE_TIME);
432+
} else if (targetClass.equals(LocalDate.class)) {
433+
return LocalDate.parse(value, DateTimeFormatter.ISO_LOCAL_DATE);
431434
} else if (targetClass.equals(TimeZone.class)) {
432435
if (value.equals("default")) {
433436
return TimeZone.getDefault();

0 commit comments

Comments
 (0)