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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? agateway.java

?? 短線收發(fā)
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
// SMSLib for Java v3
// A Java API library for sending and receiving SMS via a GSM modem
// or other supported gateways.
// Web Site: http://www.smslib.org
//
// Copyright (C) 2002-2008, Thanasis Delenikas, Athens/GREECE.
// SMSLib is distributed under the terms of the Apache License version 2.0
//
// Licensed 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.

package org.smslib;

import java.io.*;
import java.util.*;

/**
 * Abstract class representing a Gateway, i.e. an interface capable of sending
 * and/or receiving SMS messages.
 */
public abstract class AGateway
{
	public static class GatewayAttributes
	{
		public static final int SEND = 0x0001;

		public static final int RECEIVE = 0x0002;

		public static final int CUSTOMFROM = 0x0004;

		public static final int BIGMESSAGES = 0x0008;

		public static final int WAPSI = 0x0010;

		public static final int PORTADDRESSING = 0x0020;

		public static final int FLASHSMS = 0x0040;

		public static final int DELIVERYREPORTS = 0x0080;
	}

	protected boolean started;

	protected String gtwId;

	protected int attributes;

	protected boolean inbound;

	protected boolean outbound;

	protected Service srv;

	protected MessageProtocols protocol;

	protected IInboundMessageNotification inboundNotification;

	protected IOutboundMessageNotification outboundNotification;

	protected ICallNotification callNotification;

	protected Statistics statistics;

	protected String from;

	protected int deliveryErrorCode;

	protected Thread queueManagerThread;

	protected Queue lowQ, normalQ, highQ;

	protected GatewayStatuses gatewayStatus;

	public AGateway(String id)
	{
		this.gtwId = id;
		srv = null;
		started = false;
		inbound = false;
		outbound = false;
		attributes = 0;
		protocol = MessageProtocols.PDU;
		inboundNotification = null;
		outboundNotification = null;
		callNotification = null;
		from = "";
		lowQ = new Queue();
		normalQ = new Queue();
		highQ = new Queue();
		statistics = new Statistics();
		from = "";
		deliveryErrorCode = -1;
		gatewayStatus = GatewayStatuses.OK;
	}

	boolean isStarted()
	{
		return started;
	}

	int getAttributes()
	{
		return attributes;
	}

	public boolean getStarted()
	{
		return started;
	}

	public Service getService()
	{
		return srv;
	}

	public void setService(Service srv)
	{
		this.srv = srv;
	}

	/**
	 * Returns true if the the gateway is set for inbound messaging.
	 * 
	 * @return True if this gateway is set for inbound messaging.
	 */
	public boolean isInbound()
	{
		return inbound;
	}

	/**
	 * Enables or disables the gateway for inbound messaging. The command is
	 * accepted only if the gateway supports inbound messaging.
	 * 
	 * @param value
	 *            True to enable the gateway for inbound messaging.
	 */
	public void setInbound(boolean value)
	{
		if ((attributes & GatewayAttributes.RECEIVE) != 0) inbound = value;
	}

	/**
	 * Returns true if the the gateway is set for outbound messaging.
	 * 
	 * @return True if this gateway is set for outbound messaging.
	 */
	public boolean isOutbound()
	{
		return outbound;
	}

	/**
	 * Enables or disables the gateway for outbound messaging. The command is
	 * accepted only if the gateway supports outbound messaging.
	 * 
	 * @param value
	 *            True to enable the gateway for outbound messaging.
	 */
	public void setOutbound(boolean value)
	{
		if ((attributes & GatewayAttributes.SEND) != 0) outbound = value;
	}

	/**
	 * Sets the communication protocol of the gateway. The call is applicable
	 * only for modem gateways, in other cases it is ignored.
	 * 
	 * @param protocol
	 * @see MessageProtocols
	 * @see #getProtocol
	 */
	public void setProtocol(MessageProtocols protocol)
	{
		this.protocol = protocol;
	}

	/**
	 * Returns the communication protocol current in use by the gateway.
	 * 
	 * @return The communication protocol.
	 * @see MessageProtocols
	 * @see #setProtocol(MessageProtocols)
	 */
	public MessageProtocols getProtocol()
	{
		return protocol;
	}

	/**
	 * Returns the gateway id assigned to this gateway during initialization.
	 * 
	 * @return The gateway id.
	 */
	public String getGatewayId()
	{
		return gtwId;
	}

	/**
	 * Returns the gateway status.
	 * 
	 * @return The gateway status
	 * @see GatewayStatuses
	 */
	public GatewayStatuses getGatewayStatus()
	{
		return gatewayStatus;
	}

	/**
	 * Sets the gateway status to a new value.
	 * 
	 * @param status
	 *            The new gateway status.
	 * @see GatewayStatuses
	 */
	public void setGatewayStatus(GatewayStatuses status)
	{
		gatewayStatus = status;
	}

