com.elasticpath.sfweb.service.impl
Interface WebCustomerSessionService

All Known Implementing Classes:
WebCustomerSessionServiceImpl

public interface WebCustomerSessionService

WebCustomerSessionService provides services for managing CustomerSessions in the web application session, including cookie management.


Method Summary
 void handleCreateNewAccount(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Customer customer)
          Updates the session and cookie when a new account is created.
 void handleCustomerSignIn(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Customer customer)
          Update the session when a customer signs in.
 void handleFilterRequest(javax.servlet.ServletRequest inRequest, javax.servlet.ServletResponse inResponse)
          Handle a request intercepted by a filter.
 

Method Detail

handleCreateNewAccount

void handleCreateNewAccount(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            Customer customer)
Updates the session and cookie when a new account is created.

Parameters:
request - the HTTP Request
response - the HTTP Response
customer - the new customer

handleCustomerSignIn

void handleCustomerSignIn(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response,
                          Customer customer)
Update the session when a customer signs in.

Parameters:
request - the HTTP request
response - the HTTP response
customer - the customer who has signed in

handleFilterRequest

void handleFilterRequest(javax.servlet.ServletRequest inRequest,
                         javax.servlet.ServletResponse inResponse)
Handle a request intercepted by a filter. Performs any required actions to update the CustomerSession, shopping cart, and cookie.

Parameters:
inRequest - the request
inResponse - the response