We need to introduce a new helper class, ProtocolHelper, to centralize the management of URL protocols. This change will improve the code maintainability and allow us to easily update and validate web and file protocols. The ProtocolHelper will be added to the ComponentUtil class and utilized across the application.
Details of the change include:
Addition of ProtocolHelper in ComponentUtil.
Replacement of protocol validation logic in WebFsIndexHelper with ProtocolHelper.
Deprecation of the old protocol validation methods in FessProp.
We need to introduce a new helper class, ProtocolHelper, to centralize the management of URL protocols. This change will improve the code maintainability and allow us to easily update and validate web and file protocols. The ProtocolHelper will be added to the ComponentUtil class and utilized across the application.
Details of the change include: