⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 profile.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><TITLE>Profile (Project JXTA J2SE)</TITLE><META NAME="keywords" CONTENT="net.jxta.ext.config.Profile class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="Profile (Project JXTA J2SE)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Profile.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><a href='http://www.jxta.org' target='_blank'>Project JXTA</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../net/jxta/ext/config/MulticastAddress.html" title="class in net.jxta.ext.config"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../net/jxta/ext/config/Profile.Key.html" title="class in net.jxta.ext.config"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Profile.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">net.jxta.ext.config</FONT><BR>Class Profile</H2><PRE>java.lang.Object  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>net.jxta.ext.config.Profile</B></PRE><HR><DL><DT>public class <B>Profile</B><DT>extends java.lang.Object</DL><P>A JXTA configurator that can parse an XML resource and in turn construct the  relevant <code>PlatformConfig</code>.<br>  <br>  All addresses are of the form URI. Addresses that do not specify a scheme  will be defaulted accordingly. Further, <code>RendezVous</code> and <code>Relay</code>  addresses that do not specify a host wil be replaced with the corresponding  boostrap results. If a scheme is specified only bootstrap results with  matching schemes will be retained. All other addresses that do not specify a  host will, in turn, be replaced with the local host. All fields have backing  defaults enabling one to seed a configuration with a partial yet valid  resource file.<br>  <br>  An example ResourceConfigurator"profile" is as follows:<br>  <br>  <pre> &lt;?xml version="1.0" encoding="utf-8" standalone="no"?&gt; &lt;!-- &lt;!DOCTYPE xsd:schema SYSTEM "http://www.w3c.org/2001/XMLSchema.dtd"&gt; --&gt; &lt;xsd:schema xmlns:jxta="http://www.jxta.org/net/jxta/ext/config"   xmlns:xsd="http://www.w3c.org/2001/XMLSchema.dtd"&gt;   &lt;xsd:annotation&gt;     &lt;xsd:documentation xml:lang="en"&gt;     JXTA Configuration     see http://www.jxta.org for more info.     &lt;/xsd:documentation&gt;   &lt;/xsd:annotation&gt;   &lt;xsd:complexType name="jxta"&gt;     &lt;xsd:sequence&gt;       &lt;xsd:element name="peer" type="jxta:Peer" minOccurs="1" maxOccurs="1"/&gt;       &lt;xsd:element name="network" type="jxta:Network" minOccurs="1"         maxOccurs="1"/&gt;       &lt;xsd:element name="transport" type="jxta:Transport" minOccurs="1"         maxOccurs="1"/&gt;       &lt;xsd:element name="service" type="jxta:Service" minOccurs="1"         maxOccurs="1"/&gt;     &lt;/xsd:sequence&gt;   &lt;/xsd:complexType&gt;   &lt;xsd:complexType name="Peer"&gt;     &lt;xsd:attribute name="name" type="xsd:string" use="optional"/&gt;     &lt;xsd:attribute name="id" type="jxta:PeerID" use="optional"/&gt;     &lt;xsd:attribute name="descriptor" type="xsd:string" use="optional"/&gt;     &lt;xsd:attribute name="home" type="xsd:anyURI" use="optional"       default="file://${user.home}/.jxta"/&gt;     &lt;xsd:attribute name="trace" type="jxta:Trace" use="optional"       default="user default"/&gt;     &lt;xsd:sequence&gt;       &lt;xsd:element name="description" type="jxta:Description" minOccurs="0"         maxOccurs="unbounded"/&gt;       &lt;xsd:element name="security" type="jxta:Security" minOccurs="0"         maxOccurs="1"/&gt;       &lt;xsd:element name="rootCert" type="jxta:RootCert" minOccurs="0"         maxOccurs="1"/&gt;       &lt;xsd:element name="proxy" type="jxta:ProxyAddress" minOccurs="0"         maxOccurs="1"/&gt;     &lt;/xsd:sequence&gt;   &lt;/xsd:complexType&gt;   &lt;xsd:complexType name="Network"&gt;     &lt;xsd:sequence&gt;       &lt;xsd:element name="rendezVous" type="jxta:RendezVous" minOccurs="0"         maxOccurs="1"/&gt;       &lt;xsd:element name="relays" type="jxta:Relays" minOccurs="0" maxOccurs="1"/&gt;     &lt;/xsd:sequence&gt;   &lt;/xsd:complexType&gt;   &lt;xsd:complexType name="Transport"&gt;     &lt;xsd:sequence&gt;       &lt;xsd:element name="tcp" type="Tcp" minOccurs="0" maxOccurs="unbounded"/&gt;       &lt;xsd:element name="http" type="Http" minOccurs="0" maxOccurs="unbounded"/&gt;     &lt;/xsd:sequence&gt;   &lt;/xsd:complexType&gt;   &lt;xsd:complexType name="Service"&gt;     &lt;xsd:sequence&gt;       &lt;xsd:element name="rendezVous" type="jxta:RendezVousService" minOccurs="0"         maxOccurs="1"/&gt;       &lt;xsd:element name="relay" type="jxta:RelayService" minOccurs="0"         maxOccurs="1"/&gt;       &lt;xsd:element name="endpoint" type="jxta:EndpointService" minOccurs="0"         maxOccurs="1"/&gt;       &lt;xsd:element name="proxy" type="jxta:ProxyService" minOccurs="0"         maxOccurs="1"/&gt;     &lt;/xsd:sequence&gt;   &lt;/xsd:complexType&gt;   &lt;xsd:simpleType name="Trace"&gt;     &lt;xsd:restriction base="xsd:string"&gt;       &lt;xsd:enumeration value="error"/&gt;       &lt;xsd:enumeration value="warn"/&gt;       &lt;xsd:enumeration value="info"/&gt;       &lt;xsd:enumeration value="debug"/&gt;       &lt;xsd:enumeration value="user default"/&gt;     &lt;/xsd:restriction&gt;   &lt;/xsd:simpleType&gt;   &lt;xsd:complextType name="Description"&gt;     &lt;xsd:all&gt;     &lt;/xsd:all&gt;   &lt;/xsd:complextType&gt;   &lt;xsd:complexType name="Security"&gt;     &lt;xsd:attribute name="enabled" type="xsd:boolean" use="optional"       default="true"/&gt;     &lt;xsd:attribute name="principal" type="xsd:string" use="required"/&gt;   &lt;/xsd:complexType&gt;   &lt;xsd:complexType name="RootCert"&gt;     &lt;xsd:simpleContext&gt;       &lt;xsd:extension base="xsd:string"&gt;         &lt;xsd:attribute name="address" type="xsd:anyURI" use="optional"/&gt;       &lt;/xsd:extension&gt;     &lt;/xsd:simpleContext&gt;   &lt;/xsd:complexType&gt;   &lt;xsd:complexType name="ProxyAddress"&gt;     &lt;xsd:simpleContent&gt;       &lt;xsd:extension base="xsd:anyURI"&gt;         &lt;xsd:attribute name="enabled" type="xsd:boolean" use="optional"           default="false"/&gt;       &lt;/xsd:extension&gt;     &lt;/xsd:simpleContent&gt;   &lt;/xsd:complexType&gt;   &lt;xsd:complexType name="RendezVous"&gt;     &lt;xsd:attribute name="bootstrap" type="xsd:anyURI" use="optional"/&gt;     &lt;xsd:attribute name="discovery" type="xsd:boolean" use="optional"       default="true"/&gt;     &lt;xsd:element name="address" type="jxta:Address" minOccurs="0"       maxOccurs="unbounded" default="://"/&gt;   &lt;/xsd:complexType&gt;   &lt;xsd:complexType name="Relays"&gt;     &lt;xsd:attribute name="bootstrap" type="xsd:anyURI" use="optional"/&gt;     &lt;xsd:attribute name="discovery" type="xsd:boolean" use="optional"       default="true"/&gt;     &lt;xsd:element name="address" type="jxta:Address" minOccurs="0"       maxOccurs="unbounded" default="//:"/&gt;   &lt;/xsd:complexType&gt;   &lt;xsd:element name="Address" type="xsd:anyURI"/&gt;   &lt;xsd:complexType name="Tcp"&gt;     &lt;xsd:attribute name="enabled" type="xsd:boolean" use="optional"       default="true"/&gt;     &lt;xsd:sequence&gt;       &lt;xsd:element name="incoming" type="jxta:TransportEndpoint" minOccurs="0"         maxOccurs="1"/&gt;       &lt;xsd:element name="outgoing" type="jxta:TransportEndpoint" minOccurs="0"         maxOccurs="1"/&gt;       &lt;xsd:element name="TcpAddress" type="TcpAddress" minOccurs="0"         maxOccurs="unbounded"/&gt;       &lt;xsd:element name="publicAddress" type="jxta:PublicAddress" minOccurs="0"         maxOccurs="unbounded" default="http://:"/&gt;       &lt;xsd:element name="proxy" type="jxta:ProxyAddress" minOccurs="0"         maxOccurs="1"/&gt;     &lt;/xsd:sequence&gt;   &lt;/xsd:complexType&gt;   &lt;xsd:complexType name="Http"&gt;     &lt;xsd:attribute name="enabled" type="xsd:boolean" use="optional"       default="true"/&gt;     &lt;xsd:sequence&gt;       &lt;xsd:element name="incoming" type="jxta:TransportEndpoint" minOccurs="0"         maxOccurs="1"/&gt;       &lt;xsd:element name="outgoing" type="jxta:TransportEndpoint" minOccurs="0"         maxOccurs="1"/&gt;       &lt;xsd:element name="address" type="jxta:TransportAddress" minOccurs="0"         maxOccurs="unbounded" default="http://:"/&gt;       &lt;xsd:element name="publicAddress" type="jxta:PublicAddress" minOccurs="0"         maxOccurs="unbounded" default="http://:"/&gt;       &lt;xsd:element name="proxy" type="jxta:ProxyAddress" minOccurs="0"         maxOccurs="1"/&gt;     &lt;/xsd:sequence&gt;   &lt;/xsd:complexType&gt;   &lt;xsd:complexType name="TransportEndpoint"&gt;     &lt;xsd:attribute name="enabled" type="xsd:boolean" use="optional"       default="false"/&gt;   &lt;/xsd:complexType&gt;   &lt;xsd:complexType name="TcpAddress"&gt;       &lt;xsd:simpleContent&gt;       &lt;xsd:extension bae="xsd:anyURI"&gt;         &lt;xsd:attribute name="range" type="xsd:integer"&gt;           &lt;xsd:restrictive&gt;             &lt;xsd:minInclusive value="0"/&gt;             &lt;xsd:maxInclusive value="65535"/&gt;           &lt;/xsd:restrictive&gt;         &lt;/xsd:attribute&gt;         &lt;xsd:sequence&gt;           &lt;xsd:element name="multicast" type="jxta:MulticastAddress"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -