com.supermap.services
Interface ResponseCallback
-
public interface ResponseCallbackThe response callback function. Auto callback during the interaction between client and server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddFeatureSuccess(int smid)Callback when successfully adding Feature, and return this Feature SmId.voiddataServiceFinished(java.lang.String strMsg)Called after the data service finishes, e.g., call this method after the dataset download, update, or submit finishes, and it will call requestFaild() when there is exception during performing these services.voidreceiveResponse(FeatureSet featureset)Callback when received the response result from the server.voidrequestFailed(java.lang.String errorMsg)Calls back when it is failed to request the server.voidrequestSuccess()Callback when request the server successfully.
-
-
-
Method Detail
-
requestFailed
void requestFailed(java.lang.String errorMsg)
Calls back when it is failed to request the server.- Parameters:
errorMsg- Error information
-
requestSuccess
void requestSuccess()
Callback when request the server successfully.
-
receiveResponse
void receiveResponse(FeatureSet featureset)
Callback when received the response result from the server. When the user uses a specified service, the data result will be returned from the server side based on this callback function.- Parameters:
featureset- Element set returned from the server side
-
dataServiceFinished
void dataServiceFinished(java.lang.String strMsg)
Called after the data service finishes, e.g., call this method after the dataset download, update, or submit finishes, and it will call requestFaild() when there is exception during performing these services.- Parameters:
strMsg- Finish information provided when the service finishes, e.g., "The dataset downloading finishes", "The dataset updating succeeds", etc.
-
addFeatureSuccess
void addFeatureSuccess(int smid)
Callback when successfully adding Feature, and return this Feature SmId.- Parameters:
smid- Add Feature SmId
-
-