org.broadleafcommerce.cms.web
Class NullURLProcessor
java.lang.Object
org.broadleafcommerce.cms.web.NullURLProcessor
- All Implemented Interfaces:
- URLProcessor
public class NullURLProcessor
- extends Object
- implements 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullURLProcessor
public NullURLProcessor()
getInstance
public static NullURLProcessor getInstance()
canProcessURL
public boolean canProcessURL(String requestURI)
- Always returns true.
- Specified by:
canProcessURL in interface URLProcessor
- Parameters:
requestURI -
- Returns:
- true if this URLProcessor is able to process the passed in request
processURL
public boolean processURL(String requestURI)
- 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 interface URLProcessor
- 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
Copyright © 2013. All Rights Reserved.