sync4j.syncclient.spds
Class XMLSyncMLClient

java.lang.Object
  extended bysync4j.syncclient.spds.BaseSyncMLClient
      extended bysync4j.syncclient.spds.XMLSyncMLClient
All Implemented Interfaces:
SyncMLClient

public class XMLSyncMLClient
extends sync4j.syncclient.spds.BaseSyncMLClient
implements SyncMLClient

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
 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.
protected  java.lang.String sendMessage(byte[] bytes)
           
 java.lang.String sendMessage(java.lang.String msg)
           
 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
Specified by:
sendMessage in interface SyncMLClient
Throws:
java.io.IOException

getCharSet

public java.lang.String getCharSet()
Getter for property charSet.

Returns:
Value of property charSet.

setCharSet

public void setCharSet(java.lang.String charSet)
Setter for property charSet

Parameters:
charSet - New value of property charSet.

setContentType

public void setContentType(java.lang.String contentType)
Setter for property contentType

Parameters:
contentType - New value of property contentType.

getTimeout

public int getTimeout()
Getter for property timeout.

Returns:
Value of property timeout.

setTimeout

public void setTimeout(int timeout)
Setter for property timeout. Default: 60 sec. 0 means forever

Parameters:
timeout - New value of property timeout.

getProxyHost

public java.lang.String getProxyHost()
Getter for property proxyHost.

Returns:
Value of property proxyHost.

setProxyHost

public void setProxyHost(java.lang.String proxyHost)
Setter for property proxyHost.

Parameters:
proxyHost - New value of property proxyHost.

getProxyPort

public int getProxyPort()
Getter for property proxyPort.

Returns:
Value of property proxyPort.

setProxyPort

public void setProxyPort(int proxyPort)
Setter for property proxyPort.

Parameters:
proxyPort - New value of property proxyPort.

getUseProxy

public boolean getUseProxy()
Getter for property useProxy.

Returns:
Value of property useProxy.

setUseProxy

public void setUseProxy(boolean useProxy)
Setter for property userProxy.

Parameters:
useProxy - New value of property userProxy.

setUrl

public void setUrl(java.lang.String url)
            throws java.io.IOException
Setter for property url.

Parameters:
url - New value of property url.
Throws:
java.io.IOException

sendMessage

protected java.lang.String sendMessage(byte[] bytes)
                                throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()


Copyright © 2003-2005 Sync4j.