亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? httpmethodbase.java

?? 高性能分詞算法
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
    }    /**     * Returns the response body of the HTTP method, if any, as a {@link String}.      * If response body is not available or cannot be read, returns <tt>null</tt>     * The string conversion on the data is done using the character encoding specified     * in <tt>Content-Type</tt> header.     *      * Note: This will cause the entire response body to be buffered in memory. A     * malicious server may easily exhaust all the VM memory. It is strongly     * recommended, to use getResponseAsStream if the content length of the response     * is unknown or resonably large.     *      * @return The response body.     *      * @throws IOException If an I/O (transport) problem occurs while obtaining the      * response body.     */    public String getResponseBodyAsString() throws IOException {        byte[] rawdata = null;        if (responseAvailable()) {            rawdata = getResponseBody();        }        if (rawdata != null) {            return EncodingUtil.getString(rawdata, getResponseCharSet());        } else {            return null;        }    }    /**     * Returns an array of the response footers that the HTTP method currently has     * in the order in which they were read.     *     * @return an array of footers     */    public Header[] getResponseFooters() {        return getResponseTrailerHeaderGroup().getAllHeaders();    }    /**     * Gets the response footer associated with the given name.     * Footer name matching is case insensitive.     * <tt>null</tt> will be returned if either <i>footerName</i> is     * <tt>null</tt> or there is no matching footer for <i>footerName</i>     * or there are no footers available.  If there are multiple footers     * with the same name, there values will be combined with the ',' separator     * as specified by RFC2616.     *      * @param footerName the footer name to match     * @return the matching footer     */    public Header getResponseFooter(String footerName) {        if (footerName == null) {            return null;        } else {            return getResponseTrailerHeaderGroup().getCondensedHeader(footerName);        }    }    /**     * Sets the response stream.     * @param responseStream The new response stream.     */    protected void setResponseStream(InputStream responseStream) {        this.responseStream = responseStream;    }    /**     * Returns a stream from which the body of the current response may be read.     * If the method has not yet been executed, if <code>responseBodyConsumed</code>     * has been called, or if the stream returned by a previous call has been closed,     * <code>null</code> will be returned.     *     * @return the current response stream     */    protected InputStream getResponseStream() {        return responseStream;    }        /**     * Returns the status text (or "reason phrase") associated with the latest     * response.     *      * @return The status text.     */    public String getStatusText() {        return statusLine.getReasonPhrase();    }    /**     * Defines how strictly HttpClient follows the HTTP protocol specification       * (RFC 2616 and other relevant RFCs). In the strict mode HttpClient precisely     * implements the requirements of the specification, whereas in non-strict mode      * it attempts to mimic the exact behaviour of commonly used HTTP agents,      * which many HTTP servers expect.     *      * @param strictMode <tt>true</tt> for strict mode, <tt>false</tt> otherwise     *      * @deprecated Use {@link org.apache.commons.httpclient.params.HttpParams#setParameter(String, Object)}     * to exercise a more granular control over HTTP protocol strictness.     */    public void setStrictMode(boolean strictMode) {        if (strictMode) {            this.params.makeStrict();        } else {            this.params.makeLenient();        }    }    /**     * @deprecated Use {@link org.apache.commons.httpclient.params.HttpParams#setParameter(String, Object)}     * to exercise a more granular control over HTTP protocol strictness.     *     * @return <tt>false</tt>     */    public boolean isStrictMode() {        return false;    }    /**     * Adds the specified request header, NOT overwriting any previous value.     * Note that header-name matching is case insensitive.     *     * @param headerName the header's name     * @param headerValue the header's value     */    public void addRequestHeader(String headerName, String headerValue) {        addRequestHeader(new Header(headerName, headerValue));    }    /**     * Tests if the connection should be force-closed when no longer needed.     *      * @return <code>true</code> if the connection must be closed     */    protected boolean isConnectionCloseForced() {        return this.connectionCloseForced;    }    /**     * Sets whether or not the connection should be force-closed when no longer      * needed. This value should only be set to <code>true</code> in abnormal      * circumstances, such as HTTP protocol violations.      *      * @param b <code>true</code> if the connection must be closed, <code>false</code>     * otherwise.     */    protected void setConnectionCloseForced(boolean b) {        if (LOG.isDebugEnabled()) {            LOG.debug("Force-close connection: " + b);        }        this.connectionCloseForced = b;    }    /**     * Tests if the connection should be closed after the method has been executed.     * The connection will be left open when using HTTP/1.1 or if <tt>Connection:      * keep-alive</tt> header was sent.     *      * @param conn the connection in question     *      * @return boolean true if we should close the connection.     */    protected boolean shouldCloseConnection(HttpConnection conn) {        // Connection must be closed due to an abnormal circumstance         if (isConnectionCloseForced()) {            LOG.debug("Should force-close connection.");            return true;        }        Header connectionHeader = null;        // In case being connected via a proxy server        if (!conn.isTransparent()) {            // Check for 'proxy-connection' directive            connectionHeader = responseHeaders.getFirstHeader("proxy-connection");        }        // In all cases Check for 'connection' directive        // some non-complaint proxy servers send it instread of        // expected 'proxy-connection' directive        if (connectionHeader == null) {            connectionHeader = responseHeaders.getFirstHeader("connection");        }        // In case the response does not contain any explict connection        // directives, check whether the request does        if (connectionHeader == null) {            connectionHeader = requestHeaders.getFirstHeader("connection");        }        if (connectionHeader != null) {            if (connectionHeader.getValue().equalsIgnoreCase("close")) {                if (LOG.isDebugEnabled()) {                    LOG.debug("Should close connection in response to directive: "                         + connectionHeader.getValue());                }                return true;            } else if (connectionHeader.getValue().equalsIgnoreCase("keep-alive")) {                if (LOG.isDebugEnabled()) {                    LOG.debug("Should NOT close connection in response to directive: "                         + connectionHeader.getValue());                }                return false;            } else {                if (LOG.isDebugEnabled()) {                    LOG.debug("Unknown directive: " + connectionHeader.toExternalForm());                }            }        }        LOG.debug("Resorting to protocol version default close connection policy");        // missing or invalid connection header, do the default        if (this.effectiveVersion.greaterEquals(HttpVersion.HTTP_1_1)) {            if (LOG.isDebugEnabled()) {                LOG.debug("Should NOT close connection, using " + this.effectiveVersion.toString());            }        } else {            if (LOG.isDebugEnabled()) {                LOG.debug("Should close connection, using " + this.effectiveVersion.toString());            }        }        return this.effectiveVersion.lessEquals(HttpVersion.HTTP_1_0);    }        /**     * Tests if the this method is ready to be executed.     *      * @param state the {@link HttpState state} information associated with this method     * @param conn the {@link HttpConnection connection} to be used     * @throws HttpException If the method is in invalid state.     */    private void checkExecuteConditions(HttpState state, HttpConnection conn)    throws HttpException {        if (state == null) {            throw new IllegalArgumentException("HttpState parameter may not be null");        }        if (conn == null) {            throw new IllegalArgumentException("HttpConnection parameter may not be null");        }        if (this.aborted) {            throw new IllegalStateException("Method has been aborted");        }        if (!validate()) {            throw new ProtocolException("HttpMethodBase object not valid");        }    }    /**     * Executes this method using the specified <code>HttpConnection</code> and     * <code>HttpState</code>.      *     * @param state {@link HttpState state} information to associate with this     *        request. Must be non-null.     * @param conn the {@link HttpConnection connection} to used to execute     *        this HTTP method. Must be non-null.     *     * @return the integer status code if one was obtained, or <tt>-1</tt>     *     * @throws IOException if an I/O (transport) error occurs     * @throws HttpException  if a protocol exception occurs.     */    public int execute(HttpState state, HttpConnection conn)        throws HttpException, IOException {                        LOG.trace("enter HttpMethodBase.execute(HttpState, HttpConnection)");        // this is our connection now, assign it to a local variable so         // that it can be released later        this.responseConnection = conn;        checkExecuteConditions(state, conn);        this.statusLine = null;        this.connectionCloseForced = false;        conn.setLastResponseInputStream(null);        // determine the effective protocol version        if (this.effectiveVersion == null) {            this.effectiveVersion = this.params.getVersion();         }        writeRequest(state, conn);        this.requestSent = true;        readResponse(state, conn);        // the method has successfully executed        used = true;         return statusLine.getStatusCode();    }    /**     * Aborts the execution of this method.     *      * @since 3.0     */    public void abort() {        if (this.aborted) {            return;        }        this.aborted = true;        HttpConnection conn = this.responseConnection;         if (conn != null) {            conn.close();        }    }    /**     * Returns <tt>true</tt> if the HTTP method has been already {@link #execute executed},     * but not {@link #recycle recycled}.     *      * @return <tt>true</tt> if the method has been executed, <tt>false</tt> otherwise     */    public boolean hasBeenUsed() {        return used;    }    /**     * Recycles the HTTP method so that it can be used again.     * Note that all of the instance variables will be reset     * once this method has been called. This method will also     * release the connection being used by this HTTP method.     *      * @see #releaseConnection()     *      * @deprecated no longer supported and will be removed in the future     *             version of HttpClient     */    public void recycle() {        LOG.trace("enter HttpMethodBase.recycle()");        releaseConnection();        path = null;        followRedirects = false;        doAuthentication = true;        queryString = null;        getRequestHeaderGroup().clear();        getResponseHeaderGroup().clear();        getResponseTrailerHeaderGroup().clear();        statusLine = null;        effectiveVersion = null;        aborted = false;        used = false;        params = new HttpMethodParams();        responseBody = null;        recoverableExceptionCount = 0;        connectionCloseForced = false;        hostAuthState.invalidate();        proxyAuthState.invalidate();        cookiespec = null;        requestSent = false;    }    /**     * Releases the connection being used by this HTTP method. In particular the     * connection is used to read the response(if there is one) and will be held     * until the response has been read. If the connection can be reused by other      * HTTP methods it is NOT closed at this point.     *     * @since 2.0     */    public void releaseConnection() {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区三区四区五区黄 | 欧美女孩性生活视频| 日韩欧美你懂的| 一区二区三区四区精品在线视频| 国产黑丝在线一区二区三区| 91精品欧美久久久久久动漫| 亚洲日本一区二区| www.亚洲激情.com| 日韩美女视频一区| 91在线一区二区三区| 国产精品丝袜一区| 成人午夜在线视频| 中文av字幕一区| 国产mv日韩mv欧美| 欧美色图第一页| 人人精品人人爱| 久久久国产精品麻豆| 粉嫩aⅴ一区二区三区四区五区| 日本一区二区三区高清不卡| 蜜桃视频一区二区三区| 成人三级伦理片| 国产精品二区一区二区aⅴ污介绍| 国产毛片精品一区| 国产精品成人午夜| 欧美性猛片xxxx免费看久爱| 秋霞国产午夜精品免费视频| 国产日产亚洲精品系列| 91免费观看视频在线| 日韩高清不卡一区| 国产欧美日韩在线| 欧美日韩一区二区三区四区五区 | 琪琪久久久久日韩精品| 国产日韩综合av| 777精品伊人久久久久大香线蕉| 午夜av一区二区| 亚洲精品乱码久久久久久| 精品不卡在线视频| 精品视频1区2区| 成人一区二区三区视频| 麻豆精品一区二区av白丝在线| 国产精品久久久久久久久免费樱桃| 日韩手机在线导航| 99re热视频这里只精品| 国产成人综合精品三级| 精品一区二区三区视频在线观看| 亚洲欧美日韩国产另类专区| 国产欧美日韩在线视频| 69堂亚洲精品首页| 制服.丝袜.亚洲.另类.中文| 91黄色在线观看| 在线观看日韩国产| 91网站在线播放| 成人av中文字幕| 91麻豆swag| 97久久人人超碰| 日本vs亚洲vs韩国一区三区二区| 国产日韩欧美麻豆| 久久久亚洲精品石原莉奈| 2020国产精品自拍| 精品国产免费一区二区三区四区 | 欧美午夜寂寞影院| 欧美亚洲国产bt| 欧美精品粉嫩高潮一区二区| 6080国产精品一区二区| 欧美一区二区精品在线| 亚洲精品一区二区三区福利| 久久久亚洲高清| 亚洲女子a中天字幕| 亚洲成人免费电影| 国产精品综合在线视频| 97久久超碰精品国产| 91精品欧美综合在线观看最新| 日韩欧美亚洲另类制服综合在线| 久久久三级国产网站| 亚洲女与黑人做爰| 日本不卡中文字幕| 不卡高清视频专区| 日韩三级精品电影久久久 | 国产精品视频麻豆| 香蕉久久夜色精品国产使用方法 | 国产剧情一区二区| 91久久精品一区二区三| 久久综合久久99| 亚洲一区在线观看视频| 久久99精品久久久久久| 色综合久久天天综合网| 欧美精品一区二区在线观看| 亚洲国产日日夜夜| 亚洲小少妇裸体bbw| 亚洲成人福利片| 欧洲生活片亚洲生活在线观看| 久久久久国色av免费看影院| 午夜精品国产更新| 欧美性生活一区| 亚洲欧美日韩国产手机在线 | 国产精品乡下勾搭老头1| 制服丝袜成人动漫| 日韩国产欧美在线播放| 在线观看不卡一区| 一区二区三区日韩| 欧美日韩精品福利| 五月婷婷色综合| 欧美一级久久久| 久久99国产精品尤物| 日本乱人伦aⅴ精品| 一区二区三区欧美日| 色噜噜狠狠色综合中国| 亚洲国产综合91精品麻豆| 欧美性生活久久| 久久国产精品一区二区| 精品国产一区二区三区忘忧草| 久久99精品国产麻豆不卡| 精品国产百合女同互慰| 国产成人综合视频| 亚洲综合在线五月| 91精品国产入口在线| 岛国一区二区三区| 一区二区三区蜜桃| 精品国产乱码久久久久久牛牛| 国产乱人伦精品一区二区在线观看| 国产日韩欧美精品一区| 欧美日韩精品免费观看视频 | 国产精品自在欧美一区| 国产女人aaa级久久久级 | caoporm超碰国产精品| 亚洲成av人片一区二区梦乃| 久久久久久久久蜜桃| 972aa.com艺术欧美| 亚洲黄色小说网站| 一本久久a久久精品亚洲| 免费在线观看视频一区| 亚洲精品视频免费观看| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 欧美一区二区三区日韩| 成a人片国产精品| 精品一区二区三区不卡| 亚洲国产裸拍裸体视频在线观看乱了| 欧美一级日韩不卡播放免费| 91热门视频在线观看| 国产一区二区三区电影在线观看| 五月综合激情网| 亚洲成人自拍一区| 亚洲视频中文字幕| 国产精品国产成人国产三级| 精品国内二区三区| 精品sm在线观看| 欧美大尺度电影在线| 91精品国产综合久久小美女| 日本久久一区二区| 高清免费成人av| 国产成人在线看| 国产成人一区二区精品非洲| 国产精品亚洲专一区二区三区| 韩国欧美国产1区| 国产在线国偷精品免费看| 国产乱码一区二区三区| 成人免费观看视频| 91丨porny丨蝌蚪视频| 色呦呦国产精品| 在线不卡中文字幕播放| 欧美电影免费观看高清完整版| 欧美精品一二三四| 久久亚洲春色中文字幕久久久| 久久久久久久精| 夜夜嗨av一区二区三区四季av | 午夜视频一区二区三区| 国产在线不卡视频| 91久久香蕉国产日韩欧美9色| 欧美精品第一页| 国产三级欧美三级| 日韩av在线发布| 奇米色一区二区| 美国毛片一区二区| 成人av在线资源| 宅男噜噜噜66一区二区66| 久久久久久久av麻豆果冻| 亚洲四区在线观看| 久久国产精品露脸对白| 欧洲视频一区二区| 欧美激情综合在线| 免费成人结看片| 欧美精品电影在线播放| 亚洲天堂a在线| 国产99久久久精品| 日韩欧美一区在线| 五月综合激情日本mⅴ| 91理论电影在线观看| 久久精品人人做人人综合| 免费一区二区视频| 欧美二区在线观看| 亚洲精品菠萝久久久久久久| 不卡的av网站| 国产欧美日韩三级| 国产剧情一区在线| 国产网站一区二区| 国产高清亚洲一区| 国产日韩欧美亚洲| www.性欧美| 亚洲欧美韩国综合色| 91高清在线观看|