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

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

?? httpsenderhandshakemessage.java

?? 關于 RFID 讀寫器的相關內容
?? JAVA
字號:
/*
 * Copyright (C) 2007 ETH Zurich
 *
 * This file is part of Fosstrak (www.fosstrak.org).
 *
 * Fosstrak is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1, as published by the Free Software Foundation.
 *
 * Fosstrak is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with Fosstrak; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301  USA
 */

package org.fosstrak.reader.rprm.core.msg;

import java.util.HashMap;
import java.util.Map;

/**
 * Class used for handshaking. The handshake parameters are internally
 * handled as <code>String</code>. Thus it's evident to validate the values
 * to have correct lengths and contents using the method <code>isValid()</code>.
 * The <code>HttpSenderHandshakeMessage</code> can handle the HTTP specific
 * additons to the <code>SenderHandshakeMessage</code>, e.g.:
 * <ul>
 * <li>access method (POST, GET, ...)</li>
 * <li>vedor-specific parameters in the HTTP header</li>
 * <li>content-length of the message</li>
 * </ul>
 * 
 * @author Andreas F黵er, ETH Zurich Switzerland, Winter 2005/06
 *
 */
public class HttpSenderHandshakeMessage extends SenderHandshakeMessage {
	
	public static final String ACK_REQUEST = "yes";
	public static final String NAK_REQUEST = "no";
	
	/** the HTTP method (POST, GET, ...) */
	private String method;
	
	/** the HTTP version */
	private String httpVersion;
	
	/** the HTTP host parameter (required in HTTP 1.1) */
	private String host;
	
	/** the content length (required in HTTP 1.1) */
	private int contentLength;
	
	/** if the connection is persistent leave it open, otherwise close it. */
	private boolean isPersistent;
	
	/** additional header parameters */
    private Map headerFields = new HashMap();

    /**
     * The default constructor which initialises
     * the handshake message.
     */
    public HttpSenderHandshakeMessage() {
    	this.init();
    }
    
	/**
	 * Initialises the handshake with the default values.
	 */
	public void init() {
		super.init();
		isPersistent = true; /* default is keep-alive in HTTP/1.1 */		
	}
    
	/**
	 * @return Returns the ackNakRequest.
	 */
	public String getAckNakRequest() {
		if (ackNakRequest) {
			return ACK_REQUEST;
		} else {
			return NAK_REQUEST;
		}
	}
	
	/**
	 * @param ackNakRequest The ackNakRequest to set.
	 */
	public void setAckNakRequest(String ackNakRequest) {
		if (ackNakRequest.toLowerCase().equals(ACK_REQUEST)) {
			this.ackNakRequest = true;
		} else {
			this.ackNakRequest = false;
		}
	}
	
	/**
	 * @return Returns the contentLength.
	 */
	public int getContentLength() {
		return contentLength;
	}

	/**
	 * @param contentLength The contentLength to set.
	 */
	public void setContentLength(int contentLength) {
		this.contentLength = contentLength;
	}
	
	/**
	 * Sets the Content-length. If the String could not be parsed into an int
	 * the contentLength is set to zero.
	 * @param contentLength The contentLength to set.
	 */
	public void setContentLength(String contentLength) {
		try {
			this.contentLength = Integer.parseInt(contentLength);
		} catch (NumberFormatException e) {
			// Could not read the content-length. Set it to zero.
			this.contentLength = 0;
		}
	}

	/**
	 * @return Returns the httpVersion.
	 */
	public String getHttpVersion() {
		return httpVersion;
	}

	/**
	 * @param httpVersion The httpVersion to set.
	 */
	public void setHttpVersion(String httpVersion) {
		this.httpVersion = httpVersion;
	}

	/**
	 * @return Returns the method.
	 */
	public String getMethod() {
		return method;
	}

	/**
	 * @param method The method to set.
	 */
	public void setMethod(String method) {
		this.method = method;
	}
	
