Search in sources :

Example 6 with LinkDto

use of org.openkilda.northbound.dto.v1.links.LinkDto in project open-kilda by telstra.

the class LinkMapper method mapResponse.

/**
 * Convert {@link IslInfoData} into {@link LinkDto}.
 */
public LinkDto mapResponse(IslInfoData source) {
    LinkDto target = new LinkDto();
    generatedMap(target, source);
    target.setPath(Arrays.asList(map(source.getSource()), map(source.getDestination())));
    return target;
}
Also used : LinkDto(org.openkilda.northbound.dto.v1.links.LinkDto)

Aggregations

LinkDto (org.openkilda.northbound.dto.v1.links.LinkDto)6 Test (org.junit.Test)4 IslInfoData (org.openkilda.messaging.info.event.IslInfoData)3 PathNode (org.openkilda.messaging.info.event.PathNode)3 PathDto (org.openkilda.northbound.dto.v1.links.PathDto)3 SwitchId (org.openkilda.model.SwitchId)2 LinkUnderMaintenanceDto (org.openkilda.northbound.dto.v1.links.LinkUnderMaintenanceDto)1 HttpEntity (org.springframework.http.HttpEntity)1 UriComponentsBuilder (org.springframework.web.util.UriComponentsBuilder)1