parameter.setStyle(Parameter.ParameterStyle.TEMPLATE);
parameters.add(parameter);
}
}
ExecuteMethod executeMethod = new ExecuteMethod();
executeMethod.setParameters(parameters);
executeMethod.setUrl(path);
executeMethod.setHttpMethod(methodName);
Response response = method.getResponse();
if (response != null) {
Representation representation = response.getRepresentation();
if (representation != null) {
String mediaType = representation.getMediaType();
executeMethod.setResponseType(mediaType);
}
}
UnitAction unitAction = new UnitAction();
unitAction.setType(id);