|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.sfweb.filters.CustomerSessionFilter
public class CustomerSessionFilter
This filter manages customer session.
If a new customer send a request without customer session id, a new customer session will be created and stored.
If a return customer send a request with a valid customer session id, the customer information will be loaded for controllers' usage. The
customer-information-load operation will only be done once for a session.
The customer session id is written back to customer browser as a cookie.
Constructor Summary | |
---|---|
CustomerSessionFilter()
|
Method Summary | |
---|---|
void |
destroy()
Destroy the filter. |
void |
doFilter(javax.servlet.ServletRequest inRequest,
javax.servlet.ServletResponse inResponse,
javax.servlet.FilterChain inFilterChain)
Filter the request. |
void |
init(javax.servlet.FilterConfig arg0)
Initialize the filter. |
void |
setWebCustomerSessionService(WebCustomerSessionService webCustomerSessionService)
Set the web customer session service. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomerSessionFilter()
Method Detail |
---|
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest inRequest, javax.servlet.ServletResponse inResponse, javax.servlet.FilterChain inFilterChain) throws java.io.IOException, javax.servlet.ServletException, EpLicensingInvalidException
doFilter
in interface javax.servlet.Filter
inRequest
- the requestinResponse
- the responseinFilterChain
- the filter chain
java.io.IOException
- in case of error
javax.servlet.ServletException
- in case of error
EpLicensingInvalidException
- in case of errorpublic void init(javax.servlet.FilterConfig arg0) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
arg0
- not used
javax.servlet.ServletException
- in case of error.public void setWebCustomerSessionService(WebCustomerSessionService webCustomerSessionService)
webCustomerSessionService
- the web customer session service to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |