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

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

?? stringrequestentity.java

?? Light in the box 抓取程序。 使用HttpClient
?? JAVA
字號:
/* * $HeadURL: https://svn.apache.org/repos/asf/jakarta/httpcomponents/oac.hc3x/tags/HTTPCLIENT_3_1/src/java/org/apache/commons/httpclient/methods/StringRequestEntity.java $ * $Revision: 480424 $ * $Date: 2006-11-29 06:56:49 +0100 (Wed, 29 Nov 2006) $ * * ==================================================================== * *  Licensed to the Apache Software Foundation (ASF) under one or more *  contributor license agreements.  See the NOTICE file distributed with *  this work for additional information regarding copyright ownership. *  The ASF licenses this file to You under the Apache License, Version 2.0 *  (the "License"); you may not use this file except in compliance with *  the License.  You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * *  Unless required by applicable law or agreed to in writing, software *  distributed under the License is distributed on an "AS IS" BASIS, *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *  See the License for the specific language governing permissions and *  limitations under the License. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation.  For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * * [Additional notices, if required by prior licensing conditions] * */package org.apache.commons.httpclient.methods;import java.io.IOException;import java.io.OutputStream;import java.io.UnsupportedEncodingException;import org.apache.commons.httpclient.HeaderElement;import org.apache.commons.httpclient.NameValuePair;/** * A RequestEntity that contains a String. *  * @since 3.0 */public class StringRequestEntity implements RequestEntity {    /** The content */    private byte[] content;        /** The charset */    private String charset;    /** The content type (i.e. text/html; charset=EUC-JP). */    private String contentType;        /**     * <p>Creates a new entity with the given content. This constructor      * will use the default platform charset to convert the content string      * and will provide no content type.</p>     *       * @see #StringRequestEntity(String, String, String)     *      * @param content The content to set.     *      * @deprecated use {@link #StringRequestEntity(String, String, String)} instead     */    public StringRequestEntity(String content) {        super();        if (content == null) {            throw new IllegalArgumentException("The content cannot be null");        }        this.contentType = null;        this.charset = null;        this.content = content.getBytes();    }    /**     * Creates a new entity with the given content, content type, and charset.     *       * @param content The content to set.     * @param contentType The type of the content, or <code>null</code>.  The value retured      *   by {@link #getContentType()}.  If this content type contains a charset and the charset     *   parameter is null, the content's type charset will be used.     * @param charset The charset of the content, or <code>null</code>.  Used to convert the      *   content to bytes.  If the content type does not contain a charset and charset is not null,     *   then the charset will be appended to the content type.     */    public StringRequestEntity(String content, String contentType, String charset)         throws UnsupportedEncodingException {        super();        if (content == null) {            throw new IllegalArgumentException("The content cannot be null");        }                this.contentType = contentType;        this.charset = charset;                // resolve the content type and the charset        if (contentType != null) {            HeaderElement[] values = HeaderElement.parseElements(contentType);            NameValuePair charsetPair = null;            for (int i = 0; i < values.length; i++) {                if ((charsetPair = values[i].getParameterByName("charset")) != null) {                    // charset found                    break;                }            }            if (charset == null && charsetPair != null) {                // use the charset from the content type                this.charset = charsetPair.getValue();            } else if (charset != null && charsetPair == null) {                // append the charset to the content type                this.contentType = contentType + "; charset=" + charset;             }        }        if (this.charset != null) {            this.content = content.getBytes(this.charset);        } else {            this.content = content.getBytes();        }    }    /* (non-Javadoc)     * @see org.apache.commons.httpclient.methods.RequestEntity#getContentType()     */    public String getContentType() {        return contentType;    }    /**     * @return <code>true</code>     */    public boolean isRepeatable() {        return true;    }    /* (non-Javadoc)     * @see org.apache.commons.httpclient.RequestEntity#writeRequest(java.io.OutputStream)     */    public void writeRequest(OutputStream out) throws IOException {        if (out == null) {            throw new IllegalArgumentException("Output stream may not be null");        }        out.write(this.content);        out.flush();    }    /**     * @return The length of the content.     */    public long getContentLength() {        return this.content.length;    }    /**     * @return Returns the content.     */    public String getContent() {        if (this.charset != null) {            try {                return new String(this.content, this.charset);            } catch (UnsupportedEncodingException e) {                return new String(this.content);            }        } else {            return new String(this.content);        }    }    /**     * @return Returns the charset used to convert the content to bytes. <code>null</code> if     * no charset as been specified.     */    public String getCharset() {        return charset;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人aa视频在线观看| 亚洲最新在线观看| 国内一区二区在线| 欧美一区二区日韩一区二区| 日韩精品免费视频人成| 欧美一区二区在线不卡| 久久国产精品免费| 国产午夜精品一区二区| 成人激情图片网| 亚洲三级视频在线观看| 欧美日韩中文精品| 日本不卡123| 国产日产欧美一区二区视频| 91偷拍与自偷拍精品| 亚洲午夜精品一区二区三区他趣| 欧美日韩精品免费观看视频| 精品中文av资源站在线观看| 国产亚洲福利社区一区| 色婷婷精品久久二区二区蜜臀av | 在线精品视频一区二区三四| 亚洲444eee在线观看| 亚洲精品在线网站| 日本丶国产丶欧美色综合| 午夜精品免费在线| 久久久久久久精| 在线观看一区二区精品视频| 久久99精品国产.久久久久久| 国产精品女上位| 欧美乱妇15p| 成人av综合在线| 图片区小说区国产精品视频| 欧美激情一区二区三区不卡| 91成人在线精品| 国产在线精品一区二区夜色| 亚洲人成伊人成综合网小说| 日韩欧美国产午夜精品| 99视频一区二区| 久久97超碰国产精品超碰| 国产精品久久久久久福利一牛影视 | 亚洲精选视频免费看| 91.com在线观看| 91天堂素人约啪| 国内精品免费**视频| 亚洲精品视频在线| 国产日韩亚洲欧美综合| 欧美日韩二区三区| 99国产一区二区三精品乱码| 看电影不卡的网站| 亚洲一二三区在线观看| 日本一区二区三区四区在线视频 | 日韩免费电影网站| 色婷婷av一区| 不卡av电影在线播放| 久久99久久99精品免视看婷婷| 一区av在线播放| 亚洲天堂av一区| 中文字幕的久久| 久久久精品蜜桃| 精品免费国产一区二区三区四区| 色婷婷av一区二区| 99久久久国产精品| 成人免费视频一区二区| 国产精品一二三四区| 日韩不卡一二三区| 亚洲一区视频在线观看视频| 亚洲欧洲国产日本综合| 国产欧美中文在线| 欧美精品一区视频| 精品国产三级a在线观看| 欧美日韩高清影院| 欧美丰满高潮xxxx喷水动漫| 色悠悠久久综合| 欧美亚洲国产一区二区三区| 91丨porny丨国产入口| 丁香亚洲综合激情啪啪综合| 国产露脸91国语对白| 九九视频精品免费| 精品一区二区三区在线观看| 日本大胆欧美人术艺术动态| 日本sm残虐另类| 日韩av成人高清| 免费成人结看片| 久久99国产精品免费| 久久国产尿小便嘘嘘| 韩日欧美一区二区三区| 狠狠色狠狠色综合系列| 国内精品写真在线观看| 国产麻豆午夜三级精品| 成人午夜免费av| 99久久精品久久久久久清纯| 91日韩一区二区三区| 欧美性淫爽ww久久久久无| 欧美区视频在线观看| 精品欧美一区二区在线观看| 精品国产网站在线观看| 国产拍揄自揄精品视频麻豆| 国产精品理伦片| 亚洲国产视频一区| 青青草精品视频| 国产成人av电影免费在线观看| 白白色亚洲国产精品| 欧美视频日韩视频在线观看| 欧美一级日韩一级| 国产无一区二区| 一区二区三区波多野结衣在线观看| 亚洲国产精品麻豆| 九色|91porny| 色又黄又爽网站www久久| 欧美巨大另类极品videosbest| 日韩久久久精品| 18成人在线视频| 日韩成人一区二区| 国产69精品一区二区亚洲孕妇| 色综合天天综合网天天狠天天| 欧美日韩国产影片| 久久久久久日产精品| 亚洲欧美另类久久久精品| 天堂在线一区二区| 粉嫩在线一区二区三区视频| 欧美亚一区二区| 久久精品亚洲国产奇米99| 亚洲男人的天堂在线aⅴ视频| 麻豆视频一区二区| 99re热这里只有精品免费视频| 欧美精品久久一区| 国产精品人人做人人爽人人添 | 免费av网站大全久久| 福利电影一区二区三区| 91麻豆精品国产自产在线观看一区 | 亚洲国产成人av网| 国产一区二区主播在线| 欧美日本一道本在线视频| 国产精品美女一区二区三区| 日韩av一二三| 日本久久电影网| 国产日韩欧美综合一区| 青青草原综合久久大伊人精品优势 | 亚洲亚洲精品在线观看| 国产91露脸合集magnet| 日韩一区二区中文字幕| 亚洲欧洲国产日韩| 国产二区国产一区在线观看| 91精品国产91热久久久做人人| 日韩毛片在线免费观看| 国产v综合v亚洲欧| 欧美成人综合网站| 日韩不卡在线观看日韩不卡视频| 91高清在线观看| 亚洲女人小视频在线观看| 成人爱爱电影网址| 久久久久99精品国产片| 麻豆精品在线观看| 正在播放一区二区| 午夜电影一区二区| 欧美色欧美亚洲另类二区| 亚洲另类一区二区| 91激情五月电影| 亚洲在线观看免费视频| 色噜噜狠狠成人网p站| 亚洲色图在线播放| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 欧美中文一区二区三区| 亚洲欧美中日韩| 菠萝蜜视频在线观看一区| 国产精品美女久久久久久久网站| 国产激情视频一区二区三区欧美| 精品国产成人系列| 激情亚洲综合在线| 精品999在线播放| 精品午夜久久福利影院| 欧美电视剧免费全集观看| 热久久国产精品| 日韩欧美一级二级三级| 久久黄色级2电影| 久久一日本道色综合| 极品少妇一区二区三区精品视频| 日韩一区二区高清| 韩国欧美国产1区| 久久精品网站免费观看| 成人sese在线| 亚洲精品国久久99热| 欧美图区在线视频| 天天综合天天做天天综合| 日韩一区二区三区四区| 国产在线一区二区| 国产欧美一区在线| 色狠狠桃花综合| 日本aⅴ免费视频一区二区三区| 精品少妇一区二区三区日产乱码| 精品一区二区三区蜜桃| 亚洲国产成人私人影院tom| av成人老司机| 亚洲成av人影院在线观看网| 日韩欧美国产一二三区| 国产精品99久| 一区二区视频在线看| 91精品在线麻豆| 成人国产在线观看| 亚洲一区二区三区中文字幕在线| 日韩精品专区在线影院重磅|