<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can
obtain a copy of the License at
https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
or packager/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.
When distributing the software, include this License Header Notice in each
file and include the License file at packager/legal/LICENSE.txt.
GPL Classpath Exception:
Oracle designates this particular file as subject to the "Classpath"
exception as provided by Oracle in the GPL Version 2 section of the License
file that accompanied this code.
Modifications:
If applicable, add the following below the License Header, with the fields
enclosed by brackets [] replaced by your own identifying information:
"Portions Copyright [year] [name of copyright owner]"
Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<!--
Document : configBindings.xml
Created on : January 23, 2009, 8:49 AM
Author : tjquinn
Description:
Purpose of the document follows.
-->
<!--
The following custom bindings apply to the DTD
-->
<xml-java-binding-schema>
<!--
Various boolean values in the DTD accept true/false, yes/no, and 0/1.
Here is the custom conversion for those.
-->
<conversion name="boolean" type="boolean"
parse="org.glassfish.appclient.client.acc.config.util.XML.parseBoolean"
print="java.lang.Boolean.toString"/>
<conversion name="int" type="int"
parse="javax.xml.bind.DatatypeConverter.parseInt"
print="javax.xml.bind.DatatypeConverter.printInt"/>
<conversion name="providerType" type="java.lang.String"
parse="org.glassfish.appclient.client.acc.config.util.XML.parseProviderType" />
<conversion name="password" type="org.glassfish.appclient.client.acc.config.util.XML.Password"
parse="org.glassfish.appclient.client.acc.config.util.XML.Password.parse"
print="org.glassfish.appclient.client.acc.config.util.XML.Password.print" />
<element name="client-container" type="class" root="true">
<attribute name="send-password" property="SendPassword" convert="boolean"/>
</element>
<element name="ssl" type="class">
<attribute name="ssl2-enabled" property="Ssl2Enabled" convert="boolean"/>
<attribute name="ssl3-enabled" property="Ssl3Enabled" convert="boolean"/>
<attribute name="tls-enabled" property="TlsEnabled" convert="boolean"/>
<attribute name="tls-rollback-enabled" property="TlsRollbackEnabled" convert="boolean"/>
</element>
<!--
Add a constructor for the generated class which accepts the host (address) and
port for the target server.
-->
<element name="target-server" type="class">
<attribute name="port" property="Port" convert="int"/>
<constructor properties="address port"/>
</element>
<element name="auth-realm" type="class">
<constructor properties="classname"/>
</element>
<element name="provider-config" type="class">
<attribute name="provider-type" property="ProviderType" convert="providerType"/>
<!--
The next two lines are commented because each, separately, causes
the JAXB code gen to fail. So instead of using the enumerator we
use the providerType converter (as specified just above).
-->
<!-- <enumeration name="provider-type" members="client server client-server"/> -->
<!-- <constructor properties="provider-id provider-type class-name"/> -->
</element>
<element name="client-credential" type="class">
<constructor properties="userName password realm"/>
<attribute name="password" property="Password" convert="password"/>
</element>
<!--
<element name="request-policy" type="class">
<constructor properties="auth-source auth-recipient"/>
</element>
<element name="response-policy" type="class">
<constructor properties="auth-source auth-recipient"/>
</element>
<element name="message-security-config" type="class">
<constructor properties="auth-layer default-provider default-client-provider"/>
</element>
-->
</xml-java-binding-schema>
<!--
The following custom bindings would apply to the XSD if there were one.
-->
<!--
<bindings
xmlns="http://java.sun.com/xml/ns/jaxb" version="2.1"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<bindings
schemaLocation="sun-application-client-container_1_2.xsd"
node="/xs:schema/xs:element[@name='client-container']">
<javaType
xmlType="BOOLEAN"
javaType="boolean"
parseMethod="org.glassfish.appclient.client.acc.XML.parseBoolean"
printMethod="javax.xml.bind.DatatypeConverter.printBoolean"
/>
</bindings>
</bindings>
-->