Package org.broadleafcommerce.cms.web
Class NullURLProcessor
java.lang.Object
org.broadleafcommerce.cms.web.NullURLProcessor
- All Implemented Interfaces:
URLProcessor
Implementation of
URLProcessor
that indicates the URL was not able to be
processed by any of the configured processors.
This is a valid state used to indicate a URL that although not processed by the URL processors will likely be processed by other mechanisms (e.g. Spring-MVC) within the web application.
Created by bpolster.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canProcessURL
(String requestURI) Always returns true.static NullURLProcessor
boolean
processURL
(String requestURI) The processURL method should not be called on the NullURLProcessor.
-
Constructor Details
-
NullURLProcessor
public NullURLProcessor()
-
-
Method Details
-
getInstance
-
canProcessURL
Always returns true.- Specified by:
canProcessURL
in interfaceURLProcessor
- Parameters:
requestURI
-- Returns:
- true if this URLProcessor is able to process the passed in request
-
processURL
The processURL method should not be called on the NullURLProcessor. This class provides a cacheable instance of URLProcessor that indicates to the controlling program (@see BroadleafProcessURLFilter) that the current URL cannot be processed.- Specified by:
processURL
in interfaceURLProcessor
- Parameters:
requestURI
- The requestURI with the context path trimmed off- Returns:
- true if the processor was able to process the passed in URL.
- Throws:
UnsupportedOperationException
-