org.broadleafcommerce.core.web.api.endpoint.checkout
Class CheckoutEndpoint

java.lang.Object
  extended by org.broadleafcommerce.core.web.api.endpoint.checkout.CheckoutEndpoint
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component(value="blRestCheckoutEndpoint")
@Scope(value="singleton")
public class CheckoutEndpoint
extends Object
implements org.springframework.context.ApplicationContextAware

JAXRS endpoint for exposing the checkout process as a set of RESTful services.

User: Kelly Tisdell Date: 4/10/12


Field Summary
protected  CheckoutService checkoutService
           
protected  CompositePaymentService compositePaymentService
           
protected  org.springframework.context.ApplicationContext context
           
protected  OrderService orderService
           
 
Constructor Summary
CheckoutEndpoint()
           
 
Method Summary
 PaymentResponseItemWrapper executePayment(javax.servlet.http.HttpServletRequest request, PaymentReferenceMapWrapper mapWrapper)
           
 OrderWrapper performCheckout(javax.servlet.http.HttpServletRequest request, List<PaymentReferenceMapWrapper> mapWrappers)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

checkoutService

protected CheckoutService checkoutService

compositePaymentService

protected CompositePaymentService compositePaymentService

orderService

protected OrderService orderService

context

protected org.springframework.context.ApplicationContext context
Constructor Detail

CheckoutEndpoint

public CheckoutEndpoint()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

executePayment

public PaymentResponseItemWrapper executePayment(@Context
                                                 javax.servlet.http.HttpServletRequest request,
                                                 PaymentReferenceMapWrapper mapWrapper)

performCheckout

public OrderWrapper performCheckout(@Context
                                    javax.servlet.http.HttpServletRequest request,
                                    List<PaymentReferenceMapWrapper> mapWrappers)


Copyright © 2012. All Rights Reserved.