org.picocontainer.web
Class StringFromCookie
java.lang.Object
org.picocontainer.injectors.ProviderAdapter
org.picocontainer.web.StringFromCookie
- All Implemented Interfaces:
- org.picocontainer.ComponentAdapter, org.picocontainer.Injector, org.picocontainer.injectors.Provider
public class StringFromCookie
- extends org.picocontainer.injectors.ProviderAdapter
Use this to make a request level component that pulls information from cookie held on
the browser. If a cookie of the suplied name is not available for the current
request path, then a NotFound exception will be thrown.
| Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter |
org.picocontainer.ComponentAdapter.NOTHING |
| Methods inherited from class org.picocontainer.injectors.ProviderAdapter |
accept, decorateComponentInstance, findAdapterOfType, getComponentInstance, getComponentInstance, getDelegate, getDescriptor, getProvideMethod, useNames, verify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringFromCookie
public StringFromCookie(String name)
getComponentImplementation
public Class getComponentImplementation()
- Specified by:
getComponentImplementation in interface org.picocontainer.ComponentAdapter- Overrides:
getComponentImplementation in class org.picocontainer.injectors.ProviderAdapter
getComponentKey
public Object getComponentKey()
- Specified by:
getComponentKey in interface org.picocontainer.ComponentAdapter- Overrides:
getComponentKey in class org.picocontainer.injectors.ProviderAdapter
provide
public String provide(javax.servlet.http.HttpServletRequest req)
Copyright © 2009. All Rights Reserved.