com.funambol.syncclient.spds.util
Class URLTools

java.lang.Object
  extended by com.funambol.syncclient.spds.util.URLTools

public class URLTools
extends java.lang.Object

Version:
$Id: URLTools.java 311 2009-01-18 18:48:34Z nichele $

Constructor Summary
URLTools()
           
 
Method Summary
static java.lang.String replaceServer(java.lang.String syncmlURL, java.lang.String respURI)
          Replaces in the respURI the server name specified in the syncmlURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLTools

public URLTools()
Method Detail

replaceServer

public static java.lang.String replaceServer(java.lang.String syncmlURL,
                                             java.lang.String respURI)
                                      throws java.net.MalformedURLException
Replaces in the respURI the server name specified in the syncmlURL

Parameters:
syncmlURL - the syncML URL
respURI - the resp URI
Returns:
the respURI with the server specfied in the syncmlURL
Throws:
java.net.MalformedURLException - if the URLs are not valid


Copyright © 2010 Funambol. All Rights Reserved.