Cleaned code and Javadoc.
This commit is contained in:
parent
08e6071876
commit
474a13b7e2
8 changed files with 18 additions and 13 deletions
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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:
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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
|
||||
*
|
||||
* <pre>
|
||||
* <connector … URIEncoding="UTF-8" … />.
|
||||
* </pre>
|
||||
|
|
|
@ -42,7 +42,7 @@ public class KissServletProcessor extends AbstractProcessor
|
|||
{
|
||||
super.init(processingEnv);
|
||||
// Initialization code, if needed
|
||||
System.out.println("=============== @INIT");
|
||||
// System.out.println("=============== @INIT");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,8 +23,6 @@ package fr.devinsy.kiss4web.dispatcher.hooks;
|
|||
*/
|
||||
public abstract class HookCore implements Hook
|
||||
{
|
||||
private boolean terminal;
|
||||
|
||||
/**
|
||||
* Instantiates a new hook core.
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue