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 booleancontainsPrefixedFormFieldsWithValue(javax.ws.rs.core.MultivaluedMap<String, String> decodedFormParameters) Checks to see if the decodedParameters contains any form fields starting with the prefix.protected ObjectdoInject(String prefix, HttpRequest request, HttpResponse response) Calls the superinject(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse)method.protected booleanChecks 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 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:
injectin interfaceValueInjector- Overrides:
injectin classFormInjector- Parameters:
request-response-- Returns:
-
doInject
Calls the superinject(org.jboss.resteasy.spi.HttpRequest, org.jboss.resteasy.spi.HttpResponse)method. -
containsPrefixedFormFieldsWithValue
-
hasValue
-