src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/parser/SOAP12ExtensionHandler.java

Thu, 31 Aug 2017 15:18:52 +0800

author
aoqi
date
Thu, 31 Aug 2017 15:18:52 +0800
changeset 637
9c07ef4934dd
parent 368
0989ad8c0860
parent 0
373ffda63c9a
permissions
-rw-r--r--

merge

     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     8  * particular file as subject to the "Classpath" exception as provided
     9  * by Oracle in the LICENSE file that accompanied this code.
    10  *
    11  * This code is distributed in the hope that it will be useful, but WITHOUT
    12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    14  * version 2 for more details (a copy is included in the LICENSE file that
    15  * accompanied this code).
    16  *
    17  * You should have received a copy of the GNU General Public License version
    18  * 2 along with this work; if not, write to the Free Software Foundation,
    19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    20  *
    21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    22  * or visit www.oracle.com if you need additional information or have any
    23  * questions.
    24  */
    26 package com.sun.tools.internal.ws.wsdl.parser;
    28 import com.sun.tools.internal.ws.wsdl.document.soap.SOAP12Binding;
    29 import com.sun.tools.internal.ws.wsdl.document.soap.SOAP12Constants;
    30 import com.sun.tools.internal.ws.wsdl.document.soap.SOAPBinding;
    31 import org.xml.sax.Locator;
    33 import javax.xml.namespace.QName;
    34 import java.util.Map;
    37 public class SOAP12ExtensionHandler extends SOAPExtensionHandler {
    38     public SOAP12ExtensionHandler(Map<String, AbstractExtensionHandler> extensionHandlerMap) {
    39         super(extensionHandlerMap);
    40     }
    42     /*
    43      * @see SOAPExtensionHandler#getNamespaceURI()
    44      */
    45     @Override
    46     public String getNamespaceURI() {
    47         return Constants.NS_WSDL_SOAP12;
    48     }
    50     /*
    51      * @see SOAPExtensionHandler#getAddressQName()
    52      */
    53     @Override
    54     protected QName getAddressQName() {
    55         return SOAP12Constants.QNAME_ADDRESS;
    56     }
    58     /*
    59      * @see SOAPExtensionHandler#getBindingQName()
    60      */
    61     @Override
    62     protected QName getBindingQName() {
    63         return SOAP12Constants.QNAME_BINDING;
    64     }
    66     @Override protected SOAPBinding getSOAPBinding(Locator location) {
    67         return new SOAP12Binding(location);
    68     }
    70     /*
    71      * @see SOAPExtensionHandler#getBodyQName()
    72      */
    73     @Override
    74     protected QName getBodyQName() {
    75         return SOAP12Constants.QNAME_BODY;
    76     }
    78     /*
    79      * @see SOAPExtensionHandler#getFaultQName()
    80      */
    81     @Override
    82     protected QName getFaultQName() {
    83         return SOAP12Constants.QNAME_FAULT;
    84     }
    86     /*
    87      * @see SOAPExtensionHandler#getHeaderfaultQName()
    88      */
    89     @Override
    90     protected QName getHeaderfaultQName() {
    91         return SOAP12Constants.QNAME_HEADERFAULT;
    92     }
    94     /*
    95      * @see SOAPExtensionHandler#getHeaderQName()
    96      */
    97     @Override
    98     protected QName getHeaderQName() {
    99         return SOAP12Constants.QNAME_HEADER;
   100     }
   102     /*
   103      * @see SOAPExtensionHandler#getOperationQName()
   104      */
   105     @Override
   106     protected QName getOperationQName() {
   107         return SOAP12Constants.QNAME_OPERATION;
   108     }
   109 }

mercurial