001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one or more
003     * contributor license agreements.  See the NOTICE file distributed with
004     * this work for additional information regarding copyright ownership.
005     * The ASF licenses this file to You under the Apache License, Version 2.0
006     * (the "License"); you may not use this file except in compliance with
007     * the License.  You may obtain a copy of the License at
008     *
009     *      http://www.apache.org/licenses/LICENSE-2.0
010     *
011     * Unless required by applicable law or agreed to in writing, software
012     * distributed under the License is distributed on an "AS IS" BASIS,
013     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     * See the License for the specific language governing permissions and
015     * limitations under the License.
016     */
017    package org.apache.servicemix.soap.interceptors.jbi;
018    
019    import java.net.URI;
020    
021    import javax.xml.namespace.QName;
022    
023    /**
024     * @author <a href="mailto:gnodet [at] gmail.com">Guillaume Nodet</a>
025     */
026    public interface JbiConstants {
027    
028        public static final String SOAP_FAULT_CODE = "org.apache.servicemix.soap.fault.code";
029        public static final String SOAP_FAULT_SUBCODE = "org.apache.servicemix.soap.fault.subcode";
030        public static final String SOAP_FAULT_REASON = "org.apache.servicemix.soap.fault.reason";
031        public static final String SOAP_FAULT_NODE = "org.apache.servicemix.soap.fault.node";
032        public static final String SOAP_FAULT_ROLE = "org.apache.servicemix.soap.fault.role";
033        
034        public static final URI IN_ONLY = URI.create("http://www.w3.org/2004/08/wsdl/in-only");
035        public static final URI IN_OUT = URI.create("http://www.w3.org/2004/08/wsdl/in-out");
036        public static final URI IN_OPTIONAL_OUT = URI.create("http://www.w3.org/2004/08/wsdl/in-opt-out");
037        public static final URI ROBUST_IN_ONLY = URI.create("http://www.w3.org/2004/08/wsdl/robust-in-only");
038        
039        public static final String PROTOCOL_HEADERS = "javax.jbi.messaging.protocol.headers";
040    
041        public static final String USE_JBI_WRAPPER = "useJbiWrapper";
042        
043        public static final String WSDL11_WRAPPER_NAMESPACE = "http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper";
044        public static final String WSDL11_WRAPPER_PREFIX = "jbi";
045        public static final String WSDL11_WRAPPER_MESSAGE_LOCALNAME = "message";
046        public static final QName WSDL11_WRAPPER_MESSAGE = new QName(WSDL11_WRAPPER_NAMESPACE, WSDL11_WRAPPER_MESSAGE_LOCALNAME, WSDL11_WRAPPER_PREFIX);
047        public static final String WSDL11_WRAPPER_MESSAGE_PREFIX = "msg";
048        public static final String WSDL11_WRAPPER_TYPE = "type";
049        public static final String WSDL11_WRAPPER_NAME = "name";
050        public static final String WSDL11_WRAPPER_VERSION = "version";
051        public static final String WSDL11_WRAPPER_PART_LOCALNAME = "part";
052        public static final QName WSDL11_WRAPPER_PART = new QName(WSDL11_WRAPPER_NAMESPACE, WSDL11_WRAPPER_PART_LOCALNAME, WSDL11_WRAPPER_PREFIX);
053    
054    }