diff --git a/src/fr/devinsy/kiss4web/CookieHelper.java b/src/fr/devinsy/kiss4web/CookieHelper.java index bb76a6d..bdf8e94 100644 --- a/src/fr/devinsy/kiss4web/CookieHelper.java +++ b/src/fr/devinsy/kiss4web/CookieHelper.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2006-2023 Christian Pierre MOMON + * Copyright (C) 2006-2024 Christian Pierre MOMON * * This file is part of Kiss4web. * @@ -32,14 +32,14 @@ import jakarta.servlet.http.HttpServletResponse; */ public class CookieHelper { + private static final Logger logger = LoggerFactory.getLogger(CookieHelper.class); + public enum Scope { HTTP_AND_HTTPS, HTTPS_ONLY } - private static final Logger logger = LoggerFactory.getLogger(CookieHelper.class); - /** * Builds the cookie. * diff --git a/src/fr/devinsy/kiss4web/Kiss4web.java b/src/fr/devinsy/kiss4web/Kiss4web.java index 5b33026..954711a 100644 --- a/src/fr/devinsy/kiss4web/Kiss4web.java +++ b/src/fr/devinsy/kiss4web/Kiss4web.java @@ -43,6 +43,8 @@ import fr.devinsy.kiss4web.dispatcher.hooks.XHTMLHook; */ public class Kiss4web { + private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Kiss4web.class); + /** * The Enum Mode. */ @@ -63,8 +65,6 @@ public class Kiss4web private static final Kiss4web instance = new Kiss4web(); } - private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Kiss4web.class); - private BuildInformation buildInformation; private Mode mode; @@ -238,6 +238,8 @@ public class Kiss4web this.mode = mode; } break; + + default: } } diff --git a/src/fr/devinsy/kiss4web/Redirector.java b/src/fr/devinsy/kiss4web/Redirector.java index 661422b..41ed75b 100644 --- a/src/fr/devinsy/kiss4web/Redirector.java +++ b/src/fr/devinsy/kiss4web/Redirector.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2006-2023 Christian Pierre MOMON + * Copyright (C) 2006-2024 Christian Pierre MOMON * * This file is part of Kiss4web. * @@ -28,6 +28,8 @@ import jakarta.servlet.http.HttpServletResponse; */ public class Redirector { + private static final Logger logger = LoggerFactory.getLogger(Redirector.class); + public enum Type { MOVED_PERMANENTLY(HttpServletResponse.SC_MOVED_PERMANENTLY), @@ -56,8 +58,6 @@ public class Redirector } } - private static final Logger logger = LoggerFactory.getLogger(Redirector.class); - /** * Redirect. * diff --git a/src/fr/devinsy/kiss4web/dispatcher/KissDispatcher.java b/src/fr/devinsy/kiss4web/dispatcher/KissDispatcher.java index 24db377..abcd485 100755 --- a/src/fr/devinsy/kiss4web/dispatcher/KissDispatcher.java +++ b/src/fr/devinsy/kiss4web/dispatcher/KissDispatcher.java @@ -36,6 +36,7 @@ import jakarta.servlet.http.HttpServletRequest; * The Class KissDispatcher. * * According that URL is under UTF-8 format. Set Tomcat connector if needs + * *
*diff --git a/src/fr/devinsy/kiss4web/dispatcher/annotation/KissServletProcessor.java b/src/fr/devinsy/kiss4web/dispatcher/annotation/KissServletProcessor.java index cc70c90..e93735b 100644 --- a/src/fr/devinsy/kiss4web/dispatcher/annotation/KissServletProcessor.java +++ b/src/fr/devinsy/kiss4web/dispatcher/annotation/KissServletProcessor.java @@ -42,7 +42,7 @@ public class KissServletProcessor extends AbstractProcessor { super.init(processingEnv); // Initialization code, if needed - System.out.println("=============== @INIT"); + // System.out.println("=============== @INIT"); } /** diff --git a/src/fr/devinsy/kiss4web/dispatcher/hooks/HookCore.java b/src/fr/devinsy/kiss4web/dispatcher/hooks/HookCore.java index 370d18e..b9e2ec2 100644 --- a/src/fr/devinsy/kiss4web/dispatcher/hooks/HookCore.java +++ b/src/fr/devinsy/kiss4web/dispatcher/hooks/HookCore.java @@ -23,8 +23,6 @@ package fr.devinsy.kiss4web.dispatcher.hooks; */ public abstract class HookCore implements Hook { - private boolean terminal; - /** * Instantiates a new hook core. */ diff --git a/src/fr/devinsy/kiss4web/dispatcher/hooks/LongURLRewriter.java b/src/fr/devinsy/kiss4web/dispatcher/hooks/LongURLRewriter.java index bbedbcb..17062c6 100644 --- a/src/fr/devinsy/kiss4web/dispatcher/hooks/LongURLRewriter.java +++ b/src/fr/devinsy/kiss4web/dispatcher/hooks/LongURLRewriter.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2006-2023 Christian Pierre MOMON + * Copyright (C) 2006-2024 Christian Pierre MOMON * * This file is part of Kiss4web. * @@ -106,6 +106,8 @@ public class LongURLRewriter } /** + * This methods unrewrite a pathinfo. + * * /catalog/article-/123/2016/12/14/resume.xhtml -> /catalog/article.xhtml * * @param source diff --git a/src/fr/devinsy/kiss4web/dispatcher/hooks/ShortURLRewriter.java b/src/fr/devinsy/kiss4web/dispatcher/hooks/ShortURLRewriter.java index 5cde6d5..0655269 100644 --- a/src/fr/devinsy/kiss4web/dispatcher/hooks/ShortURLRewriter.java +++ b/src/fr/devinsy/kiss4web/dispatcher/hooks/ShortURLRewriter.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2006-2023 Christian Pierre MOMON + * Copyright (C) 2006-2024 Christian Pierre MOMON * * This file is part of Kiss4web. * @@ -183,6 +183,8 @@ public class ShortURLRewriter } /** + * This method unrewrite a pathInfo. + * * article.xhtm?id=123 -> article.xhtml * * @param source. *