	/**
	 * @return Returns the host.
	 */
	public String getHost() {
		return host;
	}

	/**
	 * @param host The host to set.
	 */
	public void setHost(String host) {
		this.host = host;
	}
	
	/**
     * Returns the value to which the specified name is mapped in the HTTP header.
     * @param name A name of a parameter in the header
     * @return the value to which the name is mapped; <code>null</code> if the parameter doesn't exist.
     */
    public String getHeaderField(String name) {
        return (String)headerFields.get(name);
    }
    
    /**
     * Adds a new value of a HTTP header field into the header map. Use this
     * map for additional or vendor-specific parameters in the HTTP header.
     * @param key The name of the HTTP parameter
     * @param value The value of the HTTP parameter
     */
    public void addHeaderField(String key, String value) {
    	headerFields.put(key, value);
    }

	/**
	 * @return Returns the isPersistent.
	 */
	public boolean isPersistent() {
		return isPersistent;
	}

	/**
	 * @param isPersistent The isPersistent to set.
	 */
	public void setPersistent(boolean isPersistent) {
		this.isPersistent = isPersistent;
	}

	
    

	
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲天天做日日做天天谢日日欢 | 亚洲另类在线制服丝袜| 一个色综合av| 国产精品1区2区3区| 欧美日韩午夜在线视频| 中文字幕中文字幕在线一区 | 亚洲色图丝袜美腿| 国产麻豆视频一区| 欧美日本一区二区| 亚洲欧美日韩在线不卡| 国产一区二区三区在线观看免费 | 精品写真视频在线观看| 欧美色区777第一页| 成人免费视频在线观看| 国产精品亚洲一区二区三区在线| 欧美另类videos死尸| 亚洲男人天堂av| 成人在线一区二区三区| 亚洲精品一区二区三区四区高清| 午夜婷婷国产麻豆精品| 91一区一区三区| 中文欧美字幕免费| 国产福利一区二区三区视频在线| 日韩欧美一级二级三级久久久| 亚洲综合色网站| 91传媒视频在线播放| 国产精品传媒入口麻豆| 不卡高清视频专区| 国产精品乱码久久久久久| 东方欧美亚洲色图在线| 国产日韩欧美在线一区| 国产精品亚洲一区二区三区在线| 久久综合九色欧美综合狠狠| 精品一区二区在线观看| 欧美成人bangbros| 国产一区二区在线观看视频| wwwwww.欧美系列| 国产精品一二三四区| 国产欧美一区二区三区网站| 国产成人av资源| 中文字幕一区二区三区四区| 99久精品国产| 亚洲一区二区中文在线| 欧美日韩aaaaaa| 美女久久久精品| 日韩免费成人网| 国产精品一二三四| 亚洲色大成网站www久久九九| 在线看一区二区| 蜜桃视频在线观看一区| 国产欧美一区二区精品久导航| 风流少妇一区二区| 伊人婷婷欧美激情| 日韩色在线观看| 国产成人免费网站| 亚洲成av人片一区二区梦乃| 欧美一级精品在线| 成人免费毛片高清视频| 亚洲亚洲人成综合网络| 精品久久国产老人久久综合| 成人永久aaa| 丝袜亚洲精品中文字幕一区| 久久精品夜色噜噜亚洲a∨| 91国产成人在线| 久久国产精品无码网站| 一区在线观看免费| 欧美精品1区2区| 丁香六月久久综合狠狠色| 亚洲一区影音先锋| 久久精品一区二区三区不卡牛牛| 色呦呦日韩精品| 国产一区二区美女| 一区二区三区四区国产精品| 精品国产乱码久久久久久久久 | 国产精品视频麻豆| 欧美老肥妇做.爰bbww| 岛国精品一区二区| 日韩国产高清影视| 亚洲欧美怡红院| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 激情亚洲综合在线| 亚洲视频在线观看一区| 精品日韩一区二区| 91成人在线免费观看| 国产suv精品一区二区6| 日本怡春院一区二区| 亚洲色图欧洲色图| 国产亲近乱来精品视频| 91精品一区二区三区久久久久久| av电影天堂一区二区在线| 久久国产综合精品| 手机精品视频在线观看| 亚洲女同ⅹxx女同tv| 久久精品一区四区| 欧美大片一区二区三区| 777久久久精品| 欧美日韩一区二区三区四区 | jlzzjlzz亚洲女人18| 久久超碰97人人做人人爱| 亚洲国产精品久久久久婷婷884| 国产精品久久久久久久蜜臀| 欧美精品一区男女天堂| 91麻豆精品国产91| 欧美午夜理伦三级在线观看| 99re在线视频这里只有精品| 国产成人午夜电影网| 国产剧情av麻豆香蕉精品| 日韩不卡手机在线v区| 五月综合激情婷婷六月色窝| 亚洲夂夂婷婷色拍ww47| 亚洲免费在线观看视频| 综合网在线视频| 1000精品久久久久久久久| 国产精品久久夜| 中文字幕在线一区| 中文字幕一区二区在线观看| 18涩涩午夜精品.www| 一区在线观看免费| 一区二区三区精品在线| 亚洲制服丝袜一区| 婷婷开心久久网| 日韩高清在线观看| 卡一卡二国产精品| 精品一区免费av| 国产精品18久久久久久久久久久久| 国产精品一区二区果冻传媒| 懂色av一区二区三区免费观看| 99精品欧美一区二区蜜桃免费| 色综合色狠狠综合色| 在线看一区二区| 欧美一区二区私人影院日本| 欧美sm极限捆绑bd| 国产精品成人一区二区三区夜夜夜 | 99精品久久免费看蜜臀剧情介绍| 91美女视频网站| 欧美美女一区二区三区| 精品人在线二区三区| 国产女人18毛片水真多成人如厕| 国产精品亲子伦对白| 一区二区三区成人在线视频| 日韩不卡一区二区| 成人毛片视频在线观看| 在线区一区二视频| 日韩欧美一卡二卡| 亚洲丝袜精品丝袜在线| 天堂资源在线中文精品| 国产一区欧美一区| av电影在线不卡| 91 com成人网| 中文字幕的久久| 天天影视网天天综合色在线播放| 国产乱码精品一区二区三区忘忧草 | 日韩精品影音先锋| 亚洲欧洲日韩av| 日韩成人av影视| 色综合久久九月婷婷色综合| 日韩欧美aaaaaa| 亚洲综合色网站| 成人国产免费视频| 精品免费99久久| 亚洲图片欧美综合| 不卡视频在线看| 久久久久久久综合色一本| 亚洲综合色噜噜狠狠| 成人一道本在线| www国产成人| 日韩成人午夜电影| 欧美性一二三区| 国产精品久久久久天堂| 久久66热偷产精品| 欧美另类高清zo欧美| 一区二区在线观看不卡| 国产99久久久精品| 日韩欧美国产一区二区三区| 亚洲综合一二区| 成人福利在线看| 久久久欧美精品sm网站| 日韩黄色免费网站| 欧美日韩一区二区欧美激情| 中文在线资源观看网站视频免费不卡| 国产一区激情在线| 欧美丰满高潮xxxx喷水动漫| 亚洲免费成人av| 99re热这里只有精品免费视频| 2020日本不卡一区二区视频| 秋霞国产午夜精品免费视频| 欧美视频一区二区三区四区| 最新国产精品久久精品| 成人免费高清在线观看| 欧美国产一区在线| 国产成人鲁色资源国产91色综| 日韩精品中文字幕一区二区三区| 蜜臀av性久久久久蜜臀aⅴ| 欧美一区三区四区| 无吗不卡中文字幕| 欧美精品一二三区| 日本欧美在线观看| 日韩一区二区不卡| 理论电影国产精品| 久久久久国产精品人|