首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

webservice以及线程运用2

2012-11-08 
webservice以及线程应用2/*** 初始化客户端** @return*/public static Client initClient(String url){Cli

webservice以及线程应用2
/**
     * 初始化客户端
     *
     * @return
     */
    public static Client initClient(String url)
    {
        Client client = null;
        try
        {
            client = new Client(new URL(url));
        }
        catch (MalformedURLException e)
        {
            logger.error("The webservice url for PLS is malformed.", e);
        }
        catch (Exception e)
        {
            logger.error("Exception occur when Init webservice client.", e);
        }
        return client;
    }

热点排行