001: /*
002: * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004: *
005: * This code is free software; you can redistribute it and/or modify it
006: * under the terms of the GNU General Public License version 2 only, as
007: * published by the Free Software Foundation. Sun designates this
008: * particular file as subject to the "Classpath" exception as provided
009: * by Sun in the LICENSE file that accompanied this code.
010: *
011: * This code is distributed in the hope that it will be useful, but WITHOUT
012: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
014: * version 2 for more details (a copy is included in the LICENSE file that
015: * accompanied this code).
016: *
017: * You should have received a copy of the GNU General Public License version
018: * 2 along with this work; if not, write to the Free Software Foundation,
019: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020: *
021: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022: * CA 95054 USA or visit www.sun.com if you need additional information or
023: * have any questions.
024: */
025: package com.sun.tools.internal.ws.wsdl.parser;
026:
027: import javax.xml.namespace.QName;
028:
029: import com.sun.tools.internal.ws.wsdl.document.soap.SOAP12Constants;
030: import com.sun.tools.internal.ws.wsdl.document.soap.SOAPBinding;
031: import com.sun.tools.internal.ws.wsdl.document.soap.SOAP12Binding;
032:
033: public class SOAP12ExtensionHandler extends SOAPExtensionHandler {
034:
035: /*
036: * @see SOAPExtensionHandler#getNamespaceURI()
037: */
038: @Override
039: public String getNamespaceURI() {
040: return Constants.NS_WSDL_SOAP12;
041: }
042:
043: /*
044: * @see SOAPExtensionHandler#getAddressQName()
045: */
046: @Override
047: protected QName getAddressQName() {
048: return SOAP12Constants.QNAME_ADDRESS;
049: }
050:
051: /*
052: * @see SOAPExtensionHandler#getBindingQName()
053: */
054: @Override
055: protected QName getBindingQName() {
056: return SOAP12Constants.QNAME_BINDING;
057: }
058:
059: @Override
060: protected SOAPBinding getSOAPBinding() {
061: return new SOAP12Binding();
062: }
063:
064: /*
065: * @see SOAPExtensionHandler#getBodyQName()
066: */
067: @Override
068: protected QName getBodyQName() {
069: return SOAP12Constants.QNAME_BODY;
070: }
071:
072: /*
073: * @see SOAPExtensionHandler#getFaultQName()
074: */
075: @Override
076: protected QName getFaultQName() {
077: return SOAP12Constants.QNAME_FAULT;
078: }
079:
080: /*
081: * @see SOAPExtensionHandler#getHeaderfaultQName()
082: */
083: @Override
084: protected QName getHeaderfaultQName() {
085: return SOAP12Constants.QNAME_HEADERFAULT;
086: }
087:
088: /*
089: * @see SOAPExtensionHandler#getHeaderQName()
090: */
091: @Override
092: protected QName getHeaderQName() {
093: return SOAP12Constants.QNAME_HEADER;
094: }
095:
096: /*
097: * @see SOAPExtensionHandler#getOperationQName()
098: */
099: @Override
100: protected QName getOperationQName() {
101: return SOAP12Constants.QNAME_OPERATION;
102: }
103: }
|