• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            大龍的博客

            常用鏈接

            統(tǒng)計

            最新評論

            Question about URLConnection

            I have found that class "URLConnection" has methods to establish a connection, for example, method "openConnection" and method "connect". But I have not found any methods of this class which are dealing with disconnect. I am wondering if I use class "URLConnection" to establish an HTTP connection to a remote host, what is the correct, clean and efficient approach to disconnect from remote host or close the connection.

            1) for HTTP why not use HttpURLConnection instead?
            2) HTTP is a stateless protocol meaning the server will close the connection for you.
            3) if you close all streams you get from the URLConnection the connection is gone.


            posted on 2011-09-23 05:22 大龍 閱讀(243) 評論(0)  編輯 收藏 引用


            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            久久婷婷五月综合色奶水99啪| 色综合久久久久无码专区| 久久夜色精品国产噜噜亚洲AV| 国产 亚洲 欧美 另类 久久| 久久精品嫩草影院| 亚洲AⅤ优女AV综合久久久| 久久综合给合久久狠狠狠97色| 国产A级毛片久久久精品毛片| 亚洲国产精品成人久久| 九九久久99综合一区二区| 91精品观看91久久久久久| 久久久无码精品亚洲日韩京东传媒 | 久久福利青草精品资源站| 色综合久久精品中文字幕首页| 中文字幕无码久久精品青草| 狠狠色丁香久久综合婷婷| 日韩一区二区三区视频久久| 狠狠色婷婷综合天天久久丁香| 亚洲人成无码www久久久| 人妻少妇久久中文字幕| 无码人妻少妇久久中文字幕| 精品人妻伦九区久久AAA片69| 久久国产精品成人免费| 亚洲精品无码久久不卡| 久久av高潮av无码av喷吹| 久久r热这里有精品视频| 久久久久人妻一区精品性色av| 久久久久久久精品妇女99| 亚洲国产高清精品线久久| 国内精品久久久久久麻豆| 国产精品热久久毛片| 国产一区二区三区久久精品| 久久久av波多野一区二区| 久久午夜羞羞影院免费观看| 九九精品99久久久香蕉| 97久久超碰国产精品旧版| 国产精品久久久久久搜索| 人人狠狠综合久久亚洲88| 国产成人久久精品区一区二区| 久久综合狠狠色综合伊人| 国产精品久久国产精品99盘|