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

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

?? endpointaddress.java

?? jxta平臺的開發包
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * * $Id: EndpointAddress.java,v 1.29 2005/11/16 23:42:02 bondolo Exp $ * * Copyright (c) 2001 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 java.lang.ref.SoftReference;import java.net.URI;import java.io.UnsupportedEncodingException;import org.apache.log4j.Level;import org.apache.log4j.Logger;import net.jxta.id.ID;/** * Describes a destination to which JXTA messages may be sent. This may be: * *  <ul> *      <li>A Pipe</li> *      <li>A Peergroup (propagate)</li> *      <li>A Peer</li> *      <li>A Message Transport for a Peer</li> *  </ul> * *  <p/>An Endpoint Address is composed of four components: a protocol (also *  called a scheme), a protocol address (also called an authority), an optional * service name and optional service parameter. * *  <p/><b>The Protocol</b><ul> *      <li>Describes the method of addressing used by the remainder of the *      endpoint address.</li> *      <li>Indicates how the address will be resolved, ie. who will resolve it.</li> *      <li>Cooresponds to the "scheme" portion of a URI in W3C palance. *      <li><b>May not</b> contain the ":" character. *  </ul> * *  <p/><b>The Protocol Address</b><ul> *      <li>Describes the destination entity of this address.</li> *      <li>Form is dependant upon the protocol being used.</li> *      <li>Cooresponds to the "Authority" portion of a URI in W3C palance. *      <li><b>May not</b> contain the "/" character. *  </ul> * *  <p/><b>The Service Name</b> (optional)<ul> *      <li>Describes the service that is the destination. A service cannot be *      a protocol address because a service must have a location; a group or a *      specific peer.</li> *      <li>Form is dependant upon service intent. This is matched as a UTF-8 *      string.</li> *      <li><b>May not</b> contain the "/" character. *  </ul> * *  <p/><b>The Service Parameter</b> (optional)<ul> *      <li>Describes parameters for the service.</li> *      <li>Form is dependant upon service intent. This is matched as a UTF-8 *      string (if it is used for matching).</li> *  </ul> * * @see  net.jxta.endpoint.EndpointService * @see  net.jxta.endpoint.MessageTransport * @see  net.jxta.endpoint.Messenger * @see  net.jxta.pipe.PipeService * **/public class EndpointAddress {        /**     *  Log4J Logger     **/    private static final Logger LOG = Logger.getLogger(EndpointAddress.class.getName());        /**     *  if true then the address is a url, otherwise its a uri (likely a urn).     **/    private boolean hierarchical = true;        /**     *  Describes the method of addressing used by the remainder of the     *  endpoint address.     **/    private String protocol = null;        /**     *  Describes the destination entity of this address.     **/    private String protocolAddress = null;        /**     *  Describes the service that is the destination.     **/    private String service = null;        /**     *  Describes parameters for the service.     **/    private String serviceParam = null;        /**     *  number of modifications since initial creation. used in caching of     *  string representation and hashCode.     **/    private transient volatile int modcount = 0;        /**     *  mod count at last hash code calc     **/    private transient int modAtLastHashCalc = -1;        /**     *  cached calculated hash code.     **/    private transient int cachedHashCode = 0;        /**     *  mod count at last string representation creation.     **/    private transient int modAtLastStringCalc = -1;        /**     *  cached copy of string representation.     **/    private transient SoftReference cachedToString = null;        /**     *  Returns an unmodifiable copy of the specified EndpointAddress. This     *  method allows modules to provide users with "read-only" access to     *  an endpoint address without needing to make a clone for each copy     *  returned. Attempts to modify the returned EndpointAddress results     * in an {@link java.lang.UnsupportedOperationException}.     **/    private static class UnmodifiableEndpointAddress extends EndpointAddress {                /**         *  Create a new unmodifiable endpoint address.         **/        public UnmodifiableEndpointAddress( EndpointAddress address ) {            super();            super.setProtocolName( address.getProtocolName() );            super.setProtocolAddress( address.getProtocolAddress() );            super.setServiceName( address.getServiceName() );            super.setServiceParameter( address.getServiceParameter() );        }                /**         *  {@inheritDoc}         *         *  <p/>throws an {@link java.lang.UnsupportedOperationException} for every operation.         **/        public void setProtocolName(String name) {            throw new UnsupportedOperationException( "This EndpointAddress is not modifiable" );        }                /**         *  {@inheritDoc}         *         *  <p/>throws an {@link java.lang.UnsupportedOperationException} for every operation.         **/        public void setProtocolAddress(String address) {            throw new UnsupportedOperationException( "This EndpointAddress is not modifiable" );        }                /**         *  {@inheritDoc}         *         *  <p/>throws an {@link java.lang.UnsupportedOperationException} for every operation.         **/        public void setServiceName(String name) {            throw new UnsupportedOperationException( "This EndpointAddress is not modifiable" );        }                /**         *  {@inheritDoc}         *         *  <p/>throws an {@link java.lang.UnsupportedOperationException} for every operation.         **/        public void setServiceParameter(String param) {            throw new UnsupportedOperationException( "This EndpointAddress is not modifiable" );        }    }        /**     *  Returns an unmodifiable clone of the provided EndpointAddress.     *     *  @param address  the address to be cloned.     *  @return the unmodifiable address clone.     **/    public static EndpointAddress unmodifiableEndpointAddress( EndpointAddress address ) {        return new EndpointAddress.UnmodifiableEndpointAddress( address );    }        /**     * Builds an empty (invalid) Endpoint Address.     *     *  @deprecated EndpointAddress works better if it is immutable.     **/    public EndpointAddress() {    }        /**     * Builds an Address from a string     *     *  @param address the string representation of the address.     */    public EndpointAddress(String address) {        if( address == null ) {            throw new IllegalArgumentException( "address must not be null" );        }                parseURI(address);    }        /**     *  Create an EndpointAddress whose value is initialized from the provided     *  URI.     *     *  @param address the URI representation of the address.     */    public EndpointAddress( URI address ) {        this( address.toString() );    }    /**     * Constructor which builds an address from a byte array containing a UTF-8     * string.     *     *  @deprecated There isn't really ever a good reason to use this since it     *  has to assume the character encoding.     *     * @param bytes byte array containing a UTF-8 string of the endpoint address to be constructed.     **/    public EndpointAddress(byte[] bytes) {        if( bytes == null ) {            throw new IllegalArgumentException( "bytes must not be null" );        }                try {            parseURI(new String(bytes, "UTF8"));        } catch(UnsupportedEncodingException ex) {            throw new UnsupportedOperationException(ex.toString());        }    }        /**     * Constructor which builds an endpoint address from a base address and     * replacement service and params     *     * @param base The EndpointAddress on which the new EndpointAddress will be based     * @param service provides an alternate service for the new EndpointAddress.     * @param serviceParam provides and alternate service parameter for the new EndpointAddress     */    public EndpointAddress( EndpointAddress base, String service, String serviceParam ) {        if( base == null ) {            throw new IllegalArgumentException( "base EndpointAddress must not be null" );        }                setProtocolName( base.getProtocolName() );        setProtocolAddress( base.getProtocolAddress() );        setServiceName( service );        setServiceParameter( serviceParam );    }        /**     * Constructor which builds an address the four standard constituent parts.     *     * @param address Describes the destination entity of this address.     * @param protocol Describes the method of addressing used by the remainder of the     *  endpoint address.     * @param service String containing the name of the destination service     * @param serviceParam String containing the service parameter     **/    public EndpointAddress( String protocol, String address, String service, String serviceParam ) {        if( protocol == null ) {            throw new IllegalArgumentException( "protocol must not be null" );        }                if( address == null ) {            throw new IllegalArgumentException( "address must not be null" );        }                setProtocolName( protocol );        setProtocolAddress( address );        setServiceName( service );        setServiceParameter( serviceParam );    }        /**     * Constructor which builds an address from a standard jxta id and a     * service and param.     *     * @param id the ID which will be the destination of the endpoint address     * @param service String containing the name of the destination service     * @param serviceParam String containing the service parameter     **/    public EndpointAddress( ID id, String service, String serviceParam ) {        if( null == id ) {            throw new IllegalArgumentException( "id must not be null" );        }                setProtocolName( ID.URIEncodingName + ":" + ID.URNNamespace );        setProtocolAddress( id.getUniqueValue().toString() );        setServiceName( service );        setServiceParameter( serviceParam );    }        /**     *  {@inheritDoc}     **/    public Object clone( ) {        EndpointAddress clone = new EndpointAddress( getProtocolName(),            getProtocolAddress(),            getServiceName(),            getServiceParameter() );                return clone;    }        /**     *  {@inheritDoc}     **/    public boolean equals( Object target ) {        if( this == target ) {            return true;        }                if (target instanceof EndpointAddress ) {            EndpointAddress likeMe = (EndpointAddress) target;                        boolean result;                        if( (null == protocol) || (null == protocolAddress) ) {                throw new IllegalStateException( "Corrupt EndpointAddress, protocol or address is null" );            }                        result = (hierarchical == likeMe.hierarchical) &&            protocol.equalsIgnoreCase(likeMe.protocol) &&

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美综合天天夜夜久久| 亚洲欧洲在线观看av| 亚洲精品日韩综合观看成人91| 国产永久精品大片wwwapp| 欧美电影一区二区三区| 精品亚洲国产成人av制服丝袜| 69久久夜色精品国产69蝌蚪网| 午夜精品一区在线观看| 91精品欧美综合在线观看最新| 日日嗨av一区二区三区四区| 在线电影欧美成精品| 精品在线亚洲视频| 精品91自产拍在线观看一区| 另类综合日韩欧美亚洲| 久久久久成人黄色影片| 国产精品1区二区.| 国产精品成人免费在线| 一本大道久久精品懂色aⅴ| 亚洲男人天堂一区| 日本黄色一区二区| 免费成人av资源网| 国产夜色精品一区二区av| 国产a区久久久| 亚洲一区在线免费观看| 91精品国产综合久久香蕉麻豆 | 欧美一区二区国产| 久久精品99久久久| 久久久久久久网| 91麻豆国产在线观看| 亚洲国产精品麻豆| 色一情一乱一乱一91av| 婷婷六月综合网| 26uuu国产电影一区二区| 日本成人中文字幕在线视频| 中文字幕乱码日本亚洲一区二区| av一区二区三区在线| 亚洲成人一二三| 日本一区二区三区久久久久久久久不 | 青青草国产成人av片免费| wwww国产精品欧美| av在线不卡电影| 日韩国产欧美在线观看| 国产精品美女久久久久aⅴ| 欧美亚洲高清一区二区三区不卡| 久久99国产精品久久99果冻传媒| 一色桃子久久精品亚洲| 欧美不卡激情三级在线观看| 91网址在线看| 九九**精品视频免费播放| 亚洲一区二区三区四区不卡| 国产亚洲欧美日韩在线一区| 欧美在线一二三| 成人永久看片免费视频天堂| 午夜精品一区二区三区三上悠亚| 日本一区二区在线不卡| 欧美大片拔萝卜| 92精品国产成人观看免费 | 6080日韩午夜伦伦午夜伦| 成+人+亚洲+综合天堂| 精油按摩中文字幕久久| 亚洲国产精品一区二区久久 | 色综合天天在线| 国产美女视频91| 日韩av一级片| 亚洲女与黑人做爰| 国产精品精品国产色婷婷| 日韩精品一区二区三区在线播放 | 国产.精品.日韩.另类.中文.在线.播放| 亚洲综合色噜噜狠狠| 国产婷婷精品av在线| 欧美精品欧美精品系列| 欧美伊人久久久久久久久影院| 高清日韩电视剧大全免费| 麻豆一区二区三| 免费看日韩a级影片| 亚洲免费在线观看视频| 国产精品色眯眯| 国产精品色噜噜| 国产日韩欧美电影| 精品国产免费久久| 2023国产精品| 欧美精品一区二区三区一线天视频| 欧美性欧美巨大黑白大战| 色婷婷久久综合| 91亚洲资源网| aaa国产一区| 不卡在线观看av| 国产精品一区2区| 国产99久久久久| 成人午夜精品一区二区三区| 国产精品夜夜嗨| av亚洲产国偷v产偷v自拍| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 日韩一区二区精品| 欧美肥胖老妇做爰| 日韩一卡二卡三卡国产欧美| 久久综合国产精品| 久久综合国产精品| 国产女人aaa级久久久级| 亚洲天堂免费在线观看视频| 中文字幕五月欧美| 一区二区三区在线视频观看58| 午夜精品一区在线观看| 日韩不卡免费视频| 蜜臀91精品一区二区三区| 国产精品影视在线| 成人免费毛片片v| 99re热视频精品| 国产成人自拍高清视频在线免费播放| 国产精品一区二区你懂的| 成人天堂资源www在线| 色婷婷久久久综合中文字幕 | 天天影视色香欲综合网老头| 精品一区二区在线免费观看| 欧美精品1区2区3区| 日韩午夜av电影| 91精品一区二区三区在线观看| 久久久www成人免费无遮挡大片| 欧美激情在线一区二区| 国产精品久久久久9999吃药| 婷婷成人激情在线网| 精品一区二区免费视频| 国产精品996| 欧美日韩成人综合| 精品欧美久久久| 精品国产乱码久久久久久牛牛| 中文字幕一区二区三中文字幕| 一区二区在线观看av| 日一区二区三区| 99九九99九九九视频精品| 欧美日韩国产经典色站一区二区三区 | 在线区一区二视频| 精品国产亚洲一区二区三区在线观看 | 一个色综合av| 国产一区美女在线| 欧美中文字幕久久| 久久综合狠狠综合久久综合88 | 91精品国产综合久久精品性色| 中文字幕乱码久久午夜不卡| 午夜精品免费在线观看| 国产成人av资源| 欧美tk—视频vk| 悠悠色在线精品| 国产精品66部| 色就色 综合激情| 久久久国际精品| 午夜精品爽啪视频| 亚洲国产一区二区三区青草影视| 国产成人精品免费视频网站| 欧美日韩中文字幕一区| 欧美一区二区三区婷婷月色| 欧美一级午夜免费电影| 综合分类小说区另类春色亚洲小说欧美| 欧美aaa在线| 九九视频精品免费| 日韩一卡二卡三卡四卡| 亚洲自拍另类综合| 国产精品一卡二卡| 久久综合给合久久狠狠狠97色69| 亚洲高清在线精品| 成人免费观看视频| 久久久久99精品一区| 日本aⅴ精品一区二区三区| 一本大道av一区二区在线播放| 日韩一级二级三级| 亚洲一区二区三区四区在线| 97久久精品人人爽人人爽蜜臀| 国产精品无码永久免费888| 久久er99热精品一区二区| 欧美在线免费观看视频| 国产精品免费视频观看| 国产a精品视频| 国产亚洲欧美色| 成人国产精品免费观看| 久久精品视频一区| 国产精品一二二区| 国产精品天美传媒沈樵| 国产suv精品一区二区6| 国产三级精品视频| 国产盗摄视频一区二区三区| 中文字幕av一区 二区| 91丨porny丨在线| 亚洲一区影音先锋| 欧美一区二区成人6969| 精品亚洲成a人| 国产精品美女一区二区在线观看| 97成人超碰视| 亚洲成在线观看| 日韩三级在线免费观看| 黄色小说综合网站| 国产精品国模大尺度视频| 在线观看视频一区二区 | 亚洲精品伦理在线| 69av一区二区三区| 国产精品一二三区| 一区二区三区在线视频免费| 3atv在线一区二区三区| 国产盗摄一区二区三区| 亚洲激情自拍偷拍| 日韩欧美二区三区|