|
|
|||||||||
| 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
org.picocontainer.web.IntFromRequest
public class IntFromRequest
Use this to make a request level component that pulls an integer 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. An exception will also be thrown, if the number format is bad.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.picocontainer.web.StringFromRequest |
|---|
StringFromRequest.ParameterNotFound |
| Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter |
|---|
org.picocontainer.ComponentAdapter.NOTHING |
| Constructor Summary | |
|---|---|
IntFromRequest(String paramName)
|
|
| Method Summary | |
|---|---|
static void |
addIntegerRequestParameters(org.picocontainer.MutablePicoContainer toContainer,
String... names)
Add a number of IntFromRequest adapters to a container. |
Class |
getComponentImplementation()
|
Object |
provide(javax.servlet.http.HttpServletRequest req)
|
| Methods inherited from class org.picocontainer.web.StringFromRequest |
|---|
addStringRequestParameters, getComponentKey |
| 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 IntFromRequest(String paramName)
| Method Detail |
|---|
public Class getComponentImplementation()
getComponentImplementation in interface org.picocontainer.ComponentAdaptergetComponentImplementation in class StringFromRequestpublic Object provide(javax.servlet.http.HttpServletRequest req)
provide in class StringFromRequest
public static void addIntegerRequestParameters(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 | |||||||||