KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > component > common > wsdl > JbiExtension


1 /*
2  * Copyright 2005-2006 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.objectweb.petals.component.common.wsdl;
17
18 import javax.wsdl.extensions.ExtensionRegistry;
19 import javax.xml.namespace.QName JavaDoc;
20
21 public class JbiExtension {
22
23     public static final String JavaDoc NS_URI_JBI = "http://servicemix.org/wsdl/jbi/";
24
25     public static final String JavaDoc ELEM_ENDPOINT = "endpoint";
26     
27     public static final QName JavaDoc Q_ELEM_JBI_ENDPOINT = new QName JavaDoc(NS_URI_JBI, ELEM_ENDPOINT);
28
29     public static final String JavaDoc ROLE = "role";
30     public static final String JavaDoc ROLE_CONSUMER = "consumer";
31     public static final String JavaDoc ROLE_PROVIDER = "provider";
32     
33     public static final String JavaDoc DEFAULT_MEP = "defaultMep";
34     public static final String JavaDoc DEFAULT_MEP_IN_ONLY = "in-only";
35     public static final String JavaDoc DEFAULT_MEP_ROBUST_IN_ONLY = "robust-in-only";
36     public static final String JavaDoc DEFAULT_MEP_IN_OUT = "in-out";
37     
38     public static final String JavaDoc DEFAULT_OPERATION = "defaultOperation";
39     
40     public static final String JavaDoc 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