org.broadleafcommerce.cms.web
Interface URLProcessor

All Known Implementing Classes:
NullURLProcessor, PageURLProcessor

public interface URLProcessor

This interface is intended for use by processors that will determine whether a given URL requires special treatment. Specifically, certain URLs refer to custom managed content pages. Others are setup as SEO friendly URLs for products. The ProcessURLFilter will check it's internal cache to determine which URL processor should be invoked for a passed in URL. If it is unable to find a matching processor in cache, then it will call each processor in turn to provide an attempt to process the URL. Created by bpolster.


Method Summary
 boolean canProcessURL(String key)
          Implementors of this interface will return true if they are able to process the passed in request.
 void processURL(String key)
          Implementers of this interface will process the passed in request.
 

Method Detail

canProcessURL

boolean canProcessURL(String key)
Implementors of this interface will return true if they are able to process the passed in request. Implementors of this method will need to rely on the BroadleafRequestContext class which provides access to the current sandbox, locale, request, and response via a threadlocal context

Parameters:
key -
Returns:
true if the passed in key can be processed by this processor.

processURL

void processURL(String key)
                throws IOException,
                       javax.servlet.ServletException
Implementers of this interface will process the passed in request. Implementors of this method will need to rely on the BroadleafRequestContext class which provides access to the current sandbox, locale, request, and response via a threadlocal context

Throws:
IOException
javax.servlet.ServletException


Copyright © 2011. All Rights Reserved.