|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.picocontainer.injectors.ProviderAdapter
org.picocontainer.web.StringFromCookie
public class StringFromCookie
Use this to make a request level component that pulls information from cookie held on the browser. If a cookie of the supplied name is not available for the current request path, then a NotFound exception will be thrown.
| Nested Class Summary | |
|---|---|
static class |
StringFromCookie.CookieNotFound
|
| Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter |
|---|
org.picocontainer.ComponentAdapter.NOTHING |
| Constructor Summary | |
|---|---|
StringFromCookie(String name)
|
|
| Method Summary | |
|---|---|
Class |
getComponentImplementation()
|
Object |
getComponentKey()
|
String |
provide(javax.servlet.http.HttpServletRequest req)
|
| Methods inherited from class org.picocontainer.injectors.ProviderAdapter |
|---|
accept, decorateComponentInstance, dispose, findAdapterOfType, getComponentInstance, getComponentInstance, getDelegate, getDescriptor, getProvideMethod, hasLifecycle, isLazy, start, stop, useNames, verify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringFromCookie(String name)
| Method Detail |
|---|
public Class getComponentImplementation()
getComponentImplementation in interface org.picocontainer.ComponentAdaptergetComponentImplementation in class org.picocontainer.injectors.ProviderAdapterpublic Object getComponentKey()
getComponentKey in interface org.picocontainer.ComponentAdaptergetComponentKey in class org.picocontainer.injectors.ProviderAdapterpublic String provide(javax.servlet.http.HttpServletRequest req)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||