|
|
|||||||||
| 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.StringFromRequest
public class StringFromRequest
Use this to make a request level component that pulls an string from a named parameter (GET or POST) of the request. If a parameter of the supplied name is not available for the current request path, then an exception will be thrown.
| Nested Class Summary | |
|---|---|
static class |
StringFromRequest.ParameterNotFound
|
| Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter |
|---|
org.picocontainer.ComponentAdapter.NOTHING |
| Constructor Summary | |
|---|---|
StringFromRequest(String paramName)
|
|
| Method Summary | |
|---|---|
static void |
addStringRequestParameters(org.picocontainer.MutablePicoContainer toContainer,
String... names)
Add a number of StringFromRequest adapters to a container. |
Class |
getComponentImplementation()
|
Object |
getComponentKey()
|
Object |
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 StringFromRequest(String paramName)
| 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 Object provide(javax.servlet.http.HttpServletRequest req)
public static void addStringRequestParameters(org.picocontainer.MutablePicoContainer toContainer,
String... names)
toContainer - the container to add tonames - the list of names to make adapters from
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||