Package org.jboss.resteasy.core
Class PrefixedFormInjector
java.lang.Object
org.jboss.resteasy.core.FormInjector
org.jboss.resteasy.core.PrefixedFormInjector
- All Implemented Interfaces:
ValueInjector
- Direct Known Subclasses:
AbstractCollectionFormInjector
Extension of
FormInjector
that handles prefixes for associated classes.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrefixedFormInjector
(Class type, String prefix, ResteasyProviderFactory factory) Constructor setting the prefix. -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
containsPrefixedFormFieldsWithValue
(javax.ws.rs.core.MultivaluedMap<String, String> decodedFormParameters) Checks to see if the decodedParameters contains any form fields starting with the prefix.protected Object
doInject
(String prefix, HttpRequest request, HttpResponse response) Calls the superinject(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse)
method.protected boolean
Checks that the list has an non empty value.inject
(HttpRequest request, HttpResponse response) Inject inside the context of an HTTP request.Methods inherited from class org.jboss.resteasy.core.FormInjector
inject
-
Field Details
-
prefix
-
-
Constructor Details
-
PrefixedFormInjector
Constructor setting the prefix.
-
-
Method Details
-
inject
Inject inside the context of an HTTP request. Wraps the request in a- Specified by:
inject
in interfaceValueInjector
- Overrides:
inject
in classFormInjector
- Parameters:
request
-response
-- Returns:
-
doInject
Calls the superinject(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse)
method. -
containsPrefixedFormFieldsWithValue
private boolean containsPrefixedFormFieldsWithValue(javax.ws.rs.core.MultivaluedMap<String, String> decodedFormParameters) Checks to see if the decodedParameters contains any form fields starting with the prefix. Also checks if the value is not empty. -
hasValue
Checks that the list has an non empty value.
-