org.broadleafcommerce.common.web.filter
Class TranslationRequestProcessor

java.lang.Object
  extended by org.broadleafcommerce.common.web.AbstractBroadleafWebRequestProcessor
      extended by org.broadleafcommerce.common.web.filter.TranslationRequestProcessor
All Implemented Interfaces:
BroadleafWebRequestProcessor

@Component(value="blTranslationRequestProcessor")
public class TranslationRequestProcessor
extends AbstractBroadleafWebRequestProcessor

This processor is responsible for setting up the translation context. It is intended to be used by both typical Web applications and called from a ServletFilter (such as "TranslationFilter") or from a portletFilter (such as "TranslationInterceptor")

Author:
bpolster

Field Summary
protected  boolean translationEnabled
           
protected  TranslationService translationService
           
 
Constructor Summary
TranslationRequestProcessor()
           
 
Method Summary
 void process(org.springframework.web.context.request.WebRequest request)
          Process the current request.
 
Methods inherited from class org.broadleafcommerce.common.web.AbstractBroadleafWebRequestProcessor
postProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

translationService

protected TranslationService translationService

translationEnabled

@Value(value="${i18n.translation.enabled}")
protected boolean translationEnabled
Constructor Detail

TranslationRequestProcessor

public TranslationRequestProcessor()
Method Detail

process

public void process(org.springframework.web.context.request.WebRequest request)
Description copied from interface: BroadleafWebRequestProcessor
Process the current request. Examples would be setting the currently logged in customer on the request or handling anonymous customers in session



Copyright © 2013. All Rights Reserved.