in);
} catch (IOException e) {
throw new FormDataParamException(e, extractor.getName(), extractor.getDefaultValueString());
}
} else if (extractor != null) {
MultivaluedMap<String, String> map = new MultivaluedStringMap();
try {
if (formDataBodyPart != null) {
for (FormDataBodyPart p : formDataBodyParts) {
mediaType = p.getMediaType();
reader = messageBodyWorkers.getMessageBodyReader(
String.class,
String.class,
parameter.getAnnotations(),
mediaType);
@SuppressWarnings("unchecked") String value = (String) reader.readFrom(
String.class,
String.class,
parameter.getAnnotations(),
mediaType,
context.getRequestContext().getHeaders(),
((BodyPartEntity) p.getEntity()).getInputStream());
map.add(parameter.getSourceName(), value);
}
}
return extractor.extract(map);
} catch (IOException ex) {
throw new FormDataParamException(ex, extractor.getName(), extractor.getDefaultValueString());