public class DefaultProfileTransport extends AbstractKaaTransport implements ProfileTransport
channelManager, clientState
Constructor and Description |
---|
DefaultProfileTransport() |
Modifier and Type | Method and Description |
---|---|
org.kaaproject.kaa.common.endpoint.gen.ProfileSyncRequest |
createProfileRequest()
Creates a new Profile update request.
|
protected org.kaaproject.kaa.common.TransportType |
getTransportType() |
void |
onProfileResponse(org.kaaproject.kaa.common.endpoint.gen.ProfileSyncResponse response)
Updates the state of the Profile manager from the given response.
|
void |
setClientProperties(KaaClientProperties properties)
Sets the given client's properties.
|
void |
setProfileManager(ProfileManager manager)
Sets the given Profile manager.
|
void |
sync()
Sends the update request to the server.
|
setChannelManager, setClientState, syncAck, syncAck, syncAckByType, syncAll, syncByType, syncByType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setChannelManager, setClientState
public void sync()
KaaTransport
sync
in interface KaaTransport
sync
in class AbstractKaaTransport
public org.kaaproject.kaa.common.endpoint.gen.ProfileSyncRequest createProfileRequest() throws IOException
ProfileTransport
createProfileRequest
in interface ProfileTransport
IOException
ProfileSyncRequest
public void onProfileResponse(org.kaaproject.kaa.common.endpoint.gen.ProfileSyncResponse response) throws Exception
ProfileTransport
onProfileResponse
in interface ProfileTransport
response
- the response from the server.Exception
ProfileSyncResponse
public void setProfileManager(ProfileManager manager)
ProfileTransport
setProfileManager
in interface ProfileTransport
manager
- the Profile manager to be set.ProfileManager
public void setClientProperties(KaaClientProperties properties)
ProfileTransport
setClientProperties
in interface ProfileTransport
properties
- the client's properties to be set.KaaClientProperties
protected org.kaaproject.kaa.common.TransportType getTransportType()
getTransportType
in class AbstractKaaTransport
Copyright © 2015. All rights reserved.