1 17 package org.apache.servicemix.common.wsdl1; 18 19 import javax.wsdl.extensions.ExtensionRegistry; 20 import javax.xml.namespace.QName ; 21 22 public class JbiExtension { 23 24 public static final String NS_URI_JBI = "http://servicemix.org/wsdl/jbi/"; 25 26 public static final String ELEM_ENDPOINT = "endpoint"; 27 28 public static final QName Q_ELEM_JBI_ENDPOINT = new QName (NS_URI_JBI, ELEM_ENDPOINT); 29 30 public static final String ROLE = "role"; 31 public static final String ROLE_CONSUMER = "consumer"; 32 public static final String ROLE_PROVIDER = "provider"; 33 34 public static final String DEFAULT_MEP = "defaultMep"; 35 public static final String DEFAULT_MEP_IN_ONLY = "in-only"; 36 public static final String DEFAULT_MEP_ROBUST_IN_ONLY = "robust-in-only"; 37 public static final String DEFAULT_MEP_IN_OUT = "in-out"; 38 39 public static final String DEFAULT_OPERATION = "defaultOperation"; 40 41 public static final String WSDL2_NS = "http://www.w3.org/2004/08/wsdl/"; 42 43 public static void register(ExtensionRegistry registry) { 44 registry.registerDeserializer( 45 javax.wsdl.Port.class, 46 Q_ELEM_JBI_ENDPOINT, 47 new JbiEndpointDeserializer()); 48 registry.registerSerializer( 49 javax.wsdl.Port.class, 50 Q_ELEM_JBI_ENDPOINT, 51 new JbiEndpointSerializer()); 52 registry.mapExtensionTypes( 53 javax.wsdl.Port.class, 54 Q_ELEM_JBI_ENDPOINT, 55 JbiEndpoint.class); 56 } 57 58 } 59 | Popular Tags |