001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements. See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership. The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License. You may obtain a copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied. See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 */
019
020 package javax.xml.ws.soap;
021
022 import javax.xml.soap.MessageFactory;
023 import javax.xml.soap.SOAPFactory;
024 import javax.xml.ws.Binding;
025 import java.util.Set;
026
027 public interface SOAPBinding
028 extends Binding {
029
030 public abstract Set<java.lang.String> getRoles();
031
032 public abstract void setRoles(Set<java.lang.String> set);
033
034 public abstract boolean isMTOMEnabled();
035
036 public abstract void setMTOMEnabled(boolean flag);
037
038 public abstract SOAPFactory getSOAPFactory();
039
040 public abstract MessageFactory getMessageFactory();
041
042 public static final String SOAP11HTTP_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/http";
043 public static final String SOAP12HTTP_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/";
044 public static final String SOAP11HTTP_MTOM_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true";
045 public static final String SOAP12HTTP_MTOM_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true";
046 }