use of org.apache.knox.gateway.topology.Version in project knox by apache.
the class BeanConverter method getApplication.
private static org.apache.knox.gateway.topology.Application getApplication(Application application) {
org.apache.knox.gateway.topology.Application applicationResource = new org.apache.knox.gateway.topology.Application();
applicationResource.setRole(application.getRole());
applicationResource.setName(application.getName());
if (application.getVersion() != null) {
applicationResource.setVersion(new Version(application.getVersion()));
}
for (Param param : application.getParams()) {
applicationResource.addParam(getParam(param));
}
for (String url : application.getUrls()) {
applicationResource.getUrls().add(url);
}
return applicationResource;
}
Aggregations