Cleaned code and Javadoc.

This commit is contained in:
Christian P. MOMON 2024-08-18 23:34:02 +02:00
parent 08e6071876
commit 474a13b7e2
8 changed files with 18 additions and 13 deletions

View file

@ -1,5 +1,5 @@
/** /**
* Copyright (C) 2006-2023 Christian Pierre MOMON * Copyright (C) 2006-2024 Christian Pierre MOMON
* *
* This file is part of Kiss4web. * This file is part of Kiss4web.
* *
@ -32,14 +32,14 @@ import jakarta.servlet.http.HttpServletResponse;
*/ */
public class CookieHelper public class CookieHelper
{ {
private static final Logger logger = LoggerFactory.getLogger(CookieHelper.class);
public enum Scope public enum Scope
{ {
HTTP_AND_HTTPS, HTTP_AND_HTTPS,
HTTPS_ONLY HTTPS_ONLY
} }
private static final Logger logger = LoggerFactory.getLogger(CookieHelper.class);
/** /**
* Builds the cookie. * Builds the cookie.
* *

View file

@ -43,6 +43,8 @@ import fr.devinsy.kiss4web.dispatcher.hooks.XHTMLHook;
*/ */
public class Kiss4web public class Kiss4web
{ {
private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Kiss4web.class);
/** /**
* The Enum Mode. * The Enum Mode.
*/ */
@ -63,8 +65,6 @@ public class Kiss4web
private static final Kiss4web instance = new 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 BuildInformation buildInformation;
private Mode mode; private Mode mode;
@ -238,6 +238,8 @@ public class Kiss4web
this.mode = mode; this.mode = mode;
} }
break; break;
default:
} }
} }

View file

@ -1,5 +1,5 @@
/** /**
* Copyright (C) 2006-2023 Christian Pierre MOMON * Copyright (C) 2006-2024 Christian Pierre MOMON
* *
* This file is part of Kiss4web. * This file is part of Kiss4web.
* *
@ -28,6 +28,8 @@ import jakarta.servlet.http.HttpServletResponse;
*/ */
public class Redirector public class Redirector
{ {
private static final Logger logger = LoggerFactory.getLogger(Redirector.class);
public enum Type public enum Type
{ {
MOVED_PERMANENTLY(HttpServletResponse.SC_MOVED_PERMANENTLY), MOVED_PERMANENTLY(HttpServletResponse.SC_MOVED_PERMANENTLY),
@ -56,8 +58,6 @@ public class Redirector
} }
} }
private static final Logger logger = LoggerFactory.getLogger(Redirector.class);
/** /**
* Redirect. * Redirect.
* *

View file

@ -36,6 +36,7 @@ import jakarta.servlet.http.HttpServletRequest;
* The Class KissDispatcher. * The Class KissDispatcher.
* *
* According that URL is under UTF-8 format. Set Tomcat connector if needs * According that URL is under UTF-8 format. Set Tomcat connector if needs
*
* <pre> * <pre>
* <connector URIEncoding="UTF-8" />. * <connector URIEncoding="UTF-8" />.
* </pre> * </pre>

View file

@ -42,7 +42,7 @@ public class KissServletProcessor extends AbstractProcessor
{ {
super.init(processingEnv); super.init(processingEnv);
// Initialization code, if needed // Initialization code, if needed
System.out.println("=============== @INIT"); // System.out.println("=============== @INIT");
} }
/** /**

View file

@ -23,8 +23,6 @@ package fr.devinsy.kiss4web.dispatcher.hooks;
*/ */
public abstract class HookCore implements Hook public abstract class HookCore implements Hook
{ {
private boolean terminal;
/** /**
* Instantiates a new hook core. * Instantiates a new hook core.
*/ */

View file

@ -1,5 +1,5 @@
/** /**
* Copyright (C) 2006-2023 Christian Pierre MOMON * Copyright (C) 2006-2024 Christian Pierre MOMON
* *
* This file is part of Kiss4web. * 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 * /catalog/article-/123/2016/12/14/resume.xhtml -> /catalog/article.xhtml
* *
* @param source * @param source

View file

@ -1,5 +1,5 @@
/** /**
* Copyright (C) 2006-2023 Christian Pierre MOMON * Copyright (C) 2006-2024 Christian Pierre MOMON
* *
* This file is part of Kiss4web. * This file is part of Kiss4web.
* *
@ -183,6 +183,8 @@ public class ShortURLRewriter
} }
/** /**
* This method unrewrite a pathInfo.
*
* article.xhtm?id=123 -> article.xhtml * article.xhtm?id=123 -> article.xhtml
* *
* @param source * @param source