|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface contains the factory methods for ISync.
Method Summary | |
boolean |
acceptsURL(java.lang.String uri)
Tests if this provider supports the specified protocol in the uri. |
ISyncService |
createSyncService(java.lang.String uri,
java.lang.Object propObj)
Gets a synchronization service instance. |
ISyncService |
createSyncService(java.lang.String host,
java.lang.String port,
java.lang.String user,
java.lang.String password)
Deprecated. See other createSyncService methods. |
java.lang.String |
getBuildDate()
Gets the build date of the provider. |
int |
getVersion()
Returns the version of this product in a 32-bit unsigned integer in the format of 0xMMNNRRXX, where MM, NN, and RR are hexadecimal representation of major, minor, and modification version numbers respectively, and XX is reserved. |
Method Detail |
public ISyncService createSyncService(java.lang.String host, java.lang.String port, java.lang.String user, java.lang.String password) throws ISyncException
host
- server hostname or IP addressport
- port numberuser
- user ID for DB2 Everyplace Sync Serverpassword
- password for DB2 Everyplace Sync Server
throws
- ISyncException with code:
ISyncException
ISyncConfigStore
public ISyncService createSyncService(java.lang.String uri, java.lang.Object propObj) throws ISyncException
DB2e encodings:
Win32 and Palm have default encodings of Cp1252. Win32 unicode, WinCE, and Symbian should only use "UnicodeLittle" (default). Linux and QNX Neutrino should use "UTF-8".
uri
- [protocol]+[url] or [url]propObj
- Object which is an instance of Properties, user and
password are used for the DB2 Everyplace Sync Server
authentication.
See specific implementations for what properties may be set.
MIDP accepts a Hashtable since there are no Properties.
throws
- ISyncException with code:
An example of how to use the propObj parameter:
Properties prop = new Properties():
prop.put("isync.user", "nurse1");
prop.put("isync.password", "nurse1");
prop.put("isync.encoding", "Cp1252");
prop.put("isync.trace", "default");
prop.put("isync.messagesize", "64000");
provider.createSyncService("http://localhost:8080", prop);
ISyncException
ISyncConfigStore
,
ISync
public int getVersion() throws ISyncException
ISyncException
- with code:
public java.lang.String getBuildDate() throws ISyncException
ISyncException
public boolean acceptsURL(java.lang.String uri)
uri
- a String uri
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |