Class JosmUrls
- java.lang.Object
-
- org.openstreetmap.josm.data.preferences.JosmUrls
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
JosmUrls.InstanceHolder
-
Field Summary
Fields Modifier and Type Field Description private static String
DEFAULT_API_URL
public URL of the standard OSM API.private static String
JOSM_WEBSITE
The JOSM website URL.private static String
OSM_WEBSITE
The OSM website URL.private static String
OSM_WIKI
The OSM wiki URL.
-
Constructor Summary
Constructors Modifier Constructor Description private
JosmUrls()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseBrowseUrl()
Replies the base URL for browsing information about a primitive.String
getBaseUserUrl()
Replies the base URL for browsing information about a user.String
getDefaultOsmApiUrl()
Returns the default OSM API URL.static JosmUrls
getInstance()
Returns the unique instance.String
getJOSMWebsite()
Returns the JOSM website URL.String
getOSMWebsite()
Returns the OSM website URL.String
getOSMWebsiteDependingOnSelectedApi()
Returns the OSM website URL depending on the selected OSM API.String
getOSMWiki()
Returns the OSM wiki URL.String
getXMLBase()
Returns the JOSM XML URL.
-
-
-
Field Detail
-
JOSM_WEBSITE
private static final String JOSM_WEBSITE
The JOSM website URL.- See Also:
- Constant Field Values
-
OSM_WEBSITE
private static final String OSM_WEBSITE
The OSM website URL.- See Also:
- Constant Field Values
-
OSM_WIKI
private static final String OSM_WIKI
The OSM wiki URL.- See Also:
- Constant Field Values
-
DEFAULT_API_URL
private static final String DEFAULT_API_URL
public URL of the standard OSM API.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JosmUrls
private JosmUrls()
-
-
Method Detail
-
getInstance
public static JosmUrls getInstance()
Returns the unique instance.- Returns:
- the unique instance
-
getOSMWebsiteDependingOnSelectedApi
public String getOSMWebsiteDependingOnSelectedApi()
Description copied from interface:IUrls
Returns the OSM website URL depending on the selected OSM API.- Specified by:
getOSMWebsiteDependingOnSelectedApi
in interfaceIUrls
- Returns:
- the OSM website URL depending on the selected OSM API
-
getBaseBrowseUrl
public String getBaseBrowseUrl()
Description copied from interface:IUrls
Replies the base URL for browsing information about a primitive.- Specified by:
getBaseBrowseUrl
in interfaceIUrls
- Returns:
- the base URL, i.e. https://www.openstreetmap.org
-
getBaseUserUrl
public String getBaseUserUrl()
Description copied from interface:IUrls
Replies the base URL for browsing information about a user.- Specified by:
getBaseUserUrl
in interfaceIUrls
- Returns:
- the base URL, i.e. https://www.openstreetmap.org/user
-
getJOSMWebsite
public String getJOSMWebsite()
Description copied from interface:IUrls
Returns the JOSM website URL.- Specified by:
getJOSMWebsite
in interfaceIUrls
- Returns:
- the josm website URL
-
getXMLBase
public String getXMLBase()
Description copied from interface:IUrls
Returns the JOSM XML URL.- Specified by:
getXMLBase
in interfaceIUrls
- Returns:
- the JOSM XML URL
-
getOSMWebsite
public String getOSMWebsite()
Description copied from interface:IUrls
Returns the OSM website URL.- Specified by:
getOSMWebsite
in interfaceIUrls
- Returns:
- the OSM website URL
-
getOSMWiki
public String getOSMWiki()
Description copied from interface:IUrls
Returns the OSM wiki URL.- Specified by:
getOSMWiki
in interfaceIUrls
- Returns:
- the OSM wiki URL
-
getDefaultOsmApiUrl
public String getDefaultOsmApiUrl()
Description copied from interface:IUrls
Returns the default OSM API URL.- Specified by:
getDefaultOsmApiUrl
in interfaceIUrls
- Returns:
- the default OSM API URL
-
-