}
}
protected void doWriteParam(StringBuilder sb, Parameter pm, Class<?> type,
Type genericType, String paramName, Annotation[] anns, boolean isJson) {
ParameterType pType = pm.getType();
boolean isForm = isFormParameter(pm, type, anns);
if (paramName == null && isForm) {
Multipart m = AnnotationUtils.getAnnotation(anns, Multipart.class);
if (m != null) {
paramName = m.value();
}
}
sb.append("<param name=\"").append(paramName).append("\" ");
String style = ParameterType.PATH == pType ? "template"
: isForm ? "query"
: ParameterType.REQUEST_BODY == pType ? "plain"
: pType.toString().toLowerCase();
sb.append("style=\"").append(style).append("\"");
if (pm.getDefaultValue() != null) {
sb.append(" default=\"").append(pm.getDefaultValue()).append("\"");
}
if (InjectionUtils.isSupportedCollectionOrArray(type)) {