Compare commits
No commits in common. "ce95b2626ba9c745fdeb279b3d1d6201f58221b2" and "e47e30d602ed0f7017fd3f248167d126cea8aacd" have entirely different histories.
ce95b2626b
...
e47e30d602
@ -24,17 +24,6 @@ import java.time.format.DateTimeParseException;
|
|||||||
*/
|
*/
|
||||||
public class InstantTypeAdapter implements JsonSerializer<Instant>, JsonDeserializer<Instant> {
|
public class InstantTypeAdapter implements JsonSerializer<Instant>, JsonDeserializer<Instant> {
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a new {@code InstantTypeAdapter} instance.
|
|
||||||
* <p>
|
|
||||||
* This is a default, no-argument constructor for the {@link InstantTypeAdapter} class,
|
|
||||||
* which provides custom (de)serialization support for {@link Instant} objects in
|
|
||||||
* accordance with the ISO-8601 standard.
|
|
||||||
*/
|
|
||||||
public InstantTypeAdapter() {
|
|
||||||
// Default constructor
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serializes an {@link Instant} object into its ISO-8601 string representation as a {@link JsonElement}.
|
* Serializes an {@link Instant} object into its ISO-8601 string representation as a {@link JsonElement}.
|
||||||
*
|
*
|
||||||
|
|||||||
@ -21,6 +21,7 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
@Builder(builderClassName = "ConfigurationBuilder")
|
@Builder(builderClassName = "ConfigurationBuilder")
|
||||||
public class JsonConfiguration {
|
public class JsonConfiguration {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name of the application.
|
* The name of the application.
|
||||||
* This variable is used to identify the application and is incorporated into various configurations,
|
* This variable is used to identify the application and is incorporated into various configurations,
|
||||||
@ -66,21 +67,6 @@ public class JsonConfiguration {
|
|||||||
*/
|
*/
|
||||||
private final Gson gson;
|
private final Gson gson;
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a new {@code JsonConfiguration} instance with the specified parameters.
|
|
||||||
*
|
|
||||||
* @param appName the name of the application
|
|
||||||
* @param homeDir the home directory path for the application
|
|
||||||
* @param settings a map containing configuration settings as key-value pairs
|
|
||||||
* @param gson the Gson instance used for JSON serialization and deserialization
|
|
||||||
*/
|
|
||||||
public JsonConfiguration(String appName, String homeDir, Map<String, String> settings, Gson gson) {
|
|
||||||
this.appName = appName;
|
|
||||||
this.homeDir = homeDir;
|
|
||||||
this.settings = settings;
|
|
||||||
this.gson = gson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores a key-value pair into the configuration settings.
|
* Stores a key-value pair into the configuration settings.
|
||||||
* The value is serialized into a JSON string before being stored.
|
* The value is serialized into a JSON string before being stored.
|
||||||
@ -220,18 +206,6 @@ public class JsonConfiguration {
|
|||||||
*/
|
*/
|
||||||
private String homeDir = System.getProperty("user.home");
|
private String homeDir = System.getProperty("user.home");
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor for the {@code JsonConfigurationBuilder} class.
|
|
||||||
* Initializes a new instance of the {@code JsonConfigurationBuilder}.
|
|
||||||
* This constructor allows creation of a builder used for configuring
|
|
||||||
* {@code JsonConfiguration} instances, enabling the specification of
|
|
||||||
* application-specific settings such as the application name, home directory,
|
|
||||||
* and custom Gson adapters.
|
|
||||||
*/
|
|
||||||
public JsonConfigurationBuilder() {
|
|
||||||
// Default constructor
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the application name to be used in the configuration.
|
* Sets the application name to be used in the configuration.
|
||||||
*
|
*
|
||||||
|
|||||||
@ -45,8 +45,6 @@ public class ImapAccount {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the server address associated with this IMAP
|
* Retrieves the server address associated with this IMAP
|
||||||
*
|
|
||||||
* @return the server address as a String.
|
|
||||||
*/
|
*/
|
||||||
public String getServer() {
|
public String getServer() {
|
||||||
return server;
|
return server;
|
||||||
|
|||||||
4
pom.xml
4
pom.xml
@ -23,12 +23,12 @@
|
|||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>21</java.version>
|
<java.version>25</java.version>
|
||||||
<required.maven.version>3.8.6</required.maven.version>
|
<required.maven.version>3.8.6</required.maven.version>
|
||||||
|
|
||||||
<!-- Dependency versions -->
|
<!-- Dependency versions -->
|
||||||
<jakarta-inject-api>2.0.1</jakarta-inject-api>
|
<jakarta-inject-api>2.0.1</jakarta-inject-api>
|
||||||
<javafx.version>21.0.7</javafx.version>
|
<javafx.version>25.0.1</javafx.version>
|
||||||
<jetbrains.annotations.version>26.0.2</jetbrains.annotations.version>
|
<jetbrains.annotations.version>26.0.2</jetbrains.annotations.version>
|
||||||
<junit.version>6.0.1</junit.version>
|
<junit.version>6.0.1</junit.version>
|
||||||
<lombok.version>1.18.42</lombok.version>
|
<lombok.version>1.18.42</lombok.version>
|
||||||
|
|||||||
@ -11,17 +11,6 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public class GlobalRouteLogging {
|
public class GlobalRouteLogging {
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a new {@code GlobalRouteLogging} instance.
|
|
||||||
* <p>
|
|
||||||
* This is a default, no-argument constructor for the {@link GlobalRouteLogging} class,
|
|
||||||
* which provides global logging functionality for all incoming routes in a Quarkus
|
|
||||||
* application using Vert.x Web.
|
|
||||||
*/
|
|
||||||
public GlobalRouteLogging() {
|
|
||||||
// Default constructor
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs all details of the incoming route request, including the method and URI, as well as all headers present in the request.
|
* Logs all details of the incoming route request, including the method and URI, as well as all headers present in the request.
|
||||||
* This method is designed to be used within a Vert.x Web application to log details for every incoming route globally.
|
* This method is designed to be used within a Vert.x Web application to log details for every incoming route globally.
|
||||||
|
|||||||
@ -22,16 +22,6 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
@Priority(Priorities.USER)
|
@Priority(Priorities.USER)
|
||||||
public class IncomingRequestFilter implements ContainerRequestFilter {
|
public class IncomingRequestFilter implements ContainerRequestFilter {
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a new {@code IncomingRequestFilter} instance.
|
|
||||||
* <p>
|
|
||||||
* This is a default, no-argument constructor for the {@link IncomingRequestFilter} class,
|
|
||||||
* which provides logging functionality for incoming HTTP requests in a JAX-RS application.
|
|
||||||
*/
|
|
||||||
public IncomingRequestFilter() {
|
|
||||||
// Default constructor
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs the details of incoming HTTP requests before they are processed by the application.
|
* Logs the details of incoming HTTP requests before they are processed by the application.
|
||||||
* This includes logging the request method and URI, as well as all headers present in the request.
|
* This includes logging the request method and URI, as well as all headers present in the request.
|
||||||
|
|||||||
@ -11,17 +11,6 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
@Provider
|
@Provider
|
||||||
public class LoggingRequestFilter implements ClientRequestFilter {
|
public class LoggingRequestFilter implements ClientRequestFilter {
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a new {@code LoggingRequestFilter} instance.
|
|
||||||
* <p>
|
|
||||||
* This is a default, no-argument constructor for the {@link LoggingRequestFilter} class,
|
|
||||||
* which provides logging functionality for outgoing HTTP requests in a JAX-RS client application.
|
|
||||||
*/
|
|
||||||
public LoggingRequestFilter() {
|
|
||||||
// Default constructor
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs the details of HTTP requests before they are sent.
|
* Logs the details of HTTP requests before they are sent.
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user