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