Commit e6f76e8c authored by Liang Ding's avatar Liang Ding

💡 更新注释

parent 65e954e1
...@@ -693,7 +693,7 @@ public class ArticleProcessor { ...@@ -693,7 +693,7 @@ public class ArticleProcessor {
*/ */
@RequestProcessing(value = "/article", method = HttpMethod.GET) @RequestProcessing(value = "/article", method = HttpMethod.GET)
public void showArticle(final RequestContext context) { public void showArticle(final RequestContext context) {
// See PermalinkFilter#dispatchToArticleOrPageProcessor() // See PermalinkHandler#dispatchToArticleOrPageProcessor()
final JSONObject article = (JSONObject) context.attr(Article.ARTICLE); final JSONObject article = (JSONObject) context.attr(Article.ARTICLE);
if (null == article) { if (null == article) {
context.sendError(HttpServletResponse.SC_NOT_FOUND); context.sendError(HttpServletResponse.SC_NOT_FOUND);
......
...@@ -111,7 +111,7 @@ public class PageProcessor { ...@@ -111,7 +111,7 @@ public class PageProcessor {
Skins.fillLangs(preference.getString(Option.ID_C_LOCALE_STRING), (String) context.attr(Keys.TEMAPLTE_DIR_NAME), dataModel); Skins.fillLangs(preference.getString(Option.ID_C_LOCALE_STRING), (String) context.attr(Keys.TEMAPLTE_DIR_NAME), dataModel);
// See PermalinkFilter#dispatchToArticleOrPageProcessor() // See PermalinkHandler#dispatchToArticleOrPageProcessor()
final JSONObject page = (JSONObject) context.attr(Page.PAGE); final JSONObject page = (JSONObject) context.attr(Page.PAGE);
if (null == page) { if (null == page) {
context.sendError(HttpServletResponse.SC_NOT_FOUND); context.sendError(HttpServletResponse.SC_NOT_FOUND);
......
...@@ -75,7 +75,7 @@ public class PermalinkHandler implements Handler { ...@@ -75,7 +75,7 @@ public class PermalinkHandler implements Handler {
final String contextPath = Latkes.getContextPath(); final String contextPath = Latkes.getContextPath();
final String permalink = StringUtils.substringAfter(requestURI, contextPath); final String permalink = StringUtils.substringAfter(requestURI, contextPath);
if (PermalinkQueryService.invalidPermalinkFormat(permalink)) { if (PermalinkQueryService.invalidPermalinkFormat(permalink)) {
LOGGER.log(Level.DEBUG, "Skip filter request [URI={0}]", permalink); LOGGER.log(Level.DEBUG, "Skip permalink handling request [URI={0}]", permalink);
context.handle(); context.handle();
return; return;
...@@ -95,7 +95,7 @@ public class PermalinkHandler implements Handler { ...@@ -95,7 +95,7 @@ public class PermalinkHandler implements Handler {
return; return;
} }
} catch (final RepositoryException e) { } catch (final RepositoryException e) {
LOGGER.log(Level.ERROR, "Processes article permalink filter failed", e); LOGGER.log(Level.ERROR, "Processes article permalink handler failed", e);
context.sendError(HttpServletResponse.SC_NOT_FOUND); context.sendError(HttpServletResponse.SC_NOT_FOUND);
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment