📄 profile.java
字号:
* <xsd:complexType name="Optimzer"> * <xsd:attribute name="class" type="xsd:string" use="required"/> * <xsd:sequence> * <xsd:element name="property" type="jxta:Property" minOccurs="0" * maxOccurs="unbounded"/> * </xsd:complexType> * </xsd:complexType> * * <xsd:complexType name="Property"> * <xsd:simpleContent> * <xsd:extension base="xsd:string"> * <xsd:attribute name="name" type="xsd:string" use="required"/> * </xsd:extension> * </xsd:simpleContent> * </xsd:complexType> * * </xsd:extension> * </xsd:simpleContent> * </xsd:element> * * <xsd:complexType name="ServiceEndpoint"> * <xsd:attribute name="enabled" type="xsd:boolean" use="optional" * default="false"/> * <xsd:attribute name="maximum" type="xsd:positiveInteger" use="optional" * default="1"/> * <xsd:attribute name="lease" type="xsd:positiveInteger" use="optional" * default="7200000"/> * </xsd:complexType> * * <xsd:complexType name="Optimizer"> * <xsd:attribute name="class" type="xsd:string" use="required"/> * <xsd:sequence> * <xsd:element name="property" type="jxta:Property" minOccurs="0" * maxOccurs="unbounded"/> * </xsd:complexType> * </xsd:complexType> * * <xsd:complexType name="Validator"> * <xsd:attribute name="class" type="xsd:string" use="required"/> * <xsd:sequence> * <xsd:element name="property" type="jxta:Property" minOccurs="0" * maxOccurs="unbounded"/> * </xsd:complexType> * </xsd:complexType> * * <xsd:complexType name="Property"> * <xsd:simpleContent> * <xsd:extension base="xsd:string"> * <xsd:attribute name="name" type="xsd:string" use="required"/> * </xsd:extension> * </xsd:simpleContent> * </xsd:complexType> * * </xsd:schema> * </pre> * * @author james todd [gonzo at jxta dot org] */public class Profile { /** * Prototypical "edge" configuration , i.e. no * {@link net.jxta.rendezvous.RendezVousService} or Relay service. */ public final static Profile EDGE = new Profile("edge.xml"); /** * Prototypical "super" configuration}, i.e. provisions * {@link net.jxta.rendezvous.RendezVousService} and Relay services. */ public final static Profile SUPER = new Profile("super.xml"); /** * Prototypical RendezVous configuration, i.e. provisions * {@link net.jxta.rendezvous.RendezVousService}. */ public final static Profile RENDEZVOUS = new Profile("rendezVous.xml"); /** * Prototypical Relay configuration, i.e. provisions Relay services. */ public final static Profile RELAY = new Profile("relay.xml"); /** * Adhoc configuration. */ public final static Profile ADHOC = new Profile("adhoc.xml"); /** * Local (loopback) configuration. */ public final static Profile LOCAL = new Profile("local.xml"); /** * Default configuration {@link net.jxta.ext.config.Profile#EDGE}. */ public final static Profile DEFAULT = EDGE; /** * XPath accessors to Profile resources. * * @author james todd [gonzo at jxta dot org] */ public static class Key { /** * Root path: {@value} */ public final static String JXTA = "/jxta"; /** * Peer: {@value} */ public final static String PEER = JXTA + "/peer"; /** * Peer name: {@value} */ public final static String PEER_NAME = PEER + "/@name"; /** * Peer ID: {@value} */ public final static String PEER_ID = PEER + "/@id"; /** * Peer description: {@value} */ public final static String PEER_DESCRIPTOR = PEER + "/@descriptor"; /** * Peer home: {@value} */ public final static String HOME_ADDRESS = PEER + "/@home"; /** * Peer security: {@value} */ public final static String SECURITY = PEER + "/security"; /** * Peer security enabler: {@value} */ public final static String SECURITY_IS_ENABLED = SECURITY + "/@enabled"; /** * Peer principal: {@value} */ public final static String PRINCIPAL = SECURITY + "/@principal"; /** * Peer root certificate: {@value} */ public final static String ROOT_CERTIFICATE = PEER + "/rootCert"; /** * Peer root certificate address: {@value} */ public final static String ROOT_CERTIFICATE_ADDRESS = ROOT_CERTIFICATE + "/@address"; /** * Trace level: {@value} */ public final static String TRACE = PEER + "/@trace"; /** * Peer Description: {@value} */ public final static String PEER_DESCRIPTION = PEER + "/description"; /** * Peer proxy address: {@value} */ public final static String PEER_PROXY_ADDRESS = PEER + "/proxy"; /** * Network: {@value} */ public final static String NETWORK = JXTA + "/network"; /** * Network ID: {@value} */ public final static String NETWORK_ID = NETWORK + "/@id"; /** * Network name: {@value} */ public final static String NETWORK_NAME = NETWORK + "/@name"; /** * Network description: {@value} */ public final static String NETWORK_DESCRIPTION = NETWORK + "/@description"; /** * RendezVous: {@value} */ public final static String RENDEZVOUS = NETWORK + "/rendezVous"; /** * RendezVous boostrap: {@value} */ public final static String RENDEZVOUS_BOOTSTRAP_ADDRESS = RENDEZVOUS + "/@bootstrap"; /** * RendezVous discovery enabler: {@value} */ public final static String RENDEZVOUS_DISCOVERY_IS_ENABLED = RENDEZVOUS + "/@discovery"; /** * RendezVous address: {@value} */ public final static String RENDEZVOUS_ADDRESS = RENDEZVOUS + "/address"; /** * Relay: {@value} */ public final static String RELAYS = NETWORK + "/relays"; /** * Relay bootstrap enabler: {@value} */ public final static String RELAYS_BOOTSTRAP_ADDRESS = RELAYS + "/@bootstrap"; /** * Relay discovery enabler: {@value} */ public final static String RELAYS_DISCOVERY_IS_ENABLED = RELAYS + "/@discovery"; /** * Relay address: {@value} */ public final static String RELAYS_ADDRESS = RELAYS + "/address"; /** * Transport: {@value} */ public final static String TRANSPORT = JXTA + "/transport"; /** * Tcp transport: {@value} */ public final static String TCP = TRANSPORT + "/tcp"; /** * Tcp transport enabler: {@value} */ public final static String TCP_IS_ENABLED = TCP + "/@enabled"; /** * Tcp transport configuration mode: {@value} */ public final static String TCP_CONFIGURATION_MODE = TCP + "/@mode"; /** * Tcp transport incoming: {@value} */ public final static String TCP_INCOMING = TCP + "/incoming"; /** * Tcp transport incoming enabler: {@value} */ public final static String TCP_INCOMING_IS_ENABLED = TCP_INCOMING + "/@enabled"; /** * Tcp transport outgoing: {@value} */ public final static String TCP_OUTGOING = TCP + "/outgoing"; /** * Tcp transport outgoing enabler: {@value} */ public final static String TCP_OUTGOING_IS_ENABLED = TCP + "/@enabled"; /** * Tcp transport address: {@value} */ public final static String TCP_ADDRESS = TCP + "/address"; /** * Tcp transport port range: {@value} */ public final static String TCP_PORT_RANGE = TCP_ADDRESS + "/@range"; /** * Tcp transport public address: {@value} */ public final static String TCP_PUBLIC_ADDRESS = TCP + "/publicAddress"; /** * Tcp transport public address exclusive enabler: {@value} */ public final static String TCP_PUBLIC_ADDRESS_EXCLUSIVE_IS_ENABLED = TCP_PUBLIC_ADDRESS + "/@exclusive"; /** * Tcp transport proxy address: {@value} */ public final static String TCP_PROXY_ADDRESS = TCP + "/proxy"; /** * Tcp transport proxy enabler: {@value} */ public final static String TCP_PROXY_IS_ENABLED = TCP_PROXY_ADDRESS + "/@enabled"; /** * Multicast: {@value} */ public final static String MULTICAST = TCP_ADDRESS + "/multicast"; /** * Multicast enabler: {@value} */ public final static String MULTICAST_IS_ENABLED = MULTICAST + "/@enabled"; /** * Multicast size: {@value} */ public final static String MULTICAST_SIZE = MULTICAST + "/@size"; /** * HTTP transport: {@value} */ public final static String HTTP = TRANSPORT + "/http"; /** * HTTP transport enabler: {@value} */ public final static String HTTP_IS_ENABLED = HTTP + "/@enabled"; /** * HTTP transport incoming: {@value} */ public final static String HTTP_INCOMING = HTTP + "/incoming"; /** * HTTP transport incoming enabler: {@value} */ public final static String HTTP_INCOMING_IS_ENABLED = HTTP_INCOMING + "/@enabled"; /** * HTTP transport outgoing: {@value} */ public final static String HTTP_OUTGOING = HTTP + "/outgoing"; /** * HTTP transport outgoing enabler: {@value} */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -