Interface UrlEncoderFacade
-
- All Known Implementing Classes:
DefaultUrlEncoderFacade
public interface UrlEncoderFacadeThis facade will be used by UrlEncoderFilter to process the URL for UrlEncoding.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringcalculateAndUpdateUrlEncodingData(java.lang.String url, java.lang.String contextPath)Gets the urlEncoding pattern that has to be injected into the URL.java.util.List<UrlEncoderData>getCurrentUrlEncodingData()Gets the list of attributes and it's values that has to be encoded in the url.booleanisValid(java.lang.String attributeName, java.lang.String value)Checks if the given urlEncodingAttribute holds a valid value for injection into the URL.voidupdateSiteFromUrlEncodingData()Updates the Store/Site based on the change in value of the urlEncodingAttributes.
-
-
-
Method Detail
-
isValid
boolean isValid(java.lang.String attributeName, java.lang.String value)Checks if the given urlEncodingAttribute holds a valid value for injection into the URL.- Parameters:
attributeName- encodoing attribute name to checkvalue- encoding attribute value to check- Returns:
- boolean
-
getCurrentUrlEncodingData
java.util.List<UrlEncoderData> getCurrentUrlEncodingData()
Gets the list of attributes and it's values that has to be encoded in the url. The list of attributes for each site will be configured inCMSSiteModeland the data objects that holds the attributes and it's values will be set in SessionService attributes.- Returns:
- List of
UrlEncoderDataobjects that holds the encoding attribute's values.
-
updateSiteFromUrlEncodingData
void updateSiteFromUrlEncodingData()
Updates the Store/Site based on the change in value of the urlEncodingAttributes. Only specific encoding attributes are allowed to change the site.
-
calculateAndUpdateUrlEncodingData
java.lang.String calculateAndUpdateUrlEncodingData(java.lang.String url, java.lang.String contextPath)Gets the urlEncoding pattern that has to be injected into the URL. This pattern is calculated based on the input URL and encoding attributes configured for specific site. This method will also update the url encoding values stored in the session.- Parameters:
url- input URL to build patterncontextPath- context with encoding attributes- Returns:
- the pattern
-
-