|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsync4j.syncclient.spds.BaseSyncMLClient
sync4j.syncclient.spds.XMLSyncMLClient
Implement send / receive message in XML format by HttpConnection
The charSet is specified with the system property
spds.charset
;
if DEFAULT
value, the default charSet value is taken.
if no value, the default charSet API UTF-8 value is taken.
Constructor Summary
XMLSyncMLClient()
Method Summary
void
addSyncTransportListener(SyncTransportListener listener)
Register a new SyncTransportListener.
java.lang.String
getCharSet()
Getter for property charSet.
java.lang.String
getProxyHost()
Getter for property proxyHost.
int
getProxyPort()
Getter for property proxyPort.
int
getTimeout()
Getter for property timeout.
boolean
getUseProxy()
Getter for property useProxy.
void
removeSyncTransportListener(SyncTransportListener listener)
Remove the specified SyncTransportListener.
protected java.lang.String
sendMessage(byte[] bytes)
java.lang.String
sendMessage(java.lang.String msg)
java.lang.String
sendMessage(java.lang.String msg,
java.lang.String charSet)
void
setCharSet(java.lang.String charSet)
Setter for property charSet
void
setContentType(java.lang.String contentType)
Setter for property contentType
void
setProxyHost(java.lang.String proxyHost)
Setter for property proxyHost.
void
setProxyPort(int proxyPort)
Setter for property proxyPort.
void
setTimeout(int timeout)
Setter for property timeout.
void
setUrl(java.lang.String url)
Setter for property url.
void
setUseProxy(boolean useProxy)
Setter for property userProxy.
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructor Detail
XMLSyncMLClient
public XMLSyncMLClient()
Method Detail
sendMessage
public java.lang.String sendMessage(java.lang.String msg)
throws java.io.IOException
sendMessage
in interface SyncMLClient
java.io.IOException
sendMessage
public java.lang.String sendMessage(java.lang.String msg,
java.lang.String charSet)
throws java.io.IOException
sendMessage
in interface SyncMLClient
java.io.IOException
getCharSet
public java.lang.String getCharSet()
setCharSet
public void setCharSet(java.lang.String charSet)
charSet
- New value of property charSet.
setContentType
public void setContentType(java.lang.String contentType)
contentType
- New value of property contentType.
getTimeout
public int getTimeout()
setTimeout
public void setTimeout(int timeout)
timeout
- New value of property timeout.
getProxyHost
public java.lang.String getProxyHost()
setProxyHost
public void setProxyHost(java.lang.String proxyHost)
proxyHost
- New value of property proxyHost.
getProxyPort
public int getProxyPort()
setProxyPort
public void setProxyPort(int proxyPort)
proxyPort
- New value of property proxyPort.
getUseProxy
public boolean getUseProxy()
setUseProxy
public void setUseProxy(boolean useProxy)
useProxy
- New value of property userProxy.
setUrl
public void setUrl(java.lang.String url)
throws java.io.IOException
url
- New value of property url.
java.io.IOException
addSyncTransportListener
public void addSyncTransportListener(SyncTransportListener listener)
listener
-
removeSyncTransportListener
public void removeSyncTransportListener(SyncTransportListener listener)
listener
-
toString
public java.lang.String toString()
sendMessage
protected java.lang.String sendMessage(byte[] bytes)
throws java.io.IOException
java.io.IOException
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2003-2005 Sync4j.