com.universaldevices.autoupdate
Interface IUpdateHandler

All Known Implementing Classes:
UDProxyDevice

public interface IUpdateHandler

This interface is implemented by objects which have the capability of affecting the ISY file structure. UDProxyDevice implements this interface and no other objects should try to implement this interface

Author:
UD Architect

Method Summary
 NetworkConfig getNetworkConfig()
           
 boolean isClientAuthenticated()
           
 boolean reboot(java.lang.String path)
           
 IUpdaterResponse requestProgramUpdate(java.lang.String path, int content_len)
          Tells ISY to prepare itself for a file upload
 boolean saveAndProcessSystemConfigurationFile(java.lang.String name, java.lang.String content)
           
 boolean uploadFile(java.lang.String path, byte[] body, char flag, IUpdaterClient view)
           
 boolean verifyUpdatePackage(java.io.InputStream is, long size)
           
 

Method Detail

requestProgramUpdate

IUpdaterResponse requestProgramUpdate(java.lang.String path,
                                      int content_len)
Tells ISY to prepare itself for a file upload

Parameters:
path - - the path to which the file is uploaded
content_len - - the content length of the file being uploaded
Returns:
- IUpdaterResponse if successful

uploadFile

boolean uploadFile(java.lang.String path,
                   byte[] body,
                   char flag,
                   IUpdaterClient view)

reboot

boolean reboot(java.lang.String path)

isClientAuthenticated

boolean isClientAuthenticated()

verifyUpdatePackage

boolean verifyUpdatePackage(java.io.InputStream is,
                            long size)

getNetworkConfig

NetworkConfig getNetworkConfig()

saveAndProcessSystemConfigurationFile

boolean saveAndProcessSystemConfigurationFile(java.lang.String name,
                                              java.lang.String content)