Package slash.navigation.routes.remote
Class RemoteRoute
java.lang.Object
slash.navigation.routes.remote.RemoteRoute
- All Implemented Interfaces:
Route
Represents a route on the server which is transferred via
RemoteCatalog
and represented with GPX documents.- Author:
- Christian Pesch
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteRoute(RemoteCategory category, String href) RemoteRoute(RemoteCategory category, String href, String description, String creator, String url) RemoteRoute(RemoteCategory category, String href, String description, String creator, String url, Long length, Long duration) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()booleanReturns the duration in seconds from the server metadata attributes of the catalog XML (specs/00055), or null if the server did not deliver it.getHref()Returns the length in meters from the server metadata attributes of the catalog XML (specs/00055), or null if the server did not deliver it.getName()getUrl()inthashCode()toString()void
-
Constructor Details
-
Method Details
-
getHref
-
getName
- Specified by:
getNamein interfaceRoute- Throws:
IOException
-
getDescription
- Specified by:
getDescriptionin interfaceRoute- Throws:
IOException
-
getCreator
- Specified by:
getCreatorin interfaceRoute- Throws:
IOException
-
getUrl
- Specified by:
getUrlin interfaceRoute- Throws:
IOException
-
getLength
Returns the length in meters from the server metadata attributes of the catalog XML (specs/00055), or null if the server did not deliver it. Never fetches from the server. -
getDuration
Returns the duration in seconds from the server metadata attributes of the catalog XML (specs/00055), or null if the server did not deliver it. Never fetches from the server. -
delete
- Specified by:
deletein interfaceRoute- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-