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.common;
018    
019    import java.net.URI;
020    
021    public interface JbiConstants {
022    
023        String SEND_SYNC = "javax.jbi.messaging.sendSync";
024    
025        String PROTOCOL_TYPE = "javax.jbi.messaging.protocol.type";
026    
027        String PROTOCOL_HEADERS = "javax.jbi.messaging.protocol.headers";
028    
029        String SECURITY_SUBJECT = "javax.jbi.security.subject";
030    
031        String SOAP_HEADERS = "org.apache.servicemix.soap.headers";
032    
033        String PERSISTENT_PROPERTY_NAME = "org.apache.servicemix.persistent";
034    
035        String DATESTAMP_PROPERTY_NAME = "org.apache.servicemix.datestamp";
036    
037        String FLOW_PROPERTY_NAME = "org.apache.servicemix.flow";
038    
039        String STATELESS_CONSUMER = "org.apache.servicemix.consumer.stateless";
040    
041        String STATELESS_PROVIDER = "org.apache.servicemix.provider.stateless";
042    
043        String SENDER_ENDPOINT = "org.apache.servicemix.senderEndpoint";
044    
045        String HTTP_DESTINATION_URI = "org.apache.servicemix.http.destination.uri";
046    
047        /**
048         * This property should be set when a consumer endpoint creates an exchange
049         * related to another provider exchange. The value of the property should be
050         * set to the value of this property in the provider exchange, or to the id
051         * of the provider exchange if the property does not exist.
052         */
053        String CORRELATION_ID = "org.apache.servicemix.correlationId";
054    
055        /**
056         * In Only MEP.
057         */
058        URI IN_ONLY = URI.create("http://www.w3.org/2004/08/wsdl/in-only");
059        /**
060         * In Out MEP.
061         */
062        URI IN_OUT = URI.create("http://www.w3.org/2004/08/wsdl/in-out");
063    
064        /**
065         * In Optional Out MEP.
066         */
067        URI IN_OPTIONAL_OUT = URI.create("http://www.w3.org/2004/08/wsdl/in-opt-out");
068    
069        /**
070         * Robust In Only MEP.
071         */
072        URI ROBUST_IN_ONLY = URI.create("http://www.w3.org/2004/08/wsdl/robust-in-only");
073    
074    }