Class ArcGISRestMapProviderSetting
- java.lang.Object
-
- com.supermap.services.components.spi.MapProviderSetting
-
- com.supermap.services.providers.ArcGISRestMapProviderSetting
-
- All Implemented Interfaces:
- java.io.Serializable
public class ArcGISRestMapProviderSetting extends MapProviderSetting
ArcGIS Rest map service provider configuration object
This object is used by the ArcGIS Rest map service provider to include the relevant parameter information, including: Rest map service address; user name; password.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.supermap.services.components.spi.MapProviderSetting
dataPrjCoordSysType, watermark
-
-
Constructor Summary
Constructors Constructor and Description ArcGISRestMapProviderSetting()
-
Method Summary
Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)To determine whether the two objects are equal.booleangetCacheEnabled()The cache is opened or not.java.lang.StringgetGetTokenUrl()Get the ArcGIS Token service address.java.lang.StringgetHttpReferer()Gets HTTP_referer to access the ArcGIS REST service.java.lang.StringgetPassword()Get the user name to access the ArcGIS Rest service.java.lang.StringgetRestServiceRootURL()Get the address of ArcGIS Rest map service.static longgetSerialversionuid()Get the UID of the service version.java.lang.StringgetToken()Get the Token that accesses the ArcGIS REST service.java.lang.StringgetUserName()Get the user name to access the ArcGIS Rest service.inthashCode()Gets the hash value of the object instancevoidsetCacheEnabled(boolean cacheEnabled)The cache is opened or not.voidsetGetTokenUrl(java.lang.String getTokenUrl)Set the ArcGIS Token service address.voidsetHttpReferer(java.lang.String httpReferer)Sets HTTP_referer to access the ArcGIS REST service.voidsetPassword(java.lang.String password)Set the password to access the ArcGIS Rest service.voidsetRestServiceRootURL(java.lang.String restServiceRootURL)Set the ArcGIS Rest map service address.voidsetToken(java.lang.String token)Set the Token to access the ArcGIS REST service.voidsetUserName(java.lang.String userName)Set the user name to access the ArcGIS Rest service.-
Methods inherited from class com.supermap.services.components.spi.MapProviderSetting
getCacheMode, getCacheVersion, getName, getOutputPath, getOutputSite, getWatermark, setCacheMode, setCacheVersion, setName, setOutputPath, setOutputSite, setWatermark
-
-
-
-
Method Detail
-
getRestServiceRootURL
public java.lang.String getRestServiceRootURL()
Get the address of ArcGIS Rest map service.- Returns:
-
setRestServiceRootURL
public void setRestServiceRootURL(java.lang.String restServiceRootURL)
Set the ArcGIS Rest map service address.- Parameters:
restServiceRootURL-
-
getUserName
public java.lang.String getUserName()
Get the user name to access the ArcGIS Rest service.- Returns:
-
setUserName
public void setUserName(java.lang.String userName)
Set the user name to access the ArcGIS Rest service.- Parameters:
userName-
-
getPassword
public java.lang.String getPassword()
Get the user name to access the ArcGIS Rest service.- Returns:
-
setPassword
public void setPassword(java.lang.String password)
Set the password to access the ArcGIS Rest service.- Parameters:
password-
-
getGetTokenUrl
public java.lang.String getGetTokenUrl()
Get the ArcGIS Token service address.
This parameter is valid only for security authentication in "username / password" mode and is allowed to be empty. When the parameter is empty, the system automatically processes as {rootUrl} / tokens. Such as :when
ArcGISRestMapProviderSetting#restServiceRootURLis http://127.0.0.1:6080/arcgis/rest/services/Sample/MapServer, Token service address is automatically processed as http://127.0.0.1:6080/arcgis/tokens.- Returns:
-
setGetTokenUrl
public void setGetTokenUrl(java.lang.String getTokenUrl)
Set the ArcGIS Token service address.
This parameter is valid only for security authentication in "username / password" mode and is allowed to be empty. When the parameter is empty, the system automatically processes as {rootUrl} / tokens. Such as :when
ArcGISRestMapProviderSetting#restServiceRootURLis http://127.0.0.1:6080/arcgis/rest/services/Sample/MapServer, Token service address is automatically processed as http://127.0.0.1:6080/arcgis/tokens.- Parameters:
getTokenUrl-
-
getSerialversionuid
public static long getSerialversionuid()
Get the UID of the service version.- Returns:
-
getCacheEnabled
public boolean getCacheEnabled()
The cache is opened or not.- Returns:
-
setCacheEnabled
public void setCacheEnabled(boolean cacheEnabled)
The cache is opened or not.- Parameters:
cacheEnabled-
-
getToken
public java.lang.String getToken()
Get the Token that accesses the ArcGIS REST service.
When the user name,password and Token are configured at the same time, token authentication is required.
- Returns:
-
setToken
public void setToken(java.lang.String token)
Set the Token to access the ArcGIS REST service.
When the user name,password and Token are configured at the same time, token authentication is required.
- Parameters:
token- token
-
getHttpReferer
public java.lang.String getHttpReferer()
Gets HTTP_referer to access the ArcGIS REST service. When using a Token in the form of HTTP Referer, you need to set this value.
- Returns:
-
setHttpReferer
public void setHttpReferer(java.lang.String httpReferer)
Sets HTTP_referer to access the ArcGIS REST service. When using a Token in the form of HTTP Referer, you need to set this value.
- Parameters:
httpReferer- HTTP referer
-
equals
public boolean equals(java.lang.Object obj)
To determine whether the two objects are equal.
- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object to be compared.- Returns:
- a value indicating whether the two objects are equal, true that the two objects are equal.
-
hashCode
public int hashCode()
Gets the hash value of the object instance- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash value
-
-