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

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

?? channelmessenger.java

?? jxta平臺的開發包
?? JAVA
字號:
/* * * $Id: ChannelMessenger.java,v 1.4 2005/08/08 19:59:05 bondolo Exp $ * * Copyright (c) 2004 Sun Microsystems, Inc.  All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in *    the documentation and/or other materials provided with the *    distribution. * * 3. The end-user documentation included with the redistribution, *    if any, must include the following acknowledgment: *       "This product includes software developed by the *       Sun Microsystems, Inc. for Project JXTA." *    Alternately, this acknowledgment may appear in the software itself, *    if and wherever such third-party acknowledgments normally appear. * * 4. The names "Sun", "Sun Microsystems, Inc.", "JXTA" and "Project JXTA" *    must not be used to endorse or promote products derived from this *    software without prior written permission. For written *    permission, please contact Project JXTA at http://www.jxta.org. * * 5. Products derived from this software may not be called "JXTA", *    nor may "JXTA" appear in their name, without prior written *    permission of Sun. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED.  IN NO EVENT SHALL SUN MICROSYSTEMS OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of Project JXTA.  For more * information on Project JXTA, please see * <http://www.jxta.org/>. * * This license is based on the BSD license adopted by the Apache Foundation. */package net.jxta.endpoint;import net.jxta.peergroup.PeerGroupID;import org.apache.log4j.Level;import org.apache.log4j.Logger;/** * A Channel Messenger provides an exclusive interface to the shared messenger.  * * <p/>What is typically exclusive is the message queue, addressing parameters  * that are not usefully shared (serviceName, serviceParam), and if needed  * cross-group address rewritting parameters. * * <p/>This class is provided as a base for implementing such channel messengers,  * which are typically what Messenger.getChannelMessenger() needs to return.  * * @see net.jxta.endpoint.EndpointService * @see net.jxta.endpoint.EndpointAddress * @see net.jxta.endpoint.Message **/public abstract class ChannelMessenger extends AbstractMessenger implements Messenger {    /**     * insertedServicePrefix This is how all valid inserted services start. This      * lets us recognize if a message already has an inserted service. Then we      * must not add another one. Only the top-most one counts.  Since insertion      * is only done here, the constant is defined here. Even if historically it      * was done within the endpoint implementation, it has become a protocol now.     **/    public static final String InsertedServicePrefix = "EndpointService:";    private String insertedService;    /**     * The worker that implements sendMessage-with-listener for this channel. If     * there's none, sendMessage-with-listener will throw an exception. Channels      * returned by getMessenger methods all have one already. It is up to the      * invoker of getChannelMessenger to supply one or not.     **/    private ListenerAdaptor messageWatcher;    protected String origService;        protected String origServiceParam;        /**     * Figure out what the service string will be after mangling (if required)      * and applying relevant defaults.     *     * @param service The service name in the unmangled address.     * @return String The service name in the mangled address.     **/    protected String effectiveService( String service ) {        // No redirection required. Just apply the default service.        if (insertedService == null) {            return (service == null) ? origService : service;        }        // Check if redirection is applicable.        return ((service != null) && service.startsWith(InsertedServicePrefix)) ? service : insertedService;    }    /**     * Figure out what the param string will be after mangling (if required) and      * applying relevant defaults.     *     * @param service The service name in the unmangled address.     * @param serviceParam The service parameter in the unmangled address.     * @return String The service parameter in the mangled address.     **/    protected String effectiveParam( String service, String serviceParam ) {        // No redirection required. Or not applicable. Just apply the default param.        if ((insertedService == null) || ((service != null) && service.startsWith(InsertedServicePrefix))) {            return (serviceParam == null) ? origServiceParam : serviceParam;        }        // Apply redirection. We need the effective service, now.        if (service == null) {            service = origService;        }        if (serviceParam == null) {            serviceParam = origServiceParam;        }        return ((null != service) && (null != serviceParam)) ? (service + "/" + serviceParam) : service;    }    /**     * Give this channel the watcher that it must use whenever sendMessage(...,listener) is used. If not set,     * sendMessage(..., listener) will throw.     * @deprecated This method is in support of deprecated methods.     **/    public void setMessageWatcher( ListenerAdaptor messageWatcher ) {        this.messageWatcher = messageWatcher;    }    /**     * Create a new ChannelMessenger     *      * @param baseAddress The network address messages go to; regardless of service, param, or group.     * @param groupRedirection Group to which the messages must be redirected. This is used to implement the automatic group     * seggregation which has become a de-facto standard. If not null, the unique portion of the specified groupID is     * prepended with {@link #InsertedServicePrefix} and inserted in every message's destination address in place of the     * the original service name, which gets shifted into the begining of the service parameter. The opposite is done     * on arrival to restore the original destination address before the message is delivered to the listener in the     * the specified group. Messages that already bear a group redirection are not affected.     * @param origService The default destination service for messages sent without specifying a different service.     * @param origServiceParam The default destination service parameter for messages sent without specifying a different service     * parameter.     **/    public ChannelMessenger( EndpointAddress baseAddress, PeerGroupID groupRedirection,                             String origService, String origServiceParam ) {        // FIXME: The inserted service business is really messy. Group seggregation does not have to be the endpoint service's        // business. It should be specified by the app as part of the destination address. What we're doing here        // is simply enforcing what could just be a convention.        super(baseAddress);        if (groupRedirection == null) {            insertedService = null;        } else {            insertedService = InsertedServicePrefix + groupRedirection.getUniqueValue().toString();        }        this.origService = origService;        this.origServiceParam = origServiceParam;        // Now that we're initialized enough, grab the destination addr from our superclass and fix it.  We add the service and        // param; NOT the group mangling: getDestinationAddress[Object]() should always return what was given at construction.        EndpointAddress dest = getDestinationAddressObject();        dest.setServiceName(origService);        dest.setServiceParameter(origServiceParam);    }        /**     * {@inheritDoc}     *     * <p/> By default a channel refuses to make a channel.     *     **/    public Messenger getChannelMessenger( PeerGroupID redirection, String service, String serviceParam ) {        return null;    }        /**     * {@inheritDoc}     *     * @deprecated Implements deprecated method.     **/    public void sendMessage(Message msg, String service, String serviceParam, OutgoingMessageEventListener listener) {        if (messageWatcher == null) {            throw new UnsupportedOperationException("This channel was not configured to emulate this legacy method.");        }        // Cleanup the message from any existing result prop since we're going to use select.        msg.setMessageProperty(Messenger.class, null);        // Tell the watcher to select that message.        messageWatcher.watchMessage(listener, msg);        sendMessageN(msg, service, serviceParam);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美美女一区二区在线观看| 亚洲18女电影在线观看| 久久久蜜桃精品| 精品国产91洋老外米糕| 91久久精品国产91性色tv| 国产91精品一区二区麻豆网站| 狠狠网亚洲精品| 国产精品一区二区在线播放| 国产精品一区在线观看乱码| 91视频com| 欧美午夜理伦三级在线观看| 日韩欧美一级特黄在线播放| 国产午夜精品一区二区三区视频| 中文字幕在线观看不卡| 日韩电影免费一区| 99久久国产综合色|国产精品| 日本韩国精品在线| 国产欧美日韩麻豆91| 亚洲与欧洲av电影| 成人午夜免费电影| 久久久久国产精品免费免费搜索| 亚洲另类在线制服丝袜| 国产精品1区2区3区在线观看| 在线观看日韩av先锋影音电影院| 国产亚洲综合在线| 久久超碰97中文字幕| 日韩三级免费观看| 亚洲国产精品一区二区久久| www.色精品| 亚洲天天做日日做天天谢日日欢| 国产乱码精品一品二品| 日韩三级精品电影久久久| 蜜臀av亚洲一区中文字幕| 欧美日韩一区二区三区高清| 亚洲午夜精品一区二区三区他趣| 国产成人免费在线观看不卡| 欧美午夜精品一区二区蜜桃| 亚洲精品国产视频| 欧美视频一区二区| 精品一区二区三区视频| 日韩精品一区二区三区在线观看| 免费av网站大全久久| 久久天堂av综合合色蜜桃网| 国产精品自拍三区| 亚洲伊人伊色伊影伊综合网| 欧美欧美欧美欧美首页| 国产麻豆成人传媒免费观看| 国产精品美女久久久久久久久| 91色视频在线| 韩国av一区二区三区在线观看| 国产午夜精品一区二区三区四区| 91网页版在线| 国产成人av影院| 亚洲高清视频在线| 国产精品女人毛片| 日韩亚洲欧美中文三级| 色婷婷精品大在线视频 | 久久久久国产一区二区三区四区| 成人av电影免费在线播放| 石原莉奈在线亚洲三区| 亚洲乱码国产乱码精品精的特点| 精品国产精品一区二区夜夜嗨| 99精品一区二区三区| 国产1区2区3区精品美女| 亚洲天堂a在线| 国产人妖乱国产精品人妖| 欧美成人高清电影在线| 欧美绝品在线观看成人午夜影视| 成人av电影免费观看| 国产剧情av麻豆香蕉精品| 美女视频一区在线观看| 蜜桃精品在线观看| 久99久精品视频免费观看| 麻豆精品久久精品色综合| 久久精品久久精品| 国产不卡高清在线观看视频| 国产999精品久久久久久绿帽| 国产一区二区毛片| www.欧美亚洲| 欧美精品一卡两卡| 久久日韩粉嫩一区二区三区| 中文字幕第一区| 亚洲欧美影音先锋| 国产麻豆91精品| 色欧美片视频在线观看| 欧美午夜精品一区二区三区| 精品久久久久久久一区二区蜜臀| 精品盗摄一区二区三区| 一区二区三区丝袜| 国产一区二区福利| 欧美精品三级日韩久久| 国产欧美日韩在线视频| 亚洲一区二区成人在线观看| 蜜桃传媒麻豆第一区在线观看| 丁香激情综合五月| 精品国产sm最大网站| 亚洲成人黄色小说| 高清不卡一二三区| 欧美一级日韩免费不卡| 亚洲乱码国产乱码精品精的特点| 国产精品亚洲人在线观看| 欧美精品日韩一区| 五月婷婷欧美视频| 欧美日精品一区视频| 亚洲图片自拍偷拍| 欧美性色综合网| 五月天久久比比资源色| 成人免费看视频| 欧美激情一二三区| av电影在线不卡| 综合精品久久久| 欧美日韩精品一区二区三区蜜桃 | 69精品人人人人| 五月天欧美精品| 日韩欧美视频在线| 韩国一区二区三区| 国产精品欧美一级免费| 国产91在线看| 一区二区三区在线观看国产| 国产欧美日韩中文久久| 一区二区三区日韩在线观看| 秋霞电影网一区二区| 国产91精品精华液一区二区三区 | 99re成人精品视频| 久久综合九色综合欧美就去吻 | 韩国女主播一区| 无码av免费一区二区三区试看| 日韩一区二区免费电影| 久久久久久**毛片大全| 日韩影院免费视频| 国产伦理精品不卡| 亚洲欧美日韩电影| ●精品国产综合乱码久久久久| 91久久国产综合久久| 亚洲午夜久久久久久久久久久 | 日韩视频免费直播| 中文字幕精品在线不卡| 亚洲超碰精品一区二区| 丁香天五香天堂综合| 日韩一区二区三区av| 丝袜亚洲另类欧美综合| 精品国产人成亚洲区| 精品日韩一区二区三区免费视频| 亚洲成av人影院在线观看网| 亚洲精品一线二线三线无人区| 欧美日韩国产综合视频在线观看| jlzzjlzz国产精品久久| 精品少妇一区二区三区免费观看 | 日韩女同互慰一区二区| 国产福利不卡视频| 激情久久五月天| 91在线高清观看| 久久久久国产精品人| 欧美日韩激情一区| 精品日韩欧美一区二区| 久久日韩精品一区二区五区| 在线观看视频91| 国产电影一区二区三区| 免费成人在线观看| 午夜视频一区二区| 一区二区三区四区av| 欧美精品一区二区三区很污很色的| 91成人免费电影| 欧美在线视频你懂得| 图片区小说区区亚洲影院| 青青草成人在线观看| 99精品视频免费在线观看| 色狠狠色噜噜噜综合网| 日韩三级在线免费观看| 久久夜色精品一区| 中文字幕av一区二区三区| 国产精品青草综合久久久久99| 久久综合九色欧美综合狠狠| 精品久久免费看| 精品日本一线二线三线不卡| 久久品道一品道久久精品| 丝袜亚洲另类丝袜在线| 久久精品视频网| 看电视剧不卡顿的网站| 亚洲色图在线看| 一二三四社区欧美黄| 国产成人免费视频一区| 国产在线不卡一区| 欧美亚洲一区二区在线| 日韩美一区二区三区| 日韩限制级电影在线观看| 久久久久久久网| 国产精品国产馆在线真实露脸| 中文字幕一区二区5566日韩| 五月天亚洲婷婷| 中文字幕av不卡| 老司机午夜精品99久久| 久久99热这里只有精品| 亚洲免费电影在线| 激情小说亚洲一区| 色先锋久久av资源部| 蜜臀精品一区二区三区在线观看 | 亚洲精品视频在线看| 欧美成人在线直播| 亚洲色图在线播放|