Class BroadleafRobotsController
java.lang.Object
org.broadleafcommerce.cms.web.controller.BroadleafRobotsController
This class serves up the Robots.txt file. The default contents can be overridden by
adding a Page named "/robots.txt" in the BLC admin or DB.
- Author:
- bpolster
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
protected BroadleafContextUtil
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Used to produce a working but simple robots.txt.getRobotsFile
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) boolean
isSecure
(jakarta.servlet.http.HttpServletRequest request)
-
Field Details
-
BLC_RULE_MAP_PARAM
- See Also:
-
REQUEST_DTO
- See Also:
-
blcContextUtil
-
-
Constructor Details
-
BroadleafRobotsController
public BroadleafRobotsController()
-
-
Method Details
-
getRobotsFile
public String getRobotsFile(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) -
isSecure
public boolean isSecure(jakarta.servlet.http.HttpServletRequest request) -
getDefaultRobotsTxt
Used to produce a working but simple robots.txt. Can be overridden in code or by defining a page managed in the Broadleaf CMS named "/robots.txt"- Returns:
-