	/**
	 * Returns the notification method set for inbound messages. Returns null if
	 * no such method is set.
	 * 
	 * @return The notification method.
	 * @see #setInboundNotification(IInboundMessageNotification)
	 */
	public IInboundMessageNotification getInboundNotification()
	{
		return inboundNotification;
	}

	/**
	 * Sets the inbound message notification method. The method must adhere to
	 * the IInboundMessageNotification interface. If set, SMSLib will call this
	 * method upon arrival of a new inbound message.
	 * 
	 * @param inboundNotification
	 *            The method to be called.
	 * @see #getInboundNotification()
	 * @see IInboundMessageNotification
	 */
	public void setInboundNotification(IInboundMessageNotification inboundNotification)
	{
		this.inboundNotification = inboundNotification;
	}

	/**
	 * Returns the notification method set for outbound messages. Returns null
	 * if no such method is set.
	 * 
	 * @return The notification method.
	 * @see #setOutboundNotification(IOutboundMessageNotification)
	 */
	public IOutboundMessageNotification getOutboundNotification()
	{
		return outboundNotification;
	}

	/**
	 * Sets the outbound notification method. The method must adhere to the
	 * IOutboundMessageNotification interface. If set, SMSLib will call this
	 * method upon dispatch of a message through the queueing (asyncronous)
	 * calls.
	 * 
	 * @param outboundNotification
	 * @see #getOutboundNotification()
	 * @see IOutboundMessageNotification
	 */
	public void setOutboundNotification(IOutboundMessageNotification outboundNotification)
	{
		this.outboundNotification = outboundNotification;
	}

	/**
	 * Returns the call notification method. Returns null if no such method is
	 * set.
	 * 
	 * @return The notification method.
	 * @see #setCallNotification(ICallNotification)
	 */
	public ICallNotification getCallNotification()
	{
		return callNotification;
	}

	/**
	 * Returns the call notification method. The method must adhere to the
	 * ICallNotification interface. If set, SMSLib will call this method upon
	 * detection of an incoming call.
	 * 
	 * @param callNotification
	 * @see #getCallNotification()
	 * @see ICallNotification
	 */
	public void setCallNotification(ICallNotification callNotification)
	{
		this.callNotification = callNotification;
	}

	/**
	 * Returns the total number of messages received by this gateway.
	 * 
	 * @return The number of received messages.
	 */
	public int getInboundMessageCount()
	{
		return statistics.inbound;
	}

	public void incInboundMessageCount()
	{
		statistics.inbound++;
	}

	/**
	 * Returns the total number of messages sent via this gateway.
	 * 
	 * @return The number of sent messages.
	 */
	public int getOutboundMessageCount()
	{
		return statistics.outbound;
	}

	public void incOutboundMessageCount()
	{
		statistics.outbound++;
	}

