GPXMetadataExtensions.java

  1. /*
  2.  * This file is part of Openrouteservice.
  3.  *
  4.  * Openrouteservice is free software; you can redistribute it and/or modify it under the terms of the
  5.  * GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1
  6.  * of the License, or (at your option) any later version.
  7.  *
  8.  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  9.  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10.  * See the GNU Lesser General Public License for more details.
  11.  *
  12.  * You should have received a copy of the GNU Lesser General Public License along with this library;
  13.  * if not, see <https://www.gnu.org/licenses/>.
  14.  */

  15. package org.heigit.ors.api.responses.routing.gpx;

  16. import jakarta.xml.bind.annotation.XmlElement;
  17. import jakarta.xml.bind.annotation.XmlRootElement;
  18. import org.heigit.ors.api.SystemMessageProperties;
  19. import org.heigit.ors.api.requests.routing.RouteRequest;
  20. import org.heigit.ors.api.util.SystemMessage;

  21. @XmlRootElement(name = "extensions")
  22. public class GPXMetadataExtensions {
  23.     @XmlElement(name = "system-message")
  24.     private String systemMessage;

  25.     public GPXMetadataExtensions() {
  26.     }

  27.     public GPXMetadataExtensions(RouteRequest request, SystemMessageProperties systemMessageProperties) {
  28.         this.systemMessage = SystemMessage.getSystemMessage(request, systemMessageProperties);
  29.     }
  30. }