?? profile.html
字號:
<!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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Profile.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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"> <A HREF="../../../../net/jxta/ext/config/MulticastAddress.html" title="class in net.jxta.ext.config"><B>PREV CLASS</B></A> <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> <A HREF="Profile.html" target="_top"><B>NO FRAMES</B></A> <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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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> <?xml version="1.0" encoding="utf-8" standalone="no"?> <!-- <!DOCTYPE xsd:schema SYSTEM "http://www.w3c.org/2001/XMLSchema.dtd"> --> <xsd:schema xmlns:jxta="http://www.jxta.org/net/jxta/ext/config" xmlns:xsd="http://www.w3c.org/2001/XMLSchema.dtd"> <xsd:annotation> <xsd:documentation xml:lang="en"> JXTA Configuration see http://www.jxta.org for more info. </xsd:documentation> </xsd:annotation> <xsd:complexType name="jxta"> <xsd:sequence> <xsd:element name="peer" type="jxta:Peer" minOccurs="1" maxOccurs="1"/> <xsd:element name="network" type="jxta:Network" minOccurs="1" maxOccurs="1"/> <xsd:element name="transport" type="jxta:Transport" minOccurs="1" maxOccurs="1"/> <xsd:element name="service" type="jxta:Service" minOccurs="1" maxOccurs="1"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Peer"> <xsd:attribute name="name" type="xsd:string" use="optional"/> <xsd:attribute name="id" type="jxta:PeerID" use="optional"/> <xsd:attribute name="descriptor" type="xsd:string" use="optional"/> <xsd:attribute name="home" type="xsd:anyURI" use="optional" default="file://${user.home}/.jxta"/> <xsd:attribute name="trace" type="jxta:Trace" use="optional" default="user default"/> <xsd:sequence> <xsd:element name="description" type="jxta:Description" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="security" type="jxta:Security" minOccurs="0" maxOccurs="1"/> <xsd:element name="rootCert" type="jxta:RootCert" minOccurs="0" maxOccurs="1"/> <xsd:element name="proxy" type="jxta:ProxyAddress" minOccurs="0" maxOccurs="1"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Network"> <xsd:sequence> <xsd:element name="rendezVous" type="jxta:RendezVous" minOccurs="0" maxOccurs="1"/> <xsd:element name="relays" type="jxta:Relays" minOccurs="0" maxOccurs="1"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Transport"> <xsd:sequence> <xsd:element name="tcp" type="Tcp" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="http" type="Http" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Service"> <xsd:sequence> <xsd:element name="rendezVous" type="jxta:RendezVousService" minOccurs="0" maxOccurs="1"/> <xsd:element name="relay" type="jxta:RelayService" minOccurs="0" maxOccurs="1"/> <xsd:element name="endpoint" type="jxta:EndpointService" minOccurs="0" maxOccurs="1"/> <xsd:element name="proxy" type="jxta:ProxyService" minOccurs="0" maxOccurs="1"/> </xsd:sequence> </xsd:complexType> <xsd:simpleType name="Trace"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="error"/> <xsd:enumeration value="warn"/> <xsd:enumeration value="info"/> <xsd:enumeration value="debug"/> <xsd:enumeration value="user default"/> </xsd:restriction> </xsd:simpleType> <xsd:complextType name="Description"> <xsd:all> </xsd:all> </xsd:complextType> <xsd:complexType name="Security"> <xsd:attribute name="enabled" type="xsd:boolean" use="optional" default="true"/> <xsd:attribute name="principal" type="xsd:string" use="required"/> </xsd:complexType> <xsd:complexType name="RootCert"> <xsd:simpleContext> <xsd:extension base="xsd:string"> <xsd:attribute name="address" type="xsd:anyURI" use="optional"/> </xsd:extension> </xsd:simpleContext> </xsd:complexType> <xsd:complexType name="ProxyAddress"> <xsd:simpleContent> <xsd:extension base="xsd:anyURI"> <xsd:attribute name="enabled" type="xsd:boolean" use="optional" default="false"/> </xsd:extension> </xsd:simpleContent> </xsd:complexType> <xsd:complexType name="RendezVous"> <xsd:attribute name="bootstrap" type="xsd:anyURI" use="optional"/> <xsd:attribute name="discovery" type="xsd:boolean" use="optional" default="true"/> <xsd:element name="address" type="jxta:Address" minOccurs="0" maxOccurs="unbounded" default="://"/> </xsd:complexType> <xsd:complexType name="Relays"> <xsd:attribute name="bootstrap" type="xsd:anyURI" use="optional"/> <xsd:attribute name="discovery" type="xsd:boolean" use="optional" default="true"/> <xsd:element name="address" type="jxta:Address" minOccurs="0" maxOccurs="unbounded" default="//:"/> </xsd:complexType> <xsd:element name="Address" type="xsd:anyURI"/> <xsd:complexType name="Tcp"> <xsd:attribute name="enabled" type="xsd:boolean" use="optional" default="true"/> <xsd:sequence> <xsd:element name="incoming" type="jxta:TransportEndpoint" minOccurs="0" maxOccurs="1"/> <xsd:element name="outgoing" type="jxta:TransportEndpoint" minOccurs="0" maxOccurs="1"/> <xsd:element name="TcpAddress" type="TcpAddress" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="publicAddress" type="jxta:PublicAddress" minOccurs="0" maxOccurs="unbounded" default="http://:"/> <xsd:element name="proxy" type="jxta:ProxyAddress" minOccurs="0" maxOccurs="1"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Http"> <xsd:attribute name="enabled" type="xsd:boolean" use="optional" default="true"/> <xsd:sequence> <xsd:element name="incoming" type="jxta:TransportEndpoint" minOccurs="0" maxOccurs="1"/> <xsd:element name="outgoing" type="jxta:TransportEndpoint" minOccurs="0" maxOccurs="1"/> <xsd:element name="address" type="jxta:TransportAddress" minOccurs="0" maxOccurs="unbounded" default="http://:"/> <xsd:element name="publicAddress" type="jxta:PublicAddress" minOccurs="0" maxOccurs="unbounded" default="http://:"/> <xsd:element name="proxy" type="jxta:ProxyAddress" minOccurs="0" maxOccurs="1"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="TransportEndpoint"> <xsd:attribute name="enabled" type="xsd:boolean" use="optional" default="false"/> </xsd:complexType> <xsd:complexType name="TcpAddress"> <xsd:simpleContent> <xsd:extension bae="xsd:anyURI"> <xsd:attribute name="range" type="xsd:integer"> <xsd:restrictive> <xsd:minInclusive value="0"/> <xsd:maxInclusive value="65535"/> </xsd:restrictive> </xsd:attribute> <xsd:sequence> <xsd:element name="multicast" type="jxta:MulticastAddress"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -