Class JosmUrls
- java.lang.Object
-
- org.openstreetmap.josm.data.preferences.JosmUrls
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classJosmUrls.InstanceHolder
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringDEFAULT_API_URLpublic URL of the standard OSM API.private static java.lang.StringJOSM_WEBSITEThe JOSM website URL.private static java.lang.StringOSM_WEBSITEThe OSM website URL.private static java.lang.StringOSM_WIKIThe OSM wiki URL.
-
Constructor Summary
Constructors Modifier Constructor Description privateJosmUrls()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseBrowseUrl()Replies the base URL for browsing information about a primitive.java.lang.StringgetBaseUserUrl()Replies the base URL for browsing information about a user.java.lang.StringgetDefaultOsmApiUrl()Returns the default OSM API URL.static JosmUrlsgetInstance()Returns the unique instance.java.lang.StringgetJOSMWebsite()Returns the JOSM website URL.java.lang.StringgetOSMWebsite()Returns the OSM website URL.java.lang.StringgetOSMWebsiteDependingOnSelectedApi()Returns the OSM website URL depending on the selected OSM API.java.lang.StringgetOSMWiki()Returns the OSM wiki URL.java.lang.StringgetXMLBase()Returns the JOSM XML URL.
-
-
-
Field Detail
-
JOSM_WEBSITE
private static final java.lang.String JOSM_WEBSITE
The JOSM website URL.- See Also:
- Constant Field Values
-
OSM_WEBSITE
private static final java.lang.String OSM_WEBSITE
The OSM website URL.- See Also:
- Constant Field Values
-
OSM_WIKI
private static final java.lang.String OSM_WIKI
The OSM wiki URL.- See Also:
- Constant Field Values
-
DEFAULT_API_URL
private static final java.lang.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 java.lang.String getOSMWebsiteDependingOnSelectedApi()
Description copied from interface:IUrlsReturns the OSM website URL depending on the selected OSM API.- Specified by:
getOSMWebsiteDependingOnSelectedApiin interfaceIUrls- Returns:
- the OSM website URL depending on the selected OSM API
-
getBaseBrowseUrl
public java.lang.String getBaseBrowseUrl()
Description copied from interface:IUrlsReplies the base URL for browsing information about a primitive.- Specified by:
getBaseBrowseUrlin interfaceIUrls- Returns:
- the base URL, i.e. https://www.openstreetmap.org
-
getBaseUserUrl
public java.lang.String getBaseUserUrl()
Description copied from interface:IUrlsReplies the base URL for browsing information about a user.- Specified by:
getBaseUserUrlin interfaceIUrls- Returns:
- the base URL, i.e. https://www.openstreetmap.org/user
-
getJOSMWebsite
public java.lang.String getJOSMWebsite()
Description copied from interface:IUrlsReturns the JOSM website URL.- Specified by:
getJOSMWebsitein interfaceIUrls- Returns:
- the josm website URL
-
getXMLBase
public java.lang.String getXMLBase()
Description copied from interface:IUrlsReturns the JOSM XML URL.- Specified by:
getXMLBasein interfaceIUrls- Returns:
- the JOSM XML URL
-
getOSMWebsite
public java.lang.String getOSMWebsite()
Description copied from interface:IUrlsReturns the OSM website URL.- Specified by:
getOSMWebsitein interfaceIUrls- Returns:
- the OSM website URL
-
getOSMWiki
public java.lang.String getOSMWiki()
Description copied from interface:IUrlsReturns the OSM wiki URL.- Specified by:
getOSMWikiin interfaceIUrls- Returns:
- the OSM wiki URL
-
getDefaultOsmApiUrl
public java.lang.String getDefaultOsmApiUrl()
Description copied from interface:IUrlsReturns the default OSM API URL.- Specified by:
getDefaultOsmApiUrlin interfaceIUrls- Returns:
- the default OSM API URL
-
-