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

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

?? httpmethodbase.java

?? 一個基于lucene&heritrix的搜索引擎
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
     * @return <tt>true</tt> to use HTTP/1.1, <tt>false</tt> to use 1.0     *      * @deprecated Use {@link HttpMethodParams#getVersion()}     */    public boolean isHttp11() {        return this.params.getVersion().equals(HttpVersion.HTTP_1_1);    }    /**     * Sets the path of the HTTP method.     * It is responsibility of the caller to ensure that the path is     * properly encoded (URL safe).     *     * @param path the path of the HTTP method. The path is expected     *        to be URL-encoded     */    public void setPath(String path) {        this.path = path;    }    /**     * Adds the specified request header, NOT overwriting any previous value.     * Note that header-name matching is case insensitive.     *     * @param header the header to add to the request     */    public void addRequestHeader(Header header) {        LOG.trace("HttpMethodBase.addRequestHeader(Header)");        if (header == null) {            LOG.debug("null header value ignored");        } else {            getRequestHeaderGroup().addHeader(header);        }    }    /**     * Use this method internally to add footers.     *      * @param footer The footer to add.     */    public void addResponseFooter(Header footer) {        getResponseTrailerHeaderGroup().addHeader(footer);    }    /**     * Gets the path of this HTTP method.     * Calling this method <em>after</em> the request has been executed will      * return the <em>actual</em> path, following any redirects automatically     * handled by this HTTP method.     *     * @return the path to request or "/" if the path is blank.     */    public String getPath() {        return (path == null || path.equals("")) ? "/" : path;    }    /**     * Sets the query string of this HTTP method. The caller must ensure that the string      * is properly URL encoded. The query string should not start with the question      * mark character.     *     * @param queryString the query string     *      * @see EncodingUtil#formUrlEncode(NameValuePair[], String)     */    public void setQueryString(String queryString) {        this.queryString = queryString;    }    /**     * Sets the query string of this HTTP method.  The pairs are encoded as UTF-8 characters.       * To use a different charset the parameters can be encoded manually using EncodingUtil      * and set as a single String.     *     * @param params an array of {@link NameValuePair}s to add as query string     *        parameters. The name/value pairs will be automcatically      *        URL encoded     *      * @see EncodingUtil#formUrlEncode(NameValuePair[], String)     * @see #setQueryString(String)     */    public void setQueryString(NameValuePair[] params) {        LOG.trace("enter HttpMethodBase.setQueryString(NameValuePair[])");        queryString = EncodingUtil.formUrlEncode(params, "UTF-8");    }    /**     * Gets the query string of this HTTP method.     *     * @return The query string     */    public String getQueryString() {        return queryString;    }    /**     * Set the specified request header, 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 setRequestHeader(String headerName, String headerValue) {        Header header = new Header(headerName, headerValue);        setRequestHeader(header);    }    /**     * Sets the specified request header, overwriting any previous value.     * Note that header-name matching is case insensitive.     *      * @param header the header     */    public void setRequestHeader(Header header) {                Header[] headers = getRequestHeaderGroup().getHeaders(header.getName());                for (int i = 0; i < headers.length; i++) {            getRequestHeaderGroup().removeHeader(headers[i]);        }                getRequestHeaderGroup().addHeader(header);            }    /**     * Returns the specified request header. Note that header-name matching is     * case insensitive. <tt>null</tt> will be returned if either     * <i>headerName</i> is <tt>null</tt> or there is no matching header for     * <i>headerName</i>.     *      * @param headerName The name of the header to be returned.     *     * @return The specified request header.     *      * @since 3.0     */    public Header getRequestHeader(String headerName) {        if (headerName == null) {            return null;        } else {            return getRequestHeaderGroup().getCondensedHeader(headerName);        }    }    /**     * Returns an array of the requests headers that the HTTP method currently has     *     * @return an array of my request headers.     */    public Header[] getRequestHeaders() {        return getRequestHeaderGroup().getAllHeaders();    }    /**     * @see org.apache.commons.httpclient.HttpMethod#getRequestHeaders(java.lang.String)     */    public Header[] getRequestHeaders(String headerName) {        return getRequestHeaderGroup().getHeaders(headerName);    }    /**     * Gets the {@link HeaderGroup header group} storing the request headers.     *      * @return a HeaderGroup     *      * @since 2.0beta1     */    protected HeaderGroup getRequestHeaderGroup() {        return requestHeaders;    }    /**     * Gets the {@link HeaderGroup header group} storing the response trailer headers      * as per RFC 2616 section 3.6.1.     *      * @return a HeaderGroup     *      * @since 2.0beta1     */    protected HeaderGroup getResponseTrailerHeaderGroup() {        return responseTrailerHeaders;    }    /**     * Gets the {@link HeaderGroup header group} storing the response headers.     *      * @return a HeaderGroup     *      * @since 2.0beta1     */    protected HeaderGroup getResponseHeaderGroup() {        return responseHeaders;    }        /**     * @see org.apache.commons.httpclient.HttpMethod#getResponseHeaders(java.lang.String)     *      * @since 3.0     */    public Header[] getResponseHeaders(String headerName) {        return getResponseHeaderGroup().getHeaders(headerName);    }    /**     * Returns the response status code.     *     * @return the status code associated with the latest response.     */    public int getStatusCode() {        return statusLine.getStatusCode();    }    /**     * Provides access to the response status line.     *     * @return the status line object from the latest response.     * @since 2.0     */    public StatusLine getStatusLine() {        return statusLine;    }    /**     * Checks if response data is available.     * @return <tt>true</tt> if response data is available, <tt>false</tt> otherwise.     */    private boolean responseAvailable() {        return (responseBody != null) || (responseStream != null);    }    /**     * Returns an array of the response headers that the HTTP method currently has     * in the order in which they were read.     *     * @return an array of response headers.     */    public Header[] getResponseHeaders() {        return getResponseHeaderGroup().getAllHeaders();    }    /**     * Gets the response header associated with the given name. Header name     * matching is case insensitive. <tt>null</tt> will be returned if either     * <i>headerName</i> is <tt>null</tt> or there is no matching header for     * <i>headerName</i>.     *     * @param headerName the header name to match     *     * @return the matching header     */    public Header getResponseHeader(String headerName) {                if (headerName == null) {            return null;        } else {            return getResponseHeaderGroup().getCondensedHeader(headerName);        }            }    /**     * Return the length (in bytes) of the response body, as specified in a     * <tt>Content-Length</tt> header.     *     * <p>     * Return <tt>-1</tt> when the content-length is unknown.     * </p>     *     * @return content length, if <tt>Content-Length</tt> header is available.      *          <tt>0</tt> indicates that the request has no body.     *          If <tt>Content-Length</tt> header is not present, the method      *          returns  <tt>-1</tt>.     */    public long getResponseContentLength() {        Header[] headers = getResponseHeaderGroup().getHeaders("Content-Length");        if (headers.length == 0) {            return -1;        }        if (headers.length > 1) {            LOG.warn("Multiple content-length headers detected");        }        for (int i = headers.length - 1; i >= 0; i--) {            Header header = headers[i];            try {                return Long.parseLong(header.getValue());            } catch (NumberFormatException e) {                if (LOG.isWarnEnabled()) {                    LOG.warn("Invalid content-length value: " + e.getMessage());                }            }            // See if we can have better luck with another header, if present        }        return -1;    }    /**     * Returns the response body of the HTTP method, if any, as an array of bytes.     * If response body is not available or cannot be read, returns <tt>null</tt>     *      * 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 byte[] getResponseBody() throws IOException {        if (this.responseBody == null) {            InputStream instream = getResponseBodyAsStream();            if (instream != null) {                long contentLength = getResponseContentLength();                if (contentLength > Integer.MAX_VALUE) { //guard below cast from overflow                    throw new IOException("Content too large to be buffered: "+ contentLength +" bytes");                }                int limit = getParams().getIntParameter(HttpMethodParams.BUFFER_WARN_TRIGGER_LIMIT, 1024*1024);                if ((contentLength == -1) || (contentLength > limit)) {                    LOG.warn("Going to buffer response body of large or unknown size. "                            +"Using getResponseAsStream instead is recommended.");                }                LOG.debug("Buffering response body");                ByteArrayOutputStream outstream = new ByteArrayOutputStream(                        contentLength > 0 ? (int) contentLength : DEFAULT_INITIAL_BUFFER_SIZE);                byte[] buffer = new byte[4096];                int len;                while ((len = instream.read(buffer)) > 0) {                    outstream.write(buffer, 0, len);                }                outstream.close();                setResponseStream(null);                this.responseBody = outstream.toByteArray();            }        }        return this.responseBody;    }    /**     * Returns the response body of the HTTP method, if any, as an {@link InputStream}.      * If response body is not available, returns <tt>null</tt>     *      * @return The response body     *      * @throws IOException If an I/O (transport) problem occurs while obtaining the      * response body.     */    public InputStream getResponseBodyAsStream() throws IOException {        if (responseStream != null) {            return responseStream;        }        if (responseBody != null) {            InputStream byteResponseStream = new ByteArrayInputStream(responseBody);            LOG.debug("re-creating response stream from byte array");            return byteResponseStream;        }        return null;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
激情综合色综合久久综合| 在线精品亚洲一区二区不卡| aa级大片欧美| 欧美一级二级在线观看| 中文字幕av一区二区三区高| 丝袜亚洲精品中文字幕一区| 99久久综合精品| 久久综合色综合88| 三级精品在线观看| 在线看国产一区二区| 国产精品丝袜一区| 狠狠色2019综合网| 欧美一区二区久久久| 夜夜亚洲天天久久| 91丝袜呻吟高潮美腿白嫩在线观看| 日韩精品一区国产麻豆| 香港成人在线视频| 欧美性做爰猛烈叫床潮| 亚洲女性喷水在线观看一区| 成人午夜电影网站| 中文字幕欧美三区| 国产成人综合在线| 国产欧美综合色| 国产精品996| 久久久久久亚洲综合影院红桃 | 日本一区二区三区国色天香 | 国产无人区一区二区三区| 麻豆精品视频在线观看| 欧美日产国产精品| 午夜国产精品影院在线观看| 欧美性色aⅴ视频一区日韩精品| 国产精品久久久久四虎| 不卡视频免费播放| 最好看的中文字幕久久| 91丨porny丨首页| 亚洲精品日日夜夜| 欧美丝袜丝nylons| 日韩黄色免费网站| 欧美mv日韩mv亚洲| 国产美女娇喘av呻吟久久| 国产午夜精品久久久久久久| 成人av动漫在线| 亚洲综合一区二区三区| 欧美日韩国产精品自在自线| 免费日本视频一区| 26uuu欧美| fc2成人免费人成在线观看播放| 国产精品卡一卡二卡三| 在线观看中文字幕不卡| 日本aⅴ亚洲精品中文乱码| 精品国产在天天线2019| 不卡高清视频专区| 亚洲综合视频在线观看| 欧美一区二区三区四区高清| 国产综合色视频| 亚洲视频 欧洲视频| 欧美人妖巨大在线| 国产美女精品一区二区三区| 亚洲少妇30p| 欧美一区永久视频免费观看| 国产乱码精品一区二区三区忘忧草 | 久久男人中文字幕资源站| a级高清视频欧美日韩| 亚洲一区二区美女| 欧美精品一区二区三区久久久| 东方aⅴ免费观看久久av| 亚洲综合无码一区二区| 久久精品亚洲一区二区三区浴池| 99re在线精品| 久久99国产精品尤物| 中文字幕在线免费不卡| 欧美一区二区三区免费| 99re这里都是精品| 韩国欧美国产1区| 一区二区三区.www| 国产午夜一区二区三区| 欧美一区二区网站| 日本电影欧美片| 国产精品 欧美精品| 视频精品一区二区| 亚洲欧美激情在线| 久久蜜臀精品av| 日韩欧美色综合| 欧美色综合网站| 91在线观看下载| 国产精品99久久久久久久vr| 免费高清在线一区| 香蕉加勒比综合久久| 亚洲免费av在线| 国产精品色在线| 国产亚洲一区字幕| 精品国产免费一区二区三区四区 | www.av精品| 国产乱子轮精品视频| 免费视频一区二区| 污片在线观看一区二区| 亚洲精品国产一区二区精华液| 国产人成一区二区三区影院| 欧美变态口味重另类| 91精品国产欧美一区二区18| 欧美在线观看视频一区二区 | 懂色av一区二区三区免费观看| 麻豆精品国产传媒mv男同| 亚洲国产欧美一区二区三区丁香婷| 亚洲国产精品激情在线观看| 精品99一区二区三区| 日韩欧美aaaaaa| 欧美一级久久久| 精品少妇一区二区三区日产乱码| 欧美日韩国产天堂| 欧美一级免费大片| 日韩午夜精品电影| 欧美大尺度电影在线| 日韩视频免费直播| 欧美成人一区二区| wwwwxxxxx欧美| 久久精品一级爱片| 日本一区二区视频在线观看| 国产欧美日韩综合| 国产精品午夜电影| 亚洲男人的天堂av| 亚洲午夜精品一区二区三区他趣| 午夜欧美2019年伦理 | 一区二区三区国产精华| 亚洲欧美一区二区三区国产精品| 成人免费在线播放视频| 亚洲精品高清在线观看| 亚洲午夜羞羞片| 久久超碰97中文字幕| 国产精品一色哟哟哟| av一本久道久久综合久久鬼色| 色欲综合视频天天天| 色天天综合色天天久久| 欧美日韩成人综合| 久久精品水蜜桃av综合天堂| 国产精品乱码人人做人人爱| 亚洲精品你懂的| 久久综合综合久久综合| 丁香激情综合国产| 欧美色偷偷大香| 久久精品亚洲麻豆av一区二区| 亚洲日本va在线观看| 日韩成人午夜电影| 国产精品一品二品| 欧美性欧美巨大黑白大战| 日韩欧美视频在线| 亚洲欧美偷拍卡通变态| 日本欧美久久久久免费播放网| 丁香亚洲综合激情啪啪综合| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 日韩一区二区视频| 国产精品电影院| 日本伊人午夜精品| 91女神在线视频| 精品国产乱码久久| 亚洲成人午夜电影| 成人av免费在线播放| 666欧美在线视频| 亚洲欧洲无码一区二区三区| 蜜桃一区二区三区在线观看| 99久久精品国产观看| 精品欧美久久久| 午夜激情一区二区三区| 成人av资源网站| 精品国产一区二区三区久久久蜜月 | 国产成人免费视频网站高清观看视频 | 亚洲成av人片在线| 99久久免费视频.com| 日韩免费看网站| 亚洲一区二区三区精品在线| 国产成人久久精品77777最新版本| 欧美午夜精品一区二区三区| 国产喷白浆一区二区三区| 免费人成精品欧美精品| 91黄色激情网站| 中文字幕一区二区三| 久久99精品久久久久久动态图| 欧美日韩一区二区在线观看| 成人欧美一区二区三区黑人麻豆| 国产露脸91国语对白| 欧美一区二区三区播放老司机| 一区二区激情小说| 不卡一卡二卡三乱码免费网站| 欧美成人艳星乳罩| 日本aⅴ亚洲精品中文乱码| 欧美吻胸吃奶大尺度电影| 亚洲乱码日产精品bd| 成人黄动漫网站免费app| 国产亚洲精品免费| 国产精品影视网| 久久毛片高清国产| 久久99国产精品久久99果冻传媒| 欧美日韩在线综合| 一区2区3区在线看| 欧美在线观看视频在线| 夜夜精品视频一区二区| 欧美日韩日日摸| 天天av天天翘天天综合网| 欧美性生交片4| 亚洲成人精品一区二区|