Class DefaultPaymentFormActionUrlStrategy
- java.lang.Object
-
- de.hybris.platform.acceleratorservices.payment.cybersource.strategies.impl.DefaultPaymentFormActionUrlStrategy
-
- All Implemented Interfaces:
PaymentFormActionUrlStrategy
public class DefaultPaymentFormActionUrlStrategy extends java.lang.Object implements PaymentFormActionUrlStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultPaymentFormActionUrlStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.net.URIgetAdjustRequestURI(java.lang.String urlStr)protected BaseSiteServicegetBaseSiteService()java.lang.StringgetHopRequestUrl()Gets the URI of the Hosted Order Page.protected SiteBaseUrlResolutionServicegetSiteBaseUrlResolutionService()protected SiteConfigServicegetSiteConfigService()java.lang.StringgetSopRequestUrl(java.lang.String clientRef)Gets the URI of the Silent Order Post.voidsetBaseSiteService(BaseSiteService baseSiteService)voidsetSiteBaseUrlResolutionService(SiteBaseUrlResolutionService siteBaseUrlResolutionService)voidsetSiteConfigService(SiteConfigService siteConfigService)
-
-
-
Method Detail
-
getBaseSiteService
protected BaseSiteService getBaseSiteService()
-
setBaseSiteService
public void setBaseSiteService(BaseSiteService baseSiteService)
-
getSiteBaseUrlResolutionService
protected SiteBaseUrlResolutionService getSiteBaseUrlResolutionService()
-
setSiteBaseUrlResolutionService
public void setSiteBaseUrlResolutionService(SiteBaseUrlResolutionService siteBaseUrlResolutionService)
-
getSiteConfigService
protected SiteConfigService getSiteConfigService()
-
setSiteConfigService
public void setSiteConfigService(SiteConfigService siteConfigService)
-
getHopRequestUrl
public java.lang.String getHopRequestUrl()
Description copied from interface:PaymentFormActionUrlStrategyGets the URI of the Hosted Order Page. This method read the HOP URL using the configuration service, as such the URL has to be defined in a property file on the class path.- Specified by:
getHopRequestUrlin interfacePaymentFormActionUrlStrategy- Returns:
- a URL to the HOP server.
-
getSopRequestUrl
public java.lang.String getSopRequestUrl(java.lang.String clientRef)
Description copied from interface:PaymentFormActionUrlStrategyGets the URI of the Silent Order Post. By default this method will utilize a config property to define the SOP URL. An extension may implement this method to call an external service (e.g., CIS) to get the correct SOP URL.- Specified by:
getSopRequestUrlin interfacePaymentFormActionUrlStrategy- Parameters:
clientRef- unique identifier representing the client in a call to external services.- Returns:
- a URL to the SOP server.
-
getAdjustRequestURI
protected java.net.URI getAdjustRequestURI(java.lang.String urlStr)
-
-