	/**
	 * Returns the string that will appear on recipient's phone as the
	 * originator. Not all gateways support this.
	 * 
	 * @return The originator string.
	 * @see #setFrom(String)
	 */
	public String getFrom()
	{
		return from;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产日韩精品| 日本欧美在线观看| 欧美电影免费提供在线观看| 91亚洲资源网| 九九九精品视频| 亚洲国产一区二区三区青草影视| 久久久久久久久岛国免费| 欧美性生活一区| 国产99久久久久久免费看农村| 午夜一区二区三区视频| 亚洲欧洲一区二区在线播放| 精品国产乱码久久久久久闺蜜| 欧美日韩国产高清一区| 99精品视频一区二区三区| 国内精品视频一区二区三区八戒 | 久久久久久麻豆| 91精品啪在线观看国产60岁| 色菇凉天天综合网| 懂色av噜噜一区二区三区av| 久久国产精品露脸对白| 天天色天天操综合| 亚洲一区二区三区四区五区黄| 国产精品电影院| 中文字幕不卡的av| 久久久久久影视| 久久毛片高清国产| 欧美刺激脚交jootjob| 91精品在线观看入口| 欧美日韩精品一区二区三区| 一本色道亚洲精品aⅴ| 97精品久久久久中文字幕 | 一区二区在线观看视频| 国产精品系列在线| 久久精品欧美一区二区三区麻豆| 日韩欧美的一区二区| 日韩精品最新网址| 精品久久人人做人人爰| 日韩视频一区二区三区| 日韩一区二区影院| 欧美一区二区在线免费播放| 51精品秘密在线观看| 欧美丰满一区二区免费视频| 7777精品伊人久久久大香线蕉经典版下载| 在线一区二区三区四区五区| 日本精品视频一区二区三区| 欧洲国产伦久久久久久久| 欧美综合一区二区| 欧美巨大另类极品videosbest| 欧美精品在线视频| 日韩一区二区三区在线视频| 久久影音资源网| 欧美激情综合五月色丁香小说| 国产精品乱人伦| 亚洲精品成人悠悠色影视| 亚洲电影你懂得| 美美哒免费高清在线观看视频一区二区 | 99久久精品免费看国产免费软件| 91在线视频免费观看| 色香蕉久久蜜桃| 欧美福利视频一区| 国产亚洲综合色| 国产精品初高中害羞小美女文| 亚洲视频一区二区免费在线观看| 亚洲资源中文字幕| 日韩国产在线一| 国产伦精一区二区三区| 北岛玲一区二区三区四区| 在线视频一区二区免费| 日韩你懂的在线播放| 国产女人aaa级久久久级| 亚洲激情综合网| 麻豆国产91在线播放| 成人激情开心网| 欧美人狂配大交3d怪物一区 | 一区二区三区在线免费视频| 日韩精品91亚洲二区在线观看 | 久久精品久久综合| www.久久久久久久久| 欧美一区二区三区四区久久| 亚洲国产成人私人影院tom| 亚洲成a人片综合在线| 国产一区二区剧情av在线| 91麻豆swag| 精品日韩在线一区| 国产精品美女www爽爽爽| 日日摸夜夜添夜夜添精品视频| 国产福利91精品一区| 欧美天堂亚洲电影院在线播放| 久久免费国产精品| 亚洲午夜成aⅴ人片| 大白屁股一区二区视频| 欧美区在线观看| 国产精品狼人久久影院观看方式| 日本成人在线电影网| 成人av网站免费观看| 日韩一区二区精品在线观看| 综合色中文字幕| 国产麻豆9l精品三级站| 91精品国产丝袜白色高跟鞋| 国产精品久久毛片| 开心九九激情九九欧美日韩精美视频电影 | 美女视频免费一区| 91福利在线导航| 国产无人区一区二区三区| 午夜精品久久久久影视| 91免费版pro下载短视频| 国产亚洲综合性久久久影院| 美女脱光内衣内裤视频久久影院| 91福利精品第一导航| 欧美国产一区二区| 国产一区二区调教| 日韩免费高清电影| 日韩不卡手机在线v区| 欧美性做爰猛烈叫床潮| 亚洲婷婷在线视频| 不卡的av电影| 久久免费的精品国产v∧| 成人涩涩免费视频| 欧美一二三四在线| 亚洲18色成人| 欧美自拍偷拍午夜视频| 亚洲你懂的在线视频| 成人高清免费观看| 欧美国产日韩精品免费观看| 国产一区二区精品久久99| 日韩欧美一二三| 免费高清成人在线| 日韩精品一区二区三区视频| 青青草97国产精品免费观看无弹窗版| 在线观看国产一区二区| 亚洲精品国产一区二区精华液| 99久久国产综合精品色伊| 国产精品美女视频| 成人综合婷婷国产精品久久蜜臀 | 欧美视频一区二区三区在线观看| 国产精品欧美一级免费| 成人午夜在线播放| 国产精品天天摸av网| 成人永久免费视频| 日本一区二区三区在线不卡| 粗大黑人巨茎大战欧美成人| 欧美国产欧美亚州国产日韩mv天天看完整| 国产精品一区二区x88av| 国产日产欧美一区二区视频| 国产成人综合亚洲91猫咪| 国产欧美视频一区二区三区| 国产成人h网站| 中文字幕一区在线| 日本高清免费不卡视频| 亚洲一区视频在线| 宅男噜噜噜66一区二区66| 老司机精品视频导航| 久久久久久久久久久久久久久99| 懂色av一区二区夜夜嗨| 亚洲女厕所小便bbb| 欧美日韩美女一区二区| 日韩av中文字幕一区二区| 欧美成人高清电影在线| 国产成人自拍高清视频在线免费播放| 国产视频视频一区| 色又黄又爽网站www久久| 亚洲国产视频a| 精品国产一区二区三区四区四| 国产精品99精品久久免费| 亚洲婷婷在线视频| 7777精品久久久大香线蕉| 国产麻豆精品一区二区| 一区二区三区日韩精品视频| 91精品国产aⅴ一区二区| 国产在线精品免费| 亚洲黄网站在线观看| 欧美肥妇free| 成人免费高清在线观看| 一二三区精品视频| 精品国产成人系列| 91无套直看片红桃| 麻豆精品视频在线| 亚洲欧美在线视频| 欧美一区二区三区啪啪| 不卡的av电影在线观看| 日本中文在线一区| 久久精品亚洲精品国产欧美 | 国产欧美精品一区二区色综合 | 国产精品伊人色| 一区二区三区在线看| www国产精品av| 欧美主播一区二区三区| 国产伦精品一区二区三区免费| 一区二区三区中文字幕精品精品 | 一区二区三区欧美久久| 精品欧美乱码久久久久久| 色综合久久综合| 国产一区二区三区高清播放| 亚洲不卡一区二区三区| 中文字幕免费不卡在线| 日韩一级免费一区| 色狠狠色噜噜噜综合网| 高清国产一区二区| 免费在线观看一区| 亚洲国产精品综合小说图片区|