8010393: Update JAX-WS RI to 2.2.9-b12941
Co-authored-by: Martin Grebac <martin.grebac@oracle.com> Reviewed-by: alanb, erikj
This commit is contained in:
parent
7f1db5eedb
commit
91a27900ed
@ -55,7 +55,8 @@ $(eval $(call SetupJavaCompilation,BUILD_JAXWS,\
|
||||
BIN:=$(JAXWS_OUTPUTDIR)/jaxws_classes,\
|
||||
COPY:=.xsd,\
|
||||
COPY_FILES:=$(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/internal/xjc/runtime/JAXBContextFactory.java \
|
||||
$(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/internal/xjc/runtime/ZeroOneBooleanAdapter.java,\
|
||||
$(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/tools/internal/xjc/runtime/ZeroOneBooleanAdapter.java \
|
||||
$(JAXWS_TOPDIR)/src/share/jaxws_classes/com/sun/xml/internal/ws/assembler/jaxws-tubes-default.xml,\
|
||||
ADD_JAVAC_FLAGS=-cp $(OUTPUT_ROOT)/jaxp/dist/lib/classes.jar))
|
||||
|
||||
$(JAXWS_OUTPUTDIR)/jaxws_classes/META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin: \
|
||||
@ -98,7 +99,7 @@ TARGET_PROP_FILES += $(patsubst $(JAXWS_TOPDIR)/src/share/jaf_classes/%,\
|
||||
|
||||
$(eval $(call SetupArchive,ARCHIVE_JAXWS,$(BUILD_JAXWS) $(BUILD_JAF) $(TARGET_PROP_FILES),\
|
||||
SRCS:=$(JAXWS_OUTPUTDIR)/jaxws_classes $(JAXWS_OUTPUTDIR)/jaf_classes,\
|
||||
SUFFIXES:=.class .properties .xsd .java \
|
||||
SUFFIXES:=.class .properties .xsd .xml .java \
|
||||
com.sun.mirror.apt.AnnotationProcessorFactory \
|
||||
com.sun.tools.internal.xjc.Plugin,\
|
||||
JAR:=$(JAXWS_OUTPUTDIR)/dist/lib/classes.jar))
|
||||
|
@ -1,29 +1,44 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
* Copyright (c) 1997-2013 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.sun.xml.internal.org.jvnet.ws;
|
||||
package com.oracle.webservices.internal.api;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
@ -47,7 +62,7 @@ import javax.xml.ws.spi.WebServiceFeatureAnnotation;
|
||||
*
|
||||
* @author shih-chang.chen@oracle.com
|
||||
*/
|
||||
@WebServiceFeatureAnnotation(id="", bean=com.sun.xml.internal.org.jvnet.ws.EnvelopeStyleFeature.class)
|
||||
@WebServiceFeatureAnnotation(id="", bean=com.oracle.webservices.internal.api.EnvelopeStyleFeature.class)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface EnvelopeStyle {
|
||||
|
||||
@ -70,7 +85,7 @@ public @interface EnvelopeStyle {
|
||||
* SOAP1.2. For JAX-WS, this is mapped from:
|
||||
* javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING
|
||||
*/
|
||||
SOAP12(SOAPBinding.SOAP11HTTP_BINDING),
|
||||
SOAP12(SOAPBinding.SOAP12HTTP_BINDING),
|
||||
|
||||
/**
|
||||
* The raw XML. For JAX-WS, this is mapped from:
|
@ -0,0 +1,60 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.api;
|
||||
|
||||
import javax.xml.ws.WebServiceFeature;
|
||||
|
||||
public class EnvelopeStyleFeature extends WebServiceFeature {
|
||||
|
||||
private EnvelopeStyle.Style[] styles;
|
||||
|
||||
public EnvelopeStyleFeature(EnvelopeStyle.Style... s) {
|
||||
styles = s;
|
||||
}
|
||||
|
||||
public EnvelopeStyle.Style[] getStyles() {
|
||||
return styles;
|
||||
}
|
||||
|
||||
public String getID() {
|
||||
return EnvelopeStyleFeature.class.getName();
|
||||
}
|
||||
}
|
@ -1,43 +1,56 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
* Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.sun.xml.internal.org.jvnet.ws.databinding;
|
||||
package com.oracle.webservices.internal.api.databinding;
|
||||
|
||||
import java.io.File;
|
||||
import java.lang.reflect.Method;
|
||||
import java.net.URL;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.transform.Result;
|
||||
import javax.xml.transform.Source;
|
||||
import javax.xml.ws.Holder;
|
||||
import javax.xml.ws.WebServiceFeature;
|
||||
|
||||
import com.sun.xml.internal.org.jvnet.ws.message.MessageContext;
|
||||
import org.xml.sax.EntityResolver;
|
||||
|
||||
import com.oracle.webservices.internal.api.message.MessageContext;
|
||||
|
||||
/**
|
||||
* {@code Databinding} is the entry point for all the WebService Databinding
|
||||
* functionality. Primarily, a Databinding is to serialize/deserialize an
|
||||
@ -64,7 +77,7 @@ import org.xml.sax.EntityResolver;
|
||||
*
|
||||
* </blockquote>
|
||||
*
|
||||
* @see com.sun.xml.internal.org.jvnet.ws.databinding.DatabindingFactory
|
||||
* @see com.oracle.webservices.internal.api.databinding.DatabindingFactory
|
||||
*
|
||||
* @author shih-chang.chen@oracle.com
|
||||
*/
|
||||
@ -94,7 +107,7 @@ public interface Databinding {
|
||||
* Deserializes a response XML(SOAP) message to a JavaCallInfo instance
|
||||
* representing the return value or exception of a JAVA method call.
|
||||
*
|
||||
* @param soap The response message
|
||||
* @param message The response message
|
||||
* @param call The JavaCallInfo instance to be updated
|
||||
*
|
||||
* @return The JavaCallInfo updated with the return value or exception of a
|
||||
@ -123,11 +136,19 @@ public interface Databinding {
|
||||
*/
|
||||
MessageContext serializeResponse(JavaCallInfo call);
|
||||
|
||||
/**
|
||||
* Gets the MessageContextFactory
|
||||
*
|
||||
* @return The MessageContextFactory
|
||||
*/
|
||||
//Wait for WLS/src1212 - wls.jaxrpc wrapper
|
||||
// MessageContextFactory getMessageContextFactory();
|
||||
|
||||
/**
|
||||
* {@code Databinding.Builder}, created from the DatabindingFactory, is used to
|
||||
* configure how a Databinding instance is to be built from this builder.
|
||||
*
|
||||
* @see com.sun.xml.internal.org.jvnet.ws.databinding.DatabindingFactory
|
||||
* @see com.oracle.webservices.internal.api.databinding.DatabindingFactory
|
||||
* @author shih-chang.chen@oracle.com
|
||||
*/
|
||||
public interface Builder {
|
||||
@ -160,6 +181,8 @@ public interface Databinding {
|
||||
Builder portName(QName portName);
|
||||
|
||||
/**
|
||||
* @deprecated - no replacement - this was never implemented
|
||||
*
|
||||
* Sets the WSDL URL where the WSDL can be read from
|
||||
*
|
||||
* @param wsdlURL The wsdlURL to set
|
||||
@ -169,6 +192,8 @@ public interface Databinding {
|
||||
Builder wsdlURL(URL wsdlURL);
|
||||
|
||||
/**
|
||||
* @deprecated - no replacement - this was never implemented
|
||||
*
|
||||
* Sets the WSDL Source where the WSDL can be read from
|
||||
*
|
||||
* @param wsdlSource The wsdlSource to set
|
||||
@ -178,9 +203,11 @@ public interface Databinding {
|
||||
Builder wsdlSource(Source wsdlSource);
|
||||
|
||||
/**
|
||||
* Sets the EntityResolver for reading the WSDL
|
||||
* @deprecated - no replacement - this was never implemented
|
||||
*
|
||||
* @param wsdlURL The wsdlURL to set
|
||||
* Sets the {@link EntityResolver} for reading the WSDL
|
||||
*
|
||||
* @param entityResolver The {@link EntityResolver} to set
|
||||
*
|
||||
* @return this Builder instance
|
||||
*/
|
||||
@ -230,95 +257,6 @@ public interface Databinding {
|
||||
*
|
||||
* @return WSDLGenerator The WSDLGenerator
|
||||
*/
|
||||
WSDLGenerator createWSDLGenerator();
|
||||
}
|
||||
|
||||
/**
|
||||
* WSDLGenerator is used to generate the WSDL representation of the service
|
||||
* endpoint interface of the parent Databinding object.
|
||||
*/
|
||||
public interface WSDLGenerator {
|
||||
|
||||
/**
|
||||
* Sets the inlineSchema boolean. When the inlineSchema is true, the
|
||||
* generated schema documents are embedded within the type element of
|
||||
* the generated WSDL. When the inlineSchema is false, the generated
|
||||
* schema documents are generated as standalone schema documents and
|
||||
* imported into the generated WSDL.
|
||||
*
|
||||
* @param inline the inlineSchema boolean.
|
||||
* @return
|
||||
*/
|
||||
WSDLGenerator inlineSchema(boolean inline);
|
||||
|
||||
/**
|
||||
* Sets A property of the WSDLGenerator
|
||||
*
|
||||
* @param name The name of the property
|
||||
* @param value The value of the property
|
||||
*
|
||||
* @return this WSDLGenerator instance
|
||||
*/
|
||||
WSDLGenerator property(String name, Object value);
|
||||
|
||||
/**
|
||||
* Generates the WSDL using the wsdlResolver to output the generated
|
||||
* documents.
|
||||
*
|
||||
* @param wsdlResolver The WSDLResolver
|
||||
*/
|
||||
void generate(WSDLResolver wsdlResolver);
|
||||
|
||||
/**
|
||||
* Generates the WSDL into the file directory
|
||||
*
|
||||
* @param outputDir The output file directory
|
||||
* @param name The file name of the main WSDL document
|
||||
*/
|
||||
void generate(File outputDir, String name);
|
||||
|
||||
/**
|
||||
* WSDLResolver is used by WSDLGenerator while generating WSDL and its associated
|
||||
* documents. It is used to control what documents need to be generated and what
|
||||
* documents need to be picked from metadata. If endpont's document metadata
|
||||
* already contains some documents, their systemids may be used for wsdl:import,
|
||||
* and schema:import. The suggested filenames are relative urls(for e.g: EchoSchema1.xsd)
|
||||
* The Result object systemids are also relative urls(for e.g: AbsWsdl.wsdl).
|
||||
*
|
||||
* @author Jitendra Kotamraju
|
||||
*/
|
||||
public interface WSDLResolver {
|
||||
/**
|
||||
* Create a Result object into which concrete WSDL is to be generated.
|
||||
*
|
||||
* @return Result for the concrete WSDL
|
||||
*/
|
||||
public Result getWSDL(String suggestedFilename);
|
||||
|
||||
/**
|
||||
* Create a Result object into which abstract WSDL is to be generated. If the the
|
||||
* abstract WSDL is already in metadata, it is not generated.
|
||||
*
|
||||
* Update filename if the suggested filename need to be changed in wsdl:import.
|
||||
* This needs to be done if the metadata contains abstract WSDL, and that systemid
|
||||
* needs to be reflected in concrete WSDL's wsdl:import
|
||||
*
|
||||
* @return null if abstract WSDL need not be generated
|
||||
*/
|
||||
public Result getAbstractWSDL(Holder<String> filename);
|
||||
|
||||
/**
|
||||
* Create a Result object into which schema doc is to be generated. Typically if
|
||||
* there is a schema doc for namespace in metadata, then it is not generated.
|
||||
*
|
||||
* Update filename if the suggested filename need to be changed in xsd:import. This
|
||||
* needs to be done if the metadata contains the document, and that systemid
|
||||
* needs to be reflected in some other document's xsd:import
|
||||
*
|
||||
* @return null if schema need not be generated
|
||||
*/
|
||||
public Result getSchemaOutput(String namespace, Holder<String> filename);
|
||||
|
||||
}
|
||||
com.oracle.webservices.internal.api.databinding.WSDLGenerator createWSDLGenerator();
|
||||
}
|
||||
}
|
@ -1,29 +1,44 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
* Copyright (c) 1997-2013 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.sun.xml.internal.org.jvnet.ws.databinding;
|
||||
package com.oracle.webservices.internal.api.databinding;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@ -44,7 +59,7 @@ import java.util.Map;
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* @see com.sun.xml.internal.org.jvnet.ws.databinding.Databinding
|
||||
* @see com.oracle.webservices.internal.api.databinding.Databinding
|
||||
*
|
||||
* @author shih-chang.chen@oracle.com
|
||||
*/
|
||||
@ -91,10 +106,15 @@ public abstract class DatabindingFactory {
|
||||
static public DatabindingFactory newInstance() {
|
||||
try {
|
||||
Class<?> cls = Class.forName(ImplClass);
|
||||
return (DatabindingFactory) cls.newInstance();
|
||||
return convertIfNecessary(cls);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private static DatabindingFactory convertIfNecessary(Class<?> cls) throws InstantiationException, IllegalAccessException {
|
||||
return (DatabindingFactory) cls.newInstance();
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.api.databinding;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
import javax.xml.ws.spi.WebServiceFeatureAnnotation;
|
||||
|
||||
@WebServiceFeatureAnnotation(id="", bean=com.oracle.webservices.internal.api.databinding.DatabindingModeFeature.class)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface DatabindingMode {
|
||||
String value();
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.api.databinding;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.xml.ws.WebServiceFeature;
|
||||
|
||||
public class DatabindingModeFeature extends WebServiceFeature {
|
||||
/**
|
||||
* Constant value identifying the DatabindingFeature
|
||||
*/
|
||||
static public final String ID = "http://jax-ws.java.net/features/databinding";
|
||||
|
||||
static public final String GLASSFISH_JAXB = "glassfish.jaxb";
|
||||
|
||||
//These constants should be defined in the corresponding plugin package
|
||||
// static public final String ECLIPSELINK_JAXB = "eclipselink.jaxb";
|
||||
// static public final String ECLIPSELINK_SDO = "eclipselink.sdo";
|
||||
// static public final String TOPLINK_JAXB = "toplink.jaxb";
|
||||
// static public final String TOPLINK_SDO = "toplink.sdo";
|
||||
|
||||
private String mode;
|
||||
private Map<String, Object> properties;
|
||||
|
||||
public DatabindingModeFeature(String mode) {
|
||||
super();
|
||||
this.mode = mode;
|
||||
properties = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public String getMode() {
|
||||
return mode;
|
||||
}
|
||||
|
||||
public String getID() {
|
||||
return ID;
|
||||
}
|
||||
|
||||
public Map<String, Object> getProperties() {
|
||||
return properties;
|
||||
}
|
||||
|
||||
public static Builder builder() { return new Builder(new DatabindingModeFeature(null)); }
|
||||
|
||||
public final static class Builder {
|
||||
final private DatabindingModeFeature o;
|
||||
Builder(final DatabindingModeFeature x) { o = x; }
|
||||
public DatabindingModeFeature build() { return o; }
|
||||
// public DatabindingModeFeature build() { return (DatabindingModeFeature) FeatureValidator.validate(o); }
|
||||
public Builder value(final String x) { o.mode = x; return this; }
|
||||
}
|
||||
}
|
@ -0,0 +1,172 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 1997-2013 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.api.databinding;
|
||||
|
||||
import com.sun.xml.internal.ws.api.databinding.MetadataReader;
|
||||
import com.sun.xml.internal.ws.model.ExternalMetadataReader;
|
||||
|
||||
import javax.xml.ws.WebServiceFeature;
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* WebServiceFeature allowing to define either on server or client side external xml descriptors replacing/supplementing
|
||||
* WS metadata provided by class annotations. This can be useful if those annotations are missing (existing non-WS
|
||||
* components) or if it is necessary to override those.
|
||||
*
|
||||
* @author Miroslav Kos (miroslav.kos at oracle.com)
|
||||
*/
|
||||
public class ExternalMetadataFeature extends WebServiceFeature {
|
||||
|
||||
private static final String ID = "com.oracle.webservices.internal.api.databinding.ExternalMetadataFeature";
|
||||
|
||||
/**
|
||||
* Enable this feature. Defaults to true.
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
|
||||
private List<String> resourceNames;
|
||||
private List<File> files;
|
||||
|
||||
private ExternalMetadataFeature() {
|
||||
}
|
||||
|
||||
public void addResources(String... resourceNames) {
|
||||
if (this.resourceNames == null) {
|
||||
this.resourceNames = new ArrayList<String>();
|
||||
}
|
||||
Collections.addAll(this.resourceNames, resourceNames);
|
||||
}
|
||||
|
||||
public List<String> getResourceNames() { return resourceNames; }
|
||||
|
||||
public void addFiles(File... files) {
|
||||
if (this.files == null) {
|
||||
this.files = new ArrayList<File>();
|
||||
}
|
||||
Collections.addAll(this.files, files);
|
||||
}
|
||||
|
||||
public List<File> getFiles() { return files; }
|
||||
|
||||
public boolean isEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
private void setEnabled(final boolean x) {
|
||||
enabled = x;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getID() {
|
||||
return ID;
|
||||
}
|
||||
|
||||
public MetadataReader getMetadataReader(ClassLoader classLoader, boolean disableSecureXmlProcessing) {
|
||||
return enabled ? new ExternalMetadataReader(files, resourceNames, classLoader, true, disableSecureXmlProcessing) : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
ExternalMetadataFeature that = (ExternalMetadataFeature) o;
|
||||
|
||||
if (enabled != that.enabled) return false;
|
||||
if (files != null ? !files.equals(that.files) : that.files != null) return false;
|
||||
if (resourceNames != null ? !resourceNames.equals(that.resourceNames) : that.resourceNames != null)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = (enabled ? 1 : 0);
|
||||
result = 31 * result + (resourceNames != null ? resourceNames.hashCode() : 0);
|
||||
result = 31 * result + (files != null ? files.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "[" + getID() +
|
||||
", enabled=" + enabled +
|
||||
", resourceNames=" + resourceNames +
|
||||
", files=" + files +
|
||||
']';
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder(new ExternalMetadataFeature());
|
||||
}
|
||||
|
||||
public final static class Builder {
|
||||
final private ExternalMetadataFeature o;
|
||||
|
||||
Builder(final ExternalMetadataFeature x) {
|
||||
o = x;
|
||||
}
|
||||
|
||||
public ExternalMetadataFeature build() {
|
||||
return o;
|
||||
}
|
||||
|
||||
public Builder addResources(String... res) {
|
||||
o.addResources(res);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder addFiles(File... files) {
|
||||
o.addFiles(files);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setEnabled(boolean enabled) {
|
||||
o.setEnabled(enabled);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -1,29 +1,44 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
* Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.sun.xml.internal.org.jvnet.ws.databinding;
|
||||
package com.oracle.webservices.internal.api.databinding;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
@ -0,0 +1,88 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.api.databinding;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* WSDLGenerator is used to generate the WSDL representation of the service
|
||||
* endpoint interface of the parent Databinding object.
|
||||
*/
|
||||
public interface WSDLGenerator {
|
||||
|
||||
/**
|
||||
* Sets the inlineSchema boolean. When the inlineSchema is true, the
|
||||
* generated schema documents are embedded within the type element of
|
||||
* the generated WSDL. When the inlineSchema is false, the generated
|
||||
* schema documents are generated as standalone schema documents and
|
||||
* imported into the generated WSDL.
|
||||
*
|
||||
* @param inline the inlineSchema boolean.
|
||||
* @return
|
||||
*/
|
||||
WSDLGenerator inlineSchema(boolean inline);
|
||||
|
||||
/**
|
||||
* Sets A property of the WSDLGenerator
|
||||
*
|
||||
* @param name The name of the property
|
||||
* @param value The value of the property
|
||||
*
|
||||
* @return this WSDLGenerator instance
|
||||
*/
|
||||
WSDLGenerator property(String name, Object value);
|
||||
|
||||
/**
|
||||
* Generates the WSDL using the wsdlResolver to output the generated
|
||||
* documents.
|
||||
*
|
||||
* @param wsdlResolver The WSDLResolver
|
||||
*/
|
||||
void generate(com.oracle.webservices.internal.api.databinding.WSDLResolver wsdlResolver);
|
||||
|
||||
/**
|
||||
* Generates the WSDL into the file directory
|
||||
*
|
||||
* @param outputDir The output file directory
|
||||
* @param name The file name of the main WSDL document
|
||||
*/
|
||||
void generate(File outputDir, String name);
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.api.databinding;
|
||||
|
||||
import javax.xml.transform.Result;
|
||||
import javax.xml.ws.Holder;
|
||||
|
||||
/**
|
||||
* WSDLResolver is used by WSDLGenerator while generating WSDL and its associated
|
||||
* documents. It is used to control what documents need to be generated and what
|
||||
* documents need to be picked from metadata. If endpont's document metadata
|
||||
* already contains some documents, their systemids may be used for wsdl:import,
|
||||
* and schema:import. The suggested filenames are relative urls(for e.g: EchoSchema1.xsd)
|
||||
* The Result object systemids are also relative urls(for e.g: AbsWsdl.wsdl).
|
||||
*
|
||||
* @author Jitendra Kotamraju
|
||||
*/
|
||||
public interface WSDLResolver {
|
||||
/**
|
||||
* Create a Result object into which concrete WSDL is to be generated.
|
||||
*
|
||||
* @return Result for the concrete WSDL
|
||||
*/
|
||||
public Result getWSDL(String suggestedFilename);
|
||||
|
||||
/**
|
||||
* Create a Result object into which abstract WSDL is to be generated. If the the
|
||||
* abstract WSDL is already in metadata, it is not generated.
|
||||
*
|
||||
* Update filename if the suggested filename need to be changed in wsdl:import.
|
||||
* This needs to be done if the metadata contains abstract WSDL, and that systemid
|
||||
* needs to be reflected in concrete WSDL's wsdl:import
|
||||
*
|
||||
* @return null if abstract WSDL need not be generated
|
||||
*/
|
||||
public Result getAbstractWSDL(Holder<String> filename);
|
||||
|
||||
/**
|
||||
* Create a Result object into which schema doc is to be generated. Typically if
|
||||
* there is a schema doc for namespace in metadata, then it is not generated.
|
||||
*
|
||||
* Update filename if the suggested filename need to be changed in xsd:import. This
|
||||
* needs to be done if the metadata contains the document, and that systemid
|
||||
* needs to be reflected in some other document's xsd:import
|
||||
*
|
||||
* @return null if schema need not be generated
|
||||
*/
|
||||
public Result getSchemaOutput(String namespace, Holder<String> filename);
|
||||
|
||||
}
|
@ -0,0 +1,323 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 1997-2013 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.api.message;
|
||||
|
||||
import com.sun.istack.internal.NotNull;
|
||||
import com.sun.istack.internal.Nullable;
|
||||
import com.sun.xml.internal.ws.api.message.Packet;
|
||||
import com.sun.xml.internal.ws.client.RequestContext;
|
||||
import com.sun.xml.internal.ws.client.ResponseContext;
|
||||
|
||||
import javax.xml.ws.WebServiceContext;
|
||||
|
||||
import java.util.AbstractMap;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.HashSet;
|
||||
import java.util.IdentityHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* {@link PropertySet} that combines properties exposed from multiple
|
||||
* {@link PropertySet}s into one.
|
||||
*
|
||||
* <p>
|
||||
* This implementation allows one {@link PropertySet} to assemble
|
||||
* all properties exposed from other "satellite" {@link PropertySet}s.
|
||||
* (A satellite may itself be a {@link DistributedPropertySet}, so
|
||||
* in general this can form a tree.)
|
||||
*
|
||||
* <p>
|
||||
* This is useful for JAX-WS because the properties we expose to the application
|
||||
* are contributed by different pieces, and therefore we'd like each of them
|
||||
* to have a separate {@link PropertySet} implementation that backs up
|
||||
* the properties. For example, this allows FastInfoset to expose its
|
||||
* set of properties to {@link RequestContext} by using a strongly-typed fields.
|
||||
*
|
||||
* <p>
|
||||
* This is also useful for a client-side transport to expose a bunch of properties
|
||||
* into {@link ResponseContext}. It simply needs to create a {@link PropertySet}
|
||||
* object with methods for each property it wants to expose, and then add that
|
||||
* {@link PropertySet} to {@link Packet}. This allows property values to be
|
||||
* lazily computed (when actually asked by users), thus improving the performance
|
||||
* of the typical case where property values are not asked.
|
||||
*
|
||||
* <p>
|
||||
* A similar benefit applies on the server-side, for a transport to expose
|
||||
* a bunch of properties to {@link WebServiceContext}.
|
||||
*
|
||||
* <p>
|
||||
* To achieve these benefits, access to {@link DistributedPropertySet} is slower
|
||||
* compared to {@link PropertySet} (such as get/set), while adding a satellite
|
||||
* object is relatively fast.
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public abstract class BaseDistributedPropertySet extends BasePropertySet implements DistributedPropertySet {
|
||||
|
||||
/**
|
||||
* All {@link PropertySet}s that are bundled into this {@link PropertySet}.
|
||||
*/
|
||||
private final Map<Class<? extends com.oracle.webservices.internal.api.message.PropertySet>, PropertySet> satellites
|
||||
= new IdentityHashMap<Class<? extends com.oracle.webservices.internal.api.message.PropertySet>, PropertySet>();
|
||||
|
||||
private final Map<String, Object> viewthis;
|
||||
|
||||
public BaseDistributedPropertySet() {
|
||||
this.viewthis = super.createView();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addSatellite(@NotNull PropertySet satellite) {
|
||||
addSatellite(satellite.getClass(), satellite);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addSatellite(@NotNull Class<? extends com.oracle.webservices.internal.api.message.PropertySet> keyClass, @NotNull PropertySet satellite) {
|
||||
satellites.put(keyClass, satellite);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeSatellite(PropertySet satellite) {
|
||||
satellites.remove(satellite.getClass());
|
||||
}
|
||||
|
||||
public void copySatelliteInto(@NotNull DistributedPropertySet r) {
|
||||
for (Map.Entry<Class<? extends com.oracle.webservices.internal.api.message.PropertySet>, PropertySet> entry : satellites.entrySet()) {
|
||||
r.addSatellite(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void copySatelliteInto(MessageContext r) {
|
||||
copySatelliteInto((DistributedPropertySet)r);
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable <T extends com.oracle.webservices.internal.api.message.PropertySet> T getSatellite(Class<T> satelliteClass) {
|
||||
T satellite = (T) satellites.get(satelliteClass);
|
||||
if (satellite != null) {
|
||||
return satellite;
|
||||
}
|
||||
|
||||
for (PropertySet child : satellites.values()) {
|
||||
if (satelliteClass.isInstance(child)) {
|
||||
return satelliteClass.cast(child);
|
||||
}
|
||||
|
||||
if (DistributedPropertySet.class.isInstance(child)) {
|
||||
satellite = DistributedPropertySet.class.cast(child).getSatellite(satelliteClass);
|
||||
if (satellite != null) {
|
||||
return satellite;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<Class<? extends com.oracle.webservices.internal.api.message.PropertySet>, com.oracle.webservices.internal.api.message.PropertySet> getSatellites() {
|
||||
return satellites;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object get(Object key) {
|
||||
// check satellites
|
||||
for (PropertySet child : satellites.values()) {
|
||||
if (child.supports(key)) {
|
||||
return child.get(key);
|
||||
}
|
||||
}
|
||||
|
||||
// otherwise it must be the master
|
||||
return super.get(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object put(String key, Object value) {
|
||||
// check satellites
|
||||
for (PropertySet child : satellites.values()) {
|
||||
if(child.supports(key)) {
|
||||
return child.put(key,value);
|
||||
}
|
||||
}
|
||||
|
||||
// otherwise it must be the master
|
||||
return super.put(key,value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean containsKey(Object key) {
|
||||
if (viewthis.containsKey(key))
|
||||
return true;
|
||||
for (PropertySet child : satellites.values()) {
|
||||
if (child.containsKey(key)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supports(Object key) {
|
||||
// check satellites
|
||||
for (PropertySet child : satellites.values()) {
|
||||
if (child.supports(key)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return super.supports(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object remove(Object key) {
|
||||
// check satellites
|
||||
for (PropertySet child : satellites.values()) {
|
||||
if (child.supports(key)) {
|
||||
return child.remove(key);
|
||||
}
|
||||
}
|
||||
|
||||
return super.remove(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void createEntrySet(Set<Entry<String, Object>> core) {
|
||||
super.createEntrySet(core);
|
||||
for (PropertySet child : satellites.values()) {
|
||||
((BasePropertySet) child).createEntrySet(core);
|
||||
}
|
||||
}
|
||||
|
||||
protected Map<String, Object> asMapLocal() {
|
||||
return viewthis;
|
||||
}
|
||||
|
||||
protected boolean supportsLocal(Object key) {
|
||||
return super.supports(key);
|
||||
}
|
||||
|
||||
class DistributedMapView extends AbstractMap<String, Object> {
|
||||
@Override
|
||||
public Object get(Object key) {
|
||||
for (PropertySet child : satellites.values()) {
|
||||
if (child.supports(key)) {
|
||||
return child.get(key);
|
||||
}
|
||||
}
|
||||
|
||||
return viewthis.get(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int size() {
|
||||
int size = viewthis.size();
|
||||
for (PropertySet child : satellites.values()) {
|
||||
size += child.asMap().size();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean containsKey(Object key) {
|
||||
if (viewthis.containsKey(key))
|
||||
return true;
|
||||
for (PropertySet child : satellites.values()) {
|
||||
if (child.containsKey(key))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<Entry<String, Object>> entrySet() {
|
||||
Set<Entry<String, Object>> entries = new HashSet<Entry<String, Object>>();
|
||||
for (PropertySet child : satellites.values()) {
|
||||
for (Entry<String,Object> entry : child.asMap().entrySet()) {
|
||||
// the code below is here to avoid entries.addAll(child.asMap().entrySet()); which works differently on JDK6/7
|
||||
// see DMI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS
|
||||
entries.add(new SimpleImmutableEntry<String, Object>(entry.getKey(), entry.getValue()));
|
||||
}
|
||||
}
|
||||
for (Entry<String,Object> entry : viewthis.entrySet()) {
|
||||
// the code below is here to avoid entries.addAll(child.asMap().entrySet()); which works differently on JDK6/7
|
||||
// see DMI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS
|
||||
entries.add(new SimpleImmutableEntry<String, Object>(entry.getKey(), entry.getValue()));
|
||||
}
|
||||
|
||||
return entries;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object put(String key, Object value) {
|
||||
for (PropertySet child : satellites.values()) {
|
||||
if (child.supports(key)) {
|
||||
return child.put(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
return viewthis.put(key, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clear() {
|
||||
satellites.clear();
|
||||
viewthis.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object remove(Object key) {
|
||||
for (PropertySet child : satellites.values()) {
|
||||
if (child.supports(key)) {
|
||||
return child.remove(key);
|
||||
}
|
||||
}
|
||||
|
||||
return viewthis.remove(key);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Map<String, Object> createView() {
|
||||
return new DistributedMapView();
|
||||
}
|
||||
}
|
@ -0,0 +1,563 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 1997-2013 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.api.message;
|
||||
|
||||
import com.sun.istack.internal.NotNull;
|
||||
import com.sun.istack.internal.Nullable;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.security.AccessController;
|
||||
import java.security.PrivilegedAction;
|
||||
import java.util.AbstractMap;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
/**
|
||||
* A set of "properties" that can be accessed via strongly-typed fields
|
||||
* as well as reflexibly through the property name.
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
@SuppressWarnings("SuspiciousMethodCalls")
|
||||
public abstract class BasePropertySet implements PropertySet {
|
||||
|
||||
/**
|
||||
* Creates a new instance of TypedMap.
|
||||
*/
|
||||
protected BasePropertySet() {
|
||||
}
|
||||
|
||||
private Map<String,Object> mapView;
|
||||
|
||||
/**
|
||||
* Represents the list of strongly-typed known properties
|
||||
* (keyed by property names.)
|
||||
*
|
||||
* <p>
|
||||
* Just giving it an alias to make the use of this class more fool-proof.
|
||||
*/
|
||||
protected static class PropertyMap extends HashMap<String,Accessor> {
|
||||
|
||||
// the entries are often being iterated through so performance can be improved
|
||||
// by their caching instead of iterating through the original (immutable) map each time
|
||||
transient PropertyMapEntry[] cachedEntries = null;
|
||||
|
||||
PropertyMapEntry[] getPropertyMapEntries() {
|
||||
if (cachedEntries == null) {
|
||||
cachedEntries = createPropertyMapEntries();
|
||||
}
|
||||
return cachedEntries;
|
||||
}
|
||||
|
||||
private PropertyMapEntry[] createPropertyMapEntries() {
|
||||
final PropertyMapEntry[] modelEntries = new PropertyMapEntry[size()];
|
||||
int i = 0;
|
||||
for (final Entry<String, Accessor> e : entrySet()) {
|
||||
modelEntries[i++] = new PropertyMapEntry(e.getKey(), e.getValue());
|
||||
}
|
||||
return modelEntries;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* PropertyMapEntry represents a Map.Entry in the PropertyMap with more efficient access.
|
||||
*/
|
||||
static public class PropertyMapEntry {
|
||||
public PropertyMapEntry(String k, Accessor v) {
|
||||
key = k; value = v;
|
||||
}
|
||||
String key;
|
||||
Accessor value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Map representing the Fields and Methods annotated with {@link PropertySet.Property}.
|
||||
* Model of {@link PropertySet} class.
|
||||
*
|
||||
* <p>
|
||||
* At the end of the derivation chain this method just needs to be implemented
|
||||
* as:
|
||||
*
|
||||
* <pre>
|
||||
* private static final PropertyMap model;
|
||||
* static {
|
||||
* model = parse(MyDerivedClass.class);
|
||||
* }
|
||||
* protected PropertyMap getPropertyMap() {
|
||||
* return model;
|
||||
* }
|
||||
* </pre>
|
||||
*/
|
||||
protected abstract PropertyMap getPropertyMap();
|
||||
|
||||
/**
|
||||
* This method parses a class for fields and methods with {@link PropertySet.Property}.
|
||||
*/
|
||||
protected static PropertyMap parse(final Class clazz) {
|
||||
// make all relevant fields and methods accessible.
|
||||
// this allows runtime to skip the security check, so they runs faster.
|
||||
return AccessController.doPrivileged(new PrivilegedAction<PropertyMap>() {
|
||||
@Override
|
||||
public PropertyMap run() {
|
||||
PropertyMap props = new PropertyMap();
|
||||
for (Class c=clazz; c!=null; c=c.getSuperclass()) {
|
||||
for (Field f : c.getDeclaredFields()) {
|
||||
Property cp = f.getAnnotation(Property.class);
|
||||
if(cp!=null) {
|
||||
for(String value : cp.value()) {
|
||||
props.put(value, new FieldAccessor(f, value));
|
||||
}
|
||||
}
|
||||
}
|
||||
for (Method m : c.getDeclaredMethods()) {
|
||||
Property cp = m.getAnnotation(Property.class);
|
||||
if(cp!=null) {
|
||||
String name = m.getName();
|
||||
assert name.startsWith("get") || name.startsWith("is");
|
||||
|
||||
String setName = name.startsWith("is") ? "set"+name.substring(2) : // isFoo -> setFoo
|
||||
's' +name.substring(1); // getFoo -> setFoo
|
||||
Method setter;
|
||||
try {
|
||||
setter = clazz.getMethod(setName,m.getReturnType());
|
||||
} catch (NoSuchMethodException e) {
|
||||
setter = null; // no setter
|
||||
}
|
||||
for(String value : cp.value()) {
|
||||
props.put(value, new MethodAccessor(m, setter, value));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return props;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a typed property defined on a {@link PropertySet}.
|
||||
*/
|
||||
protected interface Accessor {
|
||||
String getName();
|
||||
boolean hasValue(PropertySet props);
|
||||
Object get(PropertySet props);
|
||||
void set(PropertySet props, Object value);
|
||||
}
|
||||
|
||||
static final class FieldAccessor implements Accessor {
|
||||
/**
|
||||
* Field with the annotation.
|
||||
*/
|
||||
private final Field f;
|
||||
|
||||
/**
|
||||
* One of the values in {@link Property} annotation on {@link #f}.
|
||||
*/
|
||||
private final String name;
|
||||
|
||||
protected FieldAccessor(Field f, String name) {
|
||||
this.f = f;
|
||||
f.setAccessible(true);
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasValue(PropertySet props) {
|
||||
return get(props)!=null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object get(PropertySet props) {
|
||||
try {
|
||||
return f.get(props);
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(PropertySet props, Object value) {
|
||||
try {
|
||||
f.set(props,value);
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static final class MethodAccessor implements Accessor {
|
||||
/**
|
||||
* Getter method.
|
||||
*/
|
||||
private final @NotNull Method getter;
|
||||
/**
|
||||
* Setter method.
|
||||
* Some property is read-only.
|
||||
*/
|
||||
private final @Nullable Method setter;
|
||||
|
||||
/**
|
||||
* One of the values in {@link Property} annotation on {@link #getter}.
|
||||
*/
|
||||
private final String name;
|
||||
|
||||
protected MethodAccessor(Method getter, Method setter, String value) {
|
||||
this.getter = getter;
|
||||
this.setter = setter;
|
||||
this.name = value;
|
||||
getter.setAccessible(true);
|
||||
if (setter!=null) {
|
||||
setter.setAccessible(true);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasValue(PropertySet props) {
|
||||
return get(props)!=null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object get(PropertySet props) {
|
||||
try {
|
||||
return getter.invoke(props);
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new AssertionError();
|
||||
} catch (InvocationTargetException e) {
|
||||
handle(e);
|
||||
return 0; // never reach here
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(PropertySet props, Object value) {
|
||||
if(setter==null) {
|
||||
throw new ReadOnlyPropertyException(getName());
|
||||
}
|
||||
try {
|
||||
setter.invoke(props,value);
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new AssertionError();
|
||||
} catch (InvocationTargetException e) {
|
||||
handle(e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Since we don't expect the getter/setter to throw a checked exception,
|
||||
* it should be possible to make the exception propagation transparent.
|
||||
* That's what we are trying to do here.
|
||||
*/
|
||||
private Exception handle(InvocationTargetException e) {
|
||||
Throwable t = e.getTargetException();
|
||||
if (t instanceof Error) {
|
||||
throw (Error)t;
|
||||
}
|
||||
if (t instanceof RuntimeException) {
|
||||
throw (RuntimeException)t;
|
||||
}
|
||||
throw new Error(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Class allowing to work with PropertySet object as with a Map; it doesn't only allow to read properties from
|
||||
* the map but also to modify the map in a way it is in sync with original strongly typed fields. It also allows
|
||||
* (if necessary) to store additional properties those can't be found in strongly typed fields.
|
||||
*
|
||||
* @see com.sun.xml.internal.ws.api.PropertySet#asMap() method
|
||||
*/
|
||||
final class MapView extends HashMap<String, Object> {
|
||||
|
||||
// flag if it should allow store also different properties
|
||||
// than the from strongly typed fields
|
||||
boolean extensible;
|
||||
|
||||
MapView(boolean extensible) {
|
||||
super(getPropertyMap().getPropertyMapEntries().length);
|
||||
this.extensible = extensible;
|
||||
initialize();
|
||||
}
|
||||
|
||||
public void initialize() {
|
||||
// iterate (cached) array instead of map to speed things up ...
|
||||
PropertyMapEntry[] entries = getPropertyMap().getPropertyMapEntries();
|
||||
for (PropertyMapEntry entry : entries) {
|
||||
super.put(entry.key, entry.value);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object get(Object key) {
|
||||
Object o = super.get(key);
|
||||
if (o instanceof Accessor) {
|
||||
return ((Accessor) o).get(BasePropertySet.this);
|
||||
} else {
|
||||
return o;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<Entry<String, Object>> entrySet() {
|
||||
Set<Entry<String, Object>> entries = new HashSet<Entry<String, Object>>();
|
||||
for (String key : keySet()) {
|
||||
entries.add(new SimpleImmutableEntry<String, Object>(key, get(key)));
|
||||
}
|
||||
return entries;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object put(String key, Object value) {
|
||||
|
||||
Object o = super.get(key);
|
||||
if (o != null && o instanceof Accessor) {
|
||||
|
||||
Object oldValue = ((Accessor) o).get(BasePropertySet.this);
|
||||
((Accessor) o).set(BasePropertySet.this, value);
|
||||
return oldValue;
|
||||
|
||||
} else {
|
||||
|
||||
if (extensible) {
|
||||
return super.put(key, value);
|
||||
} else {
|
||||
throw new IllegalStateException("Unknown property [" + key + "] for PropertySet [" +
|
||||
BasePropertySet.this.getClass().getName() + "]");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clear() {
|
||||
for (String key : keySet()) {
|
||||
remove(key);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object remove(Object key) {
|
||||
Object o;
|
||||
o = super.get(key);
|
||||
if (o instanceof Accessor) {
|
||||
((Accessor)o).set(BasePropertySet.this, null);
|
||||
}
|
||||
return super.remove(key);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean containsKey(Object key) {
|
||||
Accessor sp = getPropertyMap().get(key);
|
||||
if (sp != null) {
|
||||
return sp.get(this) != null;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name of the property.
|
||||
*
|
||||
* @param key
|
||||
* This field is typed as {@link Object} to follow the {@link Map#get(Object)}
|
||||
* convention, but if anything but {@link String} is passed, this method
|
||||
* just returns null.
|
||||
*/
|
||||
@Override
|
||||
public Object get(Object key) {
|
||||
Accessor sp = getPropertyMap().get(key);
|
||||
if (sp != null) {
|
||||
return sp.get(this);
|
||||
}
|
||||
throw new IllegalArgumentException("Undefined property "+key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a property.
|
||||
*
|
||||
* <h3>Implementation Note</h3>
|
||||
* This method is slow. Code inside JAX-WS should define strongly-typed
|
||||
* fields in this class and access them directly, instead of using this.
|
||||
*
|
||||
* @throws ReadOnlyPropertyException
|
||||
* if the given key is an alias of a strongly-typed field,
|
||||
* and if the name object given is not assignable to the field.
|
||||
*
|
||||
* @see Property
|
||||
*/
|
||||
@Override
|
||||
public Object put(String key, Object value) {
|
||||
Accessor sp = getPropertyMap().get(key);
|
||||
if(sp!=null) {
|
||||
Object old = sp.get(this);
|
||||
sp.set(this,value);
|
||||
return old;
|
||||
} else {
|
||||
throw new IllegalArgumentException("Undefined property "+key);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if this {@link PropertySet} supports a property of the given name.
|
||||
*/
|
||||
@Override
|
||||
public boolean supports(Object key) {
|
||||
return getPropertyMap().containsKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object remove(Object key) {
|
||||
Accessor sp = getPropertyMap().get(key);
|
||||
if(sp!=null) {
|
||||
Object old = sp.get(this);
|
||||
sp.set(this,null);
|
||||
return old;
|
||||
} else {
|
||||
throw new IllegalArgumentException("Undefined property "+key);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a {@link Map} view of this {@link PropertySet}.
|
||||
*
|
||||
* <p>
|
||||
* This map is partially live, in the sense that values you set to it
|
||||
* will be reflected to {@link PropertySet}.
|
||||
*
|
||||
* <p>
|
||||
* However, this map may not pick up changes made
|
||||
* to {@link PropertySet} after the view is created.
|
||||
*
|
||||
* @deprecated use newer implementation {@link PropertySet#asMap()} which produces
|
||||
* readwrite {@link Map}
|
||||
*
|
||||
* @return
|
||||
* always non-null valid instance.
|
||||
*/
|
||||
@Deprecated
|
||||
@Override
|
||||
public final Map<String,Object> createMapView() {
|
||||
final Set<Entry<String,Object>> core = new HashSet<Entry<String,Object>>();
|
||||
createEntrySet(core);
|
||||
|
||||
return new AbstractMap<String, Object>() {
|
||||
@Override
|
||||
public Set<Entry<String,Object>> entrySet() {
|
||||
return core;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a modifiable {@link Map} view of this {@link PropertySet}.
|
||||
* <p/>
|
||||
* Changes done on this {@link Map} or on {@link PropertySet} object work in both directions - values made to
|
||||
* {@link Map} are reflected to {@link PropertySet} and changes done using getters/setters on {@link PropertySet}
|
||||
* object are automatically reflected in this {@link Map}.
|
||||
* <p/>
|
||||
* If necessary, it also can hold other values (not present on {@link PropertySet}) -
|
||||
* {@see PropertySet#mapAllowsAdditionalProperties}
|
||||
*
|
||||
* @return always non-null valid instance.
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> asMap() {
|
||||
if (mapView == null) {
|
||||
mapView = createView();
|
||||
}
|
||||
return mapView;
|
||||
}
|
||||
|
||||
protected Map<String, Object> createView() {
|
||||
return new MapView(mapAllowsAdditionalProperties());
|
||||
}
|
||||
|
||||
/**
|
||||
* Used when constructing the {@link MapView} for this object - it controls if the {@link MapView} servers only to
|
||||
* access strongly typed values or allows also different values
|
||||
*
|
||||
* @return true if {@link Map} should allow also properties not defined as strongly typed fields
|
||||
*/
|
||||
protected boolean mapAllowsAdditionalProperties() {
|
||||
return false;
|
||||
}
|
||||
|
||||
protected void createEntrySet(Set<Entry<String,Object>> core) {
|
||||
for (final Entry<String, Accessor> e : getPropertyMap().entrySet()) {
|
||||
core.add(new Entry<String, Object>() {
|
||||
@Override
|
||||
public String getKey() {
|
||||
return e.getKey();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getValue() {
|
||||
return e.getValue().get(BasePropertySet.this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object setValue(Object value) {
|
||||
Accessor acc = e.getValue();
|
||||
Object old = acc.get(BasePropertySet.this);
|
||||
acc.set(BasePropertySet.this,value);
|
||||
return old;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.api.message;
|
||||
|
||||
//TODO Do we want to remove this implementation dependency?
|
||||
import com.sun.xml.internal.ws.encoding.ContentTypeImpl;
|
||||
|
||||
/**
|
||||
* A Content-Type transport header that will be returned by {@link MessageContext#write(java.io.OutputStream)}.
|
||||
* It will provide the Content-Type header and also take care of SOAP 1.1 SOAPAction header.
|
||||
*
|
||||
* @author Vivek Pandey
|
||||
*/
|
||||
public interface ContentType {
|
||||
|
||||
/**
|
||||
* Gives non-null Content-Type header value.
|
||||
*/
|
||||
public String getContentType();
|
||||
|
||||
/**
|
||||
* Gives SOAPAction transport header value. It will be non-null only for SOAP 1.1 messages. In other cases
|
||||
* it MUST be null. The SOAPAction transport header should be written out only when its non-null.
|
||||
*
|
||||
* @return It can be null, in that case SOAPAction header should be written.
|
||||
*/
|
||||
public String getSOAPActionHeader();
|
||||
|
||||
/**
|
||||
* Controls the Accept transport header, if the transport supports it.
|
||||
* Returning null means the transport need not add any new header.
|
||||
*
|
||||
* <p>
|
||||
* We realize that this is not an elegant abstraction, but
|
||||
* this would do for now. If another person comes and asks for
|
||||
* a similar functionality, we'll define a real abstraction.
|
||||
*/
|
||||
public String getAcceptHeader();
|
||||
|
||||
static public class Builder {
|
||||
private String contentType;
|
||||
private String soapAction;
|
||||
private String accept;
|
||||
private String charset;
|
||||
|
||||
public Builder contentType(String s) {contentType = s; return this; }
|
||||
public Builder soapAction (String s) {soapAction = s; return this; }
|
||||
public Builder accept (String s) {accept = s; return this; }
|
||||
public Builder charset (String s) {charset = s; return this; }
|
||||
public ContentType build() {
|
||||
//TODO Do we want to remove this implementation dependency?
|
||||
return new ContentTypeImpl(contentType, soapAction, accept, charset);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.api.message;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.sun.istack.internal.Nullable;
|
||||
|
||||
/**
|
||||
* {@link PropertySet} that combines properties exposed from multiple
|
||||
* {@link PropertySet}s into one.
|
||||
*
|
||||
* <p>
|
||||
* This implementation allows one {@link PropertySet} to assemble
|
||||
* all properties exposed from other "satellite" {@link PropertySet}s.
|
||||
* (A satellite may itself be a {@link DistributedPropertySet}, so
|
||||
* in general this can form a tree.)
|
||||
*
|
||||
* <p>
|
||||
* This is useful for JAX-WS because the properties we expose to the application
|
||||
* are contributed by different pieces, and therefore we'd like each of them
|
||||
* to have a separate {@link PropertySet} implementation that backs up
|
||||
* the properties. For example, this allows FastInfoset to expose its
|
||||
* set of properties to {@link RequestContext} by using a strongly-typed fields.
|
||||
*
|
||||
* <p>
|
||||
* This is also useful for a client-side transport to expose a bunch of properties
|
||||
* into {@link ResponseContext}. It simply needs to create a {@link PropertySet}
|
||||
* object with methods for each property it wants to expose, and then add that
|
||||
* {@link PropertySet} to {@link Packet}. This allows property values to be
|
||||
* lazily computed (when actually asked by users), thus improving the performance
|
||||
* of the typical case where property values are not asked.
|
||||
*
|
||||
* <p>
|
||||
* A similar benefit applies on the server-side, for a transport to expose
|
||||
* a bunch of properties to {@link WebServiceContext}.
|
||||
*
|
||||
* <p>
|
||||
* To achieve these benefits, access to {@link DistributedPropertySet} is slower
|
||||
* compared to {@link PropertySet} (such as get/set), while adding a satellite
|
||||
* object is relatively fast.
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public interface DistributedPropertySet extends com.oracle.webservices.internal.api.message.PropertySet {
|
||||
|
||||
public @Nullable <T extends com.oracle.webservices.internal.api.message.PropertySet> T getSatellite(Class<T> satelliteClass);
|
||||
|
||||
public Map<Class<? extends com.oracle.webservices.internal.api.message.PropertySet>, com.oracle.webservices.internal.api.message.PropertySet> getSatellites();
|
||||
|
||||
public void addSatellite(com.oracle.webservices.internal.api.message.PropertySet satellite);
|
||||
|
||||
public void addSatellite(Class<? extends com.oracle.webservices.internal.api.message.PropertySet> keyClass, com.oracle.webservices.internal.api.message.PropertySet satellite);
|
||||
|
||||
public void removeSatellite(com.oracle.webservices.internal.api.message.PropertySet satellite);
|
||||
|
||||
public void copySatelliteInto(com.oracle.webservices.internal.api.message.MessageContext r);
|
||||
}
|
@ -0,0 +1,116 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.api.message;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.channels.WritableByteChannel;
|
||||
|
||||
import javax.xml.soap.SOAPException;
|
||||
import javax.xml.soap.SOAPMessage;
|
||||
|
||||
/**
|
||||
* MessageContext represents a container of a SOAP message and all the properties
|
||||
* including the transport headers.
|
||||
*
|
||||
* MessageContext is a composite {@link PropertySet} that combines properties exposed from multiple
|
||||
* {@link PropertySet}s into one.
|
||||
*
|
||||
* <p>
|
||||
* This implementation allows one {@link PropertySet} to assemble
|
||||
* all properties exposed from other "satellite" {@link PropertySet}s.
|
||||
* (A satellite may itself be a {@link DistributedPropertySet}, so
|
||||
* in general this can form a tree.)
|
||||
*
|
||||
* @author shih-chang.chen@oracle.com
|
||||
*/
|
||||
public interface MessageContext extends DistributedPropertySet {
|
||||
/**
|
||||
* Gets the SAAJ SOAPMessage representation of the SOAP message.
|
||||
*
|
||||
* @return The SOAPMessage
|
||||
*/
|
||||
SOAPMessage getAsSOAPMessage() throws SOAPException;
|
||||
|
||||
/**
|
||||
* Gets the SAAJ SOAPMessage representation of the SOAP message.
|
||||
* @deprecated use getAsSOAPMessage
|
||||
* @return The SOAPMessage
|
||||
*/
|
||||
SOAPMessage getSOAPMessage() throws SOAPException;
|
||||
|
||||
/**
|
||||
* Writes the XML infoset portion of this MessageContext
|
||||
* (from <soap:Envelope> to </soap:Envelope>).
|
||||
*
|
||||
* @param out
|
||||
* Must not be null. The caller is responsible for closing the stream,
|
||||
* not the callee.
|
||||
*
|
||||
* @return
|
||||
* The MIME content type of the encoded message (such as "application/xml").
|
||||
* This information is often ncessary by transport.
|
||||
*
|
||||
* @throws IOException
|
||||
* if a {@link OutputStream} throws {@link IOException}.
|
||||
*/
|
||||
ContentType writeTo( OutputStream out ) throws IOException;
|
||||
|
||||
/**
|
||||
* The version of {@link #writeTo(OutputStream)}
|
||||
* that writes to NIO {@link ByteBuffer}.
|
||||
*
|
||||
* <p>
|
||||
* TODO: for the convenience of implementation, write
|
||||
* an adapter that wraps {@link WritableByteChannel} to {@link OutputStream}.
|
||||
*/
|
||||
// ContentType writeTo( WritableByteChannel buffer );
|
||||
|
||||
/**
|
||||
* Gets the Content-type of this message. For an out-bound message that this getContentType()
|
||||
* method returns a null, the Content-Type can be determined only by calling the writeTo
|
||||
* method to write the MessageContext to an OutputStream.
|
||||
*
|
||||
* @return The MIME content type of this message
|
||||
*/
|
||||
ContentType getContentType();
|
||||
}
|
@ -1,125 +1,65 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
* Copyright (c) 1997-2013 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.sun.xml.internal.org.jvnet.ws.message;
|
||||
package com.oracle.webservices.internal.api.message;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import com.oracle.webservices.internal.api.EnvelopeStyle;
|
||||
import com.sun.xml.internal.ws.api.SOAPVersion; // TODO leaking RI APIs
|
||||
import com.sun.xml.internal.ws.api.message.Message;
|
||||
import com.sun.xml.internal.ws.api.message.Messages;
|
||||
import com.sun.xml.internal.ws.api.message.Packet;
|
||||
import com.sun.xml.internal.ws.util.ServiceFinder;
|
||||
|
||||
//import java.io.InputStream;
|
||||
import javax.xml.soap.MimeHeaders;
|
||||
import javax.xml.soap.SOAPMessage;
|
||||
import javax.xml.transform.Source;
|
||||
import javax.xml.ws.WebServiceFeature;
|
||||
|
||||
import com.sun.xml.internal.org.jvnet.ws.EnvelopeStyle;
|
||||
import com.sun.xml.internal.org.jvnet.ws.message.MessageContext;
|
||||
|
||||
public abstract class MessageContextFactory
|
||||
{
|
||||
private static final MessageContextFactory DEFAULT = new com.sun.xml.internal.ws.api.message.MessageContextFactory(new WebServiceFeature[0]);
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public abstract MessageContext doCreate();
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public abstract MessageContext doCreate(SOAPMessage m);
|
||||
//public abstract MessageContext doCreate(InputStream x);
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public abstract MessageContext doCreate(Source x, SOAPVersion soapVersion);
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static MessageContext create(final ClassLoader... classLoader) {
|
||||
return serviceFinder(classLoader,
|
||||
new Creator() {
|
||||
public MessageContext create(final MessageContextFactory f) {
|
||||
return f.doCreate();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static MessageContext create(final SOAPMessage m, final ClassLoader... classLoader) {
|
||||
return serviceFinder(classLoader,
|
||||
new Creator() {
|
||||
public MessageContext create(final MessageContextFactory f) {
|
||||
return f.doCreate(m);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static MessageContext create(final Source m, final SOAPVersion v, final ClassLoader... classLoader) {
|
||||
return serviceFinder(classLoader,
|
||||
new Creator() {
|
||||
public MessageContext create(final MessageContextFactory f) {
|
||||
return f.doCreate(m, v);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
private static MessageContext serviceFinder(final ClassLoader[] classLoader, final Creator creator) {
|
||||
final ClassLoader cl = classLoader.length == 0 ? null : classLoader[0];
|
||||
for (MessageContextFactory factory : ServiceFinder.find(MessageContextFactory.class, cl)) {
|
||||
final MessageContext messageContext = creator.create(factory);
|
||||
if (messageContext != null)
|
||||
return messageContext;
|
||||
}
|
||||
return creator.create(DEFAULT);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
private static interface Creator {
|
||||
public MessageContext create(MessageContextFactory f);
|
||||
}
|
||||
|
||||
protected abstract MessageContextFactory newFactory(WebServiceFeature ... f);
|
||||
|
||||
public abstract MessageContext createContext();
|
||||
|
||||
public abstract MessageContext createContext(SOAPMessage m);
|
||||
|
||||
public abstract MessageContext createContext(Source m);
|
||||
@ -128,6 +68,12 @@ public abstract class MessageContextFactory
|
||||
|
||||
public abstract MessageContext createContext(InputStream in, String contentType) throws IOException;
|
||||
|
||||
/**
|
||||
* @deprecated http://java.net/jira/browse/JAX_WS-1077
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract MessageContext createContext(InputStream in, MimeHeaders headers) throws IOException;
|
||||
|
||||
static public MessageContextFactory createFactory(WebServiceFeature ... f) {
|
||||
return createFactory(null, f);
|
||||
}
|
||||
@ -139,4 +85,61 @@ public abstract class MessageContextFactory
|
||||
}
|
||||
return new com.sun.xml.internal.ws.api.message.MessageContextFactory(f);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public abstract MessageContext doCreate();
|
||||
|
||||
@Deprecated
|
||||
public abstract MessageContext doCreate(SOAPMessage m);
|
||||
|
||||
//public abstract MessageContext doCreate(InputStream x);
|
||||
|
||||
@Deprecated
|
||||
public abstract MessageContext doCreate(Source x, SOAPVersion soapVersion);
|
||||
|
||||
@Deprecated
|
||||
public static MessageContext create(final ClassLoader... classLoader) {
|
||||
return serviceFinder(classLoader,
|
||||
new Creator() {
|
||||
public MessageContext create(final MessageContextFactory f) {
|
||||
return f.doCreate();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static MessageContext create(final SOAPMessage m, final ClassLoader... classLoader) {
|
||||
return serviceFinder(classLoader,
|
||||
new Creator() {
|
||||
public MessageContext create(final MessageContextFactory f) {
|
||||
return f.doCreate(m);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static MessageContext create(final Source m, final SOAPVersion v, final ClassLoader... classLoader) {
|
||||
return serviceFinder(classLoader,
|
||||
new Creator() {
|
||||
public MessageContext create(final MessageContextFactory f) {
|
||||
return f.doCreate(m, v);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
private static MessageContext serviceFinder(final ClassLoader[] classLoader, final Creator creator) {
|
||||
final ClassLoader cl = classLoader.length == 0 ? null : classLoader[0];
|
||||
for (MessageContextFactory factory : ServiceFinder.find(MessageContextFactory.class, cl)) {
|
||||
final MessageContext messageContext = creator.create(factory);
|
||||
if (messageContext != null)
|
||||
return messageContext;
|
||||
}
|
||||
return creator.create(DEFAULT);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
private static interface Creator {
|
||||
public MessageContext create(MessageContextFactory f);
|
||||
}
|
||||
}
|
@ -0,0 +1,149 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.api.message;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.xml.ws.handler.MessageContext;
|
||||
|
||||
/**
|
||||
* A set of "properties" that can be accessed via strongly-typed fields
|
||||
* as well as reflexibly through the property name.
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public interface PropertySet {
|
||||
|
||||
/**
|
||||
* Marks a field on {@link PropertySet} as a
|
||||
* property of {@link MessageContext}.
|
||||
*
|
||||
* <p>
|
||||
* To make the runtime processing easy, this annotation
|
||||
* must be on a public field (since the property name
|
||||
* can be set through {@link Map} anyway, you won't be
|
||||
* losing abstraction by doing so.)
|
||||
*
|
||||
* <p>
|
||||
* For similar reason, this annotation can be only placed
|
||||
* on a reference type, not primitive type.
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
@Inherited
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.FIELD,ElementType.METHOD})
|
||||
public @interface Property {
|
||||
/**
|
||||
* Name of the property.
|
||||
*/
|
||||
String[] value();
|
||||
}
|
||||
|
||||
public boolean containsKey(Object key);
|
||||
|
||||
/**
|
||||
* Gets the name of the property.
|
||||
*
|
||||
* @param key
|
||||
* This field is typed as {@link Object} to follow the {@link Map#get(Object)}
|
||||
* convention, but if anything but {@link String} is passed, this method
|
||||
* just returns null.
|
||||
*/
|
||||
public Object get(Object key);
|
||||
|
||||
/**
|
||||
* Sets a property.
|
||||
*
|
||||
* <h3>Implementation Note</h3>
|
||||
* This method is slow. Code inside JAX-WS should define strongly-typed
|
||||
* fields in this class and access them directly, instead of using this.
|
||||
*
|
||||
* @see Property
|
||||
*/
|
||||
public Object put(String key, Object value);
|
||||
|
||||
/**
|
||||
* Checks if this {@link PropertySet} supports a property of the given name.
|
||||
*/
|
||||
public boolean supports(Object key);
|
||||
|
||||
public Object remove(Object key);
|
||||
|
||||
/**
|
||||
* Creates a {@link Map} view of this {@link PropertySet}.
|
||||
*
|
||||
* <p>
|
||||
* This map is partially live, in the sense that values you set to it
|
||||
* will be reflected to {@link PropertySet}.
|
||||
*
|
||||
* <p>
|
||||
* However, this map may not pick up changes made
|
||||
* to {@link PropertySet} after the view is created.
|
||||
*
|
||||
* @deprecated use newer implementation {@link com.sun.xml.internal.ws.api.PropertySet#asMap()} which produces
|
||||
* readwrite {@link Map}
|
||||
*
|
||||
* @return
|
||||
* always non-null valid instance.
|
||||
*/
|
||||
@Deprecated
|
||||
public Map<String,Object> createMapView();
|
||||
|
||||
/**
|
||||
* Creates a modifiable {@link Map} view of this {@link PropertySet}.
|
||||
* <p/>
|
||||
* Changes done on this {@link Map} or on {@link PropertySet} object work in both directions - values made to
|
||||
* {@link Map} are reflected to {@link PropertySet} and changes done using getters/setters on {@link PropertySet}
|
||||
* object are automatically reflected in this {@link Map}.
|
||||
* <p/>
|
||||
* If necessary, it also can hold other values (not present on {@link PropertySet}) -
|
||||
* {@see PropertySet#mapAllowsAdditionalProperties}
|
||||
*
|
||||
* @return always non-null valid instance.
|
||||
*/
|
||||
public Map<String, Object> asMap();
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.api.message;
|
||||
|
||||
/**
|
||||
* Used to indicate that {@link PropertySet#put(String, Object)} failed
|
||||
* because a property is read-only.
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public class ReadOnlyPropertyException extends IllegalArgumentException {
|
||||
private final String propertyName;
|
||||
|
||||
public ReadOnlyPropertyException(String propertyName) {
|
||||
super(propertyName+" is a read-only property.");
|
||||
this.propertyName = propertyName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name of the property that was read-only.
|
||||
*/
|
||||
public String getPropertyName() {
|
||||
return propertyName;
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 1997-2013 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.impl.encoding;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import javax.xml.stream.XMLStreamReader;
|
||||
|
||||
import com.oracle.webservices.internal.impl.internalspi.encoding.StreamDecoder;
|
||||
|
||||
import com.sun.xml.internal.ws.api.SOAPVersion;
|
||||
import com.sun.xml.internal.ws.api.message.AttachmentSet;
|
||||
import com.sun.xml.internal.ws.api.message.Message;
|
||||
import com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory;
|
||||
import com.sun.xml.internal.ws.encoding.StreamSOAPCodec;
|
||||
import com.sun.xml.internal.ws.streaming.TidyXMLStreamReader;
|
||||
|
||||
public class StreamDecoderImpl implements StreamDecoder {
|
||||
|
||||
@Override
|
||||
public Message decode(InputStream in, String charset,
|
||||
AttachmentSet att, SOAPVersion soapVersion) throws IOException {
|
||||
XMLStreamReader reader = XMLStreamReaderFactory.create(null, in, charset, true);
|
||||
reader = new TidyXMLStreamReader(reader, in);
|
||||
return StreamSOAPCodec.decode(soapVersion, reader, att);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 1997-2013 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.webservices.internal.impl.internalspi.encoding;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import com.sun.xml.internal.ws.api.SOAPVersion;
|
||||
import com.sun.xml.internal.ws.api.message.AttachmentSet;
|
||||
import com.sun.xml.internal.ws.api.message.Message;
|
||||
|
||||
/**
|
||||
* Decodes SOAPEnvelope read from an <code>InputStream</code> into a <code>Message</code> instance.
|
||||
* This SPI allows for other implementations instead of the default, which is based on XMLStreamReader.
|
||||
*
|
||||
* @since 2.2.9
|
||||
*/
|
||||
public interface StreamDecoder {
|
||||
Message decode(
|
||||
InputStream in, String charset,
|
||||
AttachmentSet att, SOAPVersion soapVersion) throws IOException;
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for existing-annotations-type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
* <p>
|
||||
* <pre>
|
||||
* <simpleType name="existing-annotations-type">
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
||||
* <enumeration value="merge"/>
|
||||
* <enumeration value="ignore"/>
|
||||
* </restriction>
|
||||
* </simpleType>
|
||||
* </pre>
|
||||
*
|
||||
*/
|
||||
@XmlType(name = "existing-annotations-type")
|
||||
@XmlEnum
|
||||
public enum ExistingAnnotationsType {
|
||||
|
||||
@XmlEnumValue("merge")
|
||||
MERGE("merge"),
|
||||
@XmlEnumValue("ignore")
|
||||
IGNORE("ignore");
|
||||
private final String value;
|
||||
|
||||
ExistingAnnotationsType(String v) {
|
||||
value = v;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static ExistingAnnotationsType fromValue(String v) {
|
||||
for (ExistingAnnotationsType c: ExistingAnnotationsType.values()) {
|
||||
if (c.value.equals(v)) {
|
||||
return c;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException(v);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,280 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAnyAttribute;
|
||||
import javax.xml.bind.annotation.XmlAnyElement;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementRef;
|
||||
import javax.xml.bind.annotation.XmlElementRefs;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.namespace.QName;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <group ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}method-annotation" maxOccurs="unbounded" minOccurs="0"/>
|
||||
* <element name="java-params" minOccurs="0">
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}java-param" maxOccurs="unbounded"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <anyAttribute processContents='skip' namespace='##other'/>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = {
|
||||
"methodAnnotation",
|
||||
"javaParams"
|
||||
})
|
||||
@XmlRootElement(name = "java-method")
|
||||
public class JavaMethod {
|
||||
|
||||
@XmlElementRefs({
|
||||
@XmlElementRef(name = "web-endpoint", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebEndpoint.class, required = false),
|
||||
@XmlElementRef(name = "oneway", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlOneway.class, required = false),
|
||||
@XmlElementRef(name = "action", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlAction.class, required = false),
|
||||
@XmlElementRef(name = "soap-binding", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlSOAPBinding.class, required = false),
|
||||
@XmlElementRef(name = "web-result", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebResult.class, required = false),
|
||||
@XmlElementRef(name = "web-method", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebMethod.class, required = false)
|
||||
})
|
||||
@XmlAnyElement
|
||||
protected List<Object> methodAnnotation;
|
||||
@XmlElement(name = "java-params")
|
||||
protected JavaMethod.JavaParams javaParams;
|
||||
@XmlAttribute(name = "name", required = true)
|
||||
protected String name;
|
||||
@XmlAnyAttribute
|
||||
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
|
||||
|
||||
/**
|
||||
* Gets the value of the methodAnnotation property.
|
||||
*
|
||||
* <p>
|
||||
* This accessor method returns a reference to the live list,
|
||||
* not a snapshot. Therefore any modification you make to the
|
||||
* returned list will be present inside the JAXB object.
|
||||
* This is why there is not a <CODE>set</CODE> method for the methodAnnotation property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getMethodAnnotation().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link XmlWebEndpoint }
|
||||
* {@link XmlOneway }
|
||||
* {@link XmlAction }
|
||||
* {@link XmlSOAPBinding }
|
||||
* {@link XmlWebResult }
|
||||
* {@link XmlWebMethod }
|
||||
* {@link Element }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<Object> getMethodAnnotation() {
|
||||
if (methodAnnotation == null) {
|
||||
methodAnnotation = new ArrayList<Object>();
|
||||
}
|
||||
return this.methodAnnotation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the javaParams property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link JavaMethod.JavaParams }
|
||||
*
|
||||
*/
|
||||
public JavaMethod.JavaParams getJavaParams() {
|
||||
return javaParams;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the javaParams property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link JavaMethod.JavaParams }
|
||||
*
|
||||
*/
|
||||
public void setJavaParams(JavaMethod.JavaParams value) {
|
||||
this.javaParams = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a map that contains attributes that aren't bound to any typed property on this class.
|
||||
*
|
||||
* <p>
|
||||
* the map is keyed by the name of the attribute and
|
||||
* the value is the string value of the attribute.
|
||||
*
|
||||
* the map returned by this method is live, and you can add new attribute
|
||||
* by updating the map directly. Because of this design, there's no setter.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
* always non-null
|
||||
*/
|
||||
public Map<QName, String> getOtherAttributes() {
|
||||
return otherAttributes;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}java-param" maxOccurs="unbounded"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = {
|
||||
"javaParam"
|
||||
})
|
||||
public static class JavaParams {
|
||||
|
||||
@XmlElement(name = "java-param", required = true)
|
||||
protected List<JavaParam> javaParam;
|
||||
|
||||
/**
|
||||
* Gets the value of the javaParam property.
|
||||
*
|
||||
* <p>
|
||||
* This accessor method returns a reference to the live list,
|
||||
* not a snapshot. Therefore any modification you make to the
|
||||
* returned list will be present inside the JAXB object.
|
||||
* This is why there is not a <CODE>set</CODE> method for the javaParam property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getJavaParam().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link JavaParam }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<JavaParam> getJavaParam() {
|
||||
if (javaParam == null) {
|
||||
javaParam = new ArrayList<JavaParam>();
|
||||
}
|
||||
return this.javaParam;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,167 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAnyAttribute;
|
||||
import javax.xml.bind.annotation.XmlAnyElement;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElementRef;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.namespace.QName;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <group ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}param-annotation" maxOccurs="unbounded" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* <attribute name="java-type" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <anyAttribute processContents='skip' namespace='##other'/>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = {
|
||||
"paramAnnotation"
|
||||
})
|
||||
@XmlRootElement(name = "java-param")
|
||||
public class JavaParam {
|
||||
|
||||
@XmlElementRef(name = "web-param", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebParam.class, required = false)
|
||||
@XmlAnyElement
|
||||
protected List<Object> paramAnnotation;
|
||||
@XmlAttribute(name = "java-type")
|
||||
protected String javaType;
|
||||
@XmlAnyAttribute
|
||||
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
|
||||
|
||||
/**
|
||||
* Gets the value of the paramAnnotation property.
|
||||
*
|
||||
* <p>
|
||||
* This accessor method returns a reference to the live list,
|
||||
* not a snapshot. Therefore any modification you make to the
|
||||
* returned list will be present inside the JAXB object.
|
||||
* This is why there is not a <CODE>set</CODE> method for the paramAnnotation property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getParamAnnotation().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link XmlWebParam }
|
||||
* {@link Element }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<Object> getParamAnnotation() {
|
||||
if (paramAnnotation == null) {
|
||||
paramAnnotation = new ArrayList<Object>();
|
||||
}
|
||||
return this.paramAnnotation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the javaType property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getJavaType() {
|
||||
return javaType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the javaType property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setJavaType(String value) {
|
||||
this.javaType = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a map that contains attributes that aren't bound to any typed property on this class.
|
||||
*
|
||||
* <p>
|
||||
* the map is keyed by the name of the attribute and
|
||||
* the value is the string value of the attribute.
|
||||
*
|
||||
* the map returned by this method is live, and you can add new attribute
|
||||
* by updating the map directly. Because of this design, there's no setter.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
* always non-null
|
||||
*/
|
||||
public Map<QName, String> getOtherAttributes() {
|
||||
return otherAttributes;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,466 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAnyAttribute;
|
||||
import javax.xml.bind.annotation.XmlAnyElement;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementRef;
|
||||
import javax.xml.bind.annotation.XmlElementRefs;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.namespace.QName;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for java-wsdl-mapping-type complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="java-wsdl-mapping-type">
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="xml-schema-mapping" minOccurs="0">
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <any maxOccurs="unbounded" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </element>
|
||||
* <group ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}class-annotation" maxOccurs="unbounded" minOccurs="0"/>
|
||||
* <element name="java-methods" minOccurs="0">
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}java-method" maxOccurs="unbounded" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="java-type-name" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="existing-annotations" type="{http://xmlns.oracle.com/webservices/jaxws-databinding}existing-annotations-type" />
|
||||
* <attribute name="databinding" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <anyAttribute processContents='skip' namespace='##other'/>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "java-wsdl-mapping-type", propOrder = {
|
||||
"xmlSchemaMapping",
|
||||
"classAnnotation",
|
||||
"javaMethods"
|
||||
})
|
||||
public class JavaWsdlMappingType {
|
||||
|
||||
@XmlElement(name = "xml-schema-mapping")
|
||||
protected JavaWsdlMappingType.XmlSchemaMapping xmlSchemaMapping;
|
||||
@XmlElementRefs({
|
||||
@XmlElementRef(name = "web-service-client", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebServiceClient.class, required = false),
|
||||
@XmlElementRef(name = "binding-type", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlBindingType.class, required = false),
|
||||
@XmlElementRef(name = "web-service", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebService.class, required = false),
|
||||
@XmlElementRef(name = "web-fault", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlWebFault.class, required = false),
|
||||
@XmlElementRef(name = "service-mode", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlServiceMode.class, required = false),
|
||||
@XmlElementRef(name = "mtom", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlMTOM.class, required = false),
|
||||
@XmlElementRef(name = "handler-chain", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlHandlerChain.class, required = false),
|
||||
@XmlElementRef(name = "soap-binding", namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", type = XmlSOAPBinding.class, required = false)
|
||||
})
|
||||
@XmlAnyElement
|
||||
protected List<Object> classAnnotation;
|
||||
@XmlElement(name = "java-methods")
|
||||
protected JavaWsdlMappingType.JavaMethods javaMethods;
|
||||
@XmlAttribute(name = "name")
|
||||
protected String name;
|
||||
@XmlAttribute(name = "java-type-name")
|
||||
protected String javaTypeName;
|
||||
@XmlAttribute(name = "existing-annotations")
|
||||
protected ExistingAnnotationsType existingAnnotations;
|
||||
@XmlAttribute(name = "databinding")
|
||||
protected String databinding;
|
||||
@XmlAnyAttribute
|
||||
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
|
||||
|
||||
/**
|
||||
* Gets the value of the xmlSchemaMapping property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link JavaWsdlMappingType.XmlSchemaMapping }
|
||||
*
|
||||
*/
|
||||
public JavaWsdlMappingType.XmlSchemaMapping getXmlSchemaMapping() {
|
||||
return xmlSchemaMapping;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the xmlSchemaMapping property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link JavaWsdlMappingType.XmlSchemaMapping }
|
||||
*
|
||||
*/
|
||||
public void setXmlSchemaMapping(JavaWsdlMappingType.XmlSchemaMapping value) {
|
||||
this.xmlSchemaMapping = value;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* The class-annotation group defines the set of
|
||||
* annotations applicable to the Java class
|
||||
* declaration.
|
||||
* Gets the value of the classAnnotation property.
|
||||
*
|
||||
* <p>
|
||||
* This accessor method returns a reference to the live list,
|
||||
* not a snapshot. Therefore any modification you make to the
|
||||
* returned list will be present inside the JAXB object.
|
||||
* This is why there is not a <CODE>set</CODE> method for the classAnnotation property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getClassAnnotation().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link XmlWebServiceClient }
|
||||
* {@link XmlBindingType }
|
||||
* {@link XmlWebService }
|
||||
* {@link XmlWebFault }
|
||||
* {@link XmlServiceMode }
|
||||
* {@link XmlMTOM }
|
||||
* {@link XmlHandlerChain }
|
||||
* {@link Element }
|
||||
* {@link XmlSOAPBinding }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<Object> getClassAnnotation() {
|
||||
if (classAnnotation == null) {
|
||||
classAnnotation = new ArrayList<Object>();
|
||||
}
|
||||
return this.classAnnotation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the javaMethods property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link JavaWsdlMappingType.JavaMethods }
|
||||
*
|
||||
*/
|
||||
public JavaWsdlMappingType.JavaMethods getJavaMethods() {
|
||||
return javaMethods;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the javaMethods property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link JavaWsdlMappingType.JavaMethods }
|
||||
*
|
||||
*/
|
||||
public void setJavaMethods(JavaWsdlMappingType.JavaMethods value) {
|
||||
this.javaMethods = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the javaTypeName property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getJavaTypeName() {
|
||||
return javaTypeName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the javaTypeName property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setJavaTypeName(String value) {
|
||||
this.javaTypeName = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the classAnnotations property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link ExistingAnnotationsType }
|
||||
*
|
||||
*/
|
||||
public ExistingAnnotationsType getExistingAnnotations() {
|
||||
return existingAnnotations;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the classAnnotations property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link ExistingAnnotationsType }
|
||||
*
|
||||
*/
|
||||
public void setExistingAnnotations(ExistingAnnotationsType value) {
|
||||
this.existingAnnotations = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the databinding property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getDatabinding() {
|
||||
return databinding;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the databinding property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setDatabinding(String value) {
|
||||
this.databinding = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a map that contains attributes that aren't bound to any typed property on this class.
|
||||
*
|
||||
* <p>
|
||||
* the map is keyed by the name of the attribute and
|
||||
* the value is the string value of the attribute.
|
||||
*
|
||||
* the map returned by this method is live, and you can add new attribute
|
||||
* by updating the map directly. Because of this design, there's no setter.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
* always non-null
|
||||
*/
|
||||
public Map<QName, String> getOtherAttributes() {
|
||||
return otherAttributes;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}java-method" maxOccurs="unbounded" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = {
|
||||
"javaMethod"
|
||||
})
|
||||
public static class JavaMethods {
|
||||
|
||||
@XmlElement(name = "java-method")
|
||||
protected List<JavaMethod> javaMethod;
|
||||
|
||||
/**
|
||||
* Gets the value of the javaMethod property.
|
||||
*
|
||||
* <p>
|
||||
* This accessor method returns a reference to the live list,
|
||||
* not a snapshot. Therefore any modification you make to the
|
||||
* returned list will be present inside the JAXB object.
|
||||
* This is why there is not a <CODE>set</CODE> method for the javaMethod property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getJavaMethod().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link JavaMethod }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<JavaMethod> getJavaMethod() {
|
||||
if (javaMethod == null) {
|
||||
javaMethod = new ArrayList<JavaMethod>();
|
||||
}
|
||||
return this.javaMethod;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <any maxOccurs="unbounded" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = {
|
||||
"any"
|
||||
})
|
||||
public static class XmlSchemaMapping {
|
||||
|
||||
@XmlAnyElement(lax = true)
|
||||
protected List<Object> any;
|
||||
|
||||
/**
|
||||
* Gets the value of the any property.
|
||||
*
|
||||
* <p>
|
||||
* This accessor method returns a reference to the live list,
|
||||
* not a snapshot. Therefore any modification you make to the
|
||||
* returned list will be present inside the JAXB object.
|
||||
* This is why there is not a <CODE>set</CODE> method for the any property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getAny().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link Object }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<Object> getAny() {
|
||||
if (any == null) {
|
||||
any = new ArrayList<Object>();
|
||||
}
|
||||
return this.any;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,283 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.JAXBElement;
|
||||
import javax.xml.bind.annotation.XmlElementDecl;
|
||||
import javax.xml.bind.annotation.XmlRegistry;
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
|
||||
/**
|
||||
* This object contains factory methods for each
|
||||
* Java content interface and Java element interface
|
||||
* generated in the com.sun.xml.internal.ws.ext2.java_wsdl package.
|
||||
* <p>An ObjectFactory allows you to programatically
|
||||
* construct new instances of the Java representation
|
||||
* for XML content. The Java representation of XML
|
||||
* content can consist of schema derived interfaces
|
||||
* and classes representing the binding of schema
|
||||
* type definitions, element declarations and model
|
||||
* groups. Factory methods for each of these are
|
||||
* provided in this class.
|
||||
*
|
||||
*/
|
||||
@XmlRegistry
|
||||
public class ObjectFactory {
|
||||
|
||||
private final static QName _JavaWsdlMapping_QNAME = new QName("http://xmlns.oracle.com/webservices/jaxws-databinding", "java-wsdl-mapping");
|
||||
|
||||
/**
|
||||
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.sun.xml.internal.ws.ext2.java_wsdl
|
||||
*
|
||||
*/
|
||||
public ObjectFactory() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link JavaMethod }
|
||||
*
|
||||
*/
|
||||
public JavaMethod createJavaMethod() {
|
||||
return new JavaMethod();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link JavaWsdlMappingType }
|
||||
*
|
||||
*/
|
||||
public JavaWsdlMappingType createJavaWsdlMappingType() {
|
||||
return new JavaWsdlMappingType();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlWebEndpoint }
|
||||
*
|
||||
*/
|
||||
public XmlWebEndpoint createWebEndpoint() {
|
||||
return new XmlWebEndpoint();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlMTOM }
|
||||
*
|
||||
*/
|
||||
public XmlMTOM createMtom() {
|
||||
return new XmlMTOM();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlWebServiceClient }
|
||||
*
|
||||
*/
|
||||
public XmlWebServiceClient createWebServiceClient() {
|
||||
return new XmlWebServiceClient();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlServiceMode }
|
||||
*
|
||||
*/
|
||||
public XmlServiceMode createServiceMode() {
|
||||
return new XmlServiceMode();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlBindingType }
|
||||
*
|
||||
*/
|
||||
public XmlBindingType createBindingType() {
|
||||
return new XmlBindingType();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlWebServiceRef }
|
||||
*
|
||||
*/
|
||||
public XmlWebServiceRef createWebServiceRef() {
|
||||
return new XmlWebServiceRef();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link JavaParam }
|
||||
*
|
||||
*/
|
||||
public JavaParam createJavaParam() {
|
||||
return new JavaParam();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlWebParam }
|
||||
*
|
||||
*/
|
||||
public XmlWebParam createWebParam() {
|
||||
return new XmlWebParam();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlWebMethod }
|
||||
*
|
||||
*/
|
||||
public XmlWebMethod createWebMethod() {
|
||||
return new XmlWebMethod();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlWebResult }
|
||||
*
|
||||
*/
|
||||
public XmlWebResult createWebResult() {
|
||||
return new XmlWebResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlOneway }
|
||||
*
|
||||
*/
|
||||
public XmlOneway createOneway() {
|
||||
return new XmlOneway();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlSOAPBinding }
|
||||
*
|
||||
*/
|
||||
public XmlSOAPBinding createSoapBinding() {
|
||||
return new XmlSOAPBinding();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlAction }
|
||||
*
|
||||
*/
|
||||
public XmlAction createAction() {
|
||||
return new XmlAction();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlFaultAction }
|
||||
*
|
||||
*/
|
||||
public XmlFaultAction createFaultAction() {
|
||||
return new XmlFaultAction();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link JavaMethod.JavaParams }
|
||||
*
|
||||
*/
|
||||
public JavaMethod.JavaParams createJavaMethodJavaParams() {
|
||||
return new JavaMethod.JavaParams();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlHandlerChain }
|
||||
*
|
||||
*/
|
||||
public XmlHandlerChain createHandlerChain() {
|
||||
return new XmlHandlerChain();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlWebServiceProvider }
|
||||
*
|
||||
*/
|
||||
public XmlWebServiceProvider createWebServiceProvider() {
|
||||
return new XmlWebServiceProvider();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlWebFault }
|
||||
*
|
||||
*/
|
||||
public XmlWebFault createWebFault() {
|
||||
return new XmlWebFault();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlResponseWrapper }
|
||||
*
|
||||
*/
|
||||
public XmlResponseWrapper createResponseWrapper() {
|
||||
return new XmlResponseWrapper();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlWebService }
|
||||
*
|
||||
*/
|
||||
public XmlWebService createWebService() {
|
||||
return new XmlWebService();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XmlRequestWrapper }
|
||||
*
|
||||
*/
|
||||
public XmlRequestWrapper createRequestWrapper() {
|
||||
return new XmlRequestWrapper();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link JavaWsdlMappingType.XmlSchemaMapping }
|
||||
*
|
||||
*/
|
||||
public JavaWsdlMappingType.XmlSchemaMapping createJavaWsdlMappingTypeXmlSchemaMapping() {
|
||||
return new JavaWsdlMappingType.XmlSchemaMapping();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link JavaWsdlMappingType.JavaMethods }
|
||||
*
|
||||
*/
|
||||
public JavaWsdlMappingType.JavaMethods createJavaWsdlMappingTypeJavaMethods() {
|
||||
return new JavaWsdlMappingType.JavaMethods();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link JAXBElement }{@code <}{@link JavaWsdlMappingType }{@code >}}
|
||||
*
|
||||
*/
|
||||
@XmlElementDecl(namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", name = "java-wsdl-mapping")
|
||||
public JAXBElement<JavaWsdlMappingType> createJavaWsdlMapping(JavaWsdlMappingType value) {
|
||||
return new JAXBElement<JavaWsdlMappingType>(_JavaWsdlMapping_QNAME, JavaWsdlMappingType.class, null, value);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for soap-binding-parameter-style.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
* <p>
|
||||
* <pre>
|
||||
* <simpleType name="soap-binding-parameter-style">
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
||||
* <enumeration value="BARE"/>
|
||||
* <enumeration value="WRAPPED"/>
|
||||
* </restriction>
|
||||
* </simpleType>
|
||||
* </pre>
|
||||
*
|
||||
*/
|
||||
@XmlType(name = "soap-binding-parameter-style")
|
||||
@XmlEnum
|
||||
public enum SoapBindingParameterStyle {
|
||||
|
||||
BARE,
|
||||
WRAPPED;
|
||||
|
||||
public String value() {
|
||||
return name();
|
||||
}
|
||||
|
||||
public static SoapBindingParameterStyle fromValue(String v) {
|
||||
return valueOf(v);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for soap-binding-style.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
* <p>
|
||||
* <pre>
|
||||
* <simpleType name="soap-binding-style">
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
||||
* <enumeration value="DOCUMENT"/>
|
||||
* <enumeration value="RPC"/>
|
||||
* </restriction>
|
||||
* </simpleType>
|
||||
* </pre>
|
||||
*
|
||||
*/
|
||||
@XmlType(name = "soap-binding-style")
|
||||
@XmlEnum
|
||||
public enum SoapBindingStyle {
|
||||
|
||||
DOCUMENT,
|
||||
RPC;
|
||||
|
||||
public String value() {
|
||||
return name();
|
||||
}
|
||||
|
||||
public static SoapBindingStyle fromValue(String v) {
|
||||
return valueOf(v);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for soap-binding-use.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
* <p>
|
||||
* <pre>
|
||||
* <simpleType name="soap-binding-use">
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
||||
* <enumeration value="LITERAL"/>
|
||||
* <enumeration value="ENCODED"/>
|
||||
* </restriction>
|
||||
* </simpleType>
|
||||
* </pre>
|
||||
*
|
||||
*/
|
||||
@XmlType(name = "soap-binding-use")
|
||||
@XmlEnum
|
||||
public enum SoapBindingUse {
|
||||
|
||||
LITERAL,
|
||||
ENCODED;
|
||||
|
||||
public String value() {
|
||||
return name();
|
||||
}
|
||||
|
||||
public static SoapBindingUse fromValue(String v) {
|
||||
return valueOf(v);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
|
||||
import com.sun.xml.internal.ws.model.RuntimeModelerException;
|
||||
|
||||
/**
|
||||
* Simple util to handle default values.
|
||||
*
|
||||
* @author miroslav.kos@oracle.com
|
||||
*/
|
||||
class Util {
|
||||
|
||||
static String nullSafe(String value) {
|
||||
return value == null ? "" : value;
|
||||
}
|
||||
|
||||
static <T> T nullSafe(T value, T defaultValue) {
|
||||
return value == null ? defaultValue : value;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
static <T extends Enum> T nullSafe(Enum value, T defaultValue) {
|
||||
return value == null ? defaultValue : (T) T.valueOf(defaultValue.getClass(), value.toString());
|
||||
}
|
||||
|
||||
public static Class<?> findClass(String className) {
|
||||
try {
|
||||
return Class.forName(className);
|
||||
} catch (ClassNotFoundException e) {
|
||||
throw new RuntimeModelerException("runtime.modeler.external.metadata.generic", e);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for web-param-mode.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
* <p>
|
||||
* <pre>
|
||||
* <simpleType name="web-param-mode">
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
||||
* <enumeration value="IN"/>
|
||||
* <enumeration value="OUT"/>
|
||||
* <enumeration value="INOUT"/>
|
||||
* </restriction>
|
||||
* </simpleType>
|
||||
* </pre>
|
||||
*
|
||||
*/
|
||||
@XmlType(name = "web-param-mode")
|
||||
@XmlEnum
|
||||
public enum WebParamMode {
|
||||
|
||||
IN,
|
||||
OUT,
|
||||
INOUT;
|
||||
|
||||
public String value() {
|
||||
return name();
|
||||
}
|
||||
|
||||
public static WebParamMode fromValue(String v) {
|
||||
return valueOf(v);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,188 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element ref="{http://xmlns.oracle.com/webservices/jaxws-databinding}fault-action" maxOccurs="unbounded" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* <attribute name="input" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="output" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = {
|
||||
"faultAction"
|
||||
})
|
||||
@XmlRootElement(name = "action")
|
||||
public class XmlAction implements javax.xml.ws.Action {
|
||||
|
||||
@XmlElement(name = "fault-action")
|
||||
protected List<XmlFaultAction> faultAction;
|
||||
@XmlAttribute(name = "input")
|
||||
protected String input;
|
||||
@XmlAttribute(name = "output")
|
||||
protected String output;
|
||||
|
||||
/**
|
||||
* Gets the value of the faultAction property.
|
||||
*
|
||||
* <p>
|
||||
* This accessor method returns a reference to the live list,
|
||||
* not a snapshot. Therefore any modification you make to the
|
||||
* returned list will be present inside the JAXB object.
|
||||
* This is why there is not a <CODE>set</CODE> method for the faultAction property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getFaultAction().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link XmlFaultAction }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<XmlFaultAction> getFaultAction() {
|
||||
if (faultAction == null) {
|
||||
faultAction = new ArrayList<XmlFaultAction>();
|
||||
}
|
||||
return this.faultAction;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the input property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getInput() {
|
||||
return nullSafe(input);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the input property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setInput(String value) {
|
||||
this.input = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the output property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getOutput() {
|
||||
return nullSafe(output);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the output property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setOutput(String value) {
|
||||
this.output = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String input() {
|
||||
return nullSafe(input);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String output() {
|
||||
return nullSafe(output);
|
||||
}
|
||||
|
||||
@Override
|
||||
public javax.xml.ws.FaultAction[] fault() {
|
||||
return new javax.xml.ws.FaultAction[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.xml.ws.Action.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,116 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.ws.soap.AddressingFeature;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "addressing")
|
||||
public class XmlAddressing implements javax.xml.ws.soap.Addressing {
|
||||
|
||||
@XmlAttribute(name = "enabled")
|
||||
protected Boolean enabled;
|
||||
|
||||
@XmlAttribute(name = "required")
|
||||
protected Boolean required;
|
||||
|
||||
public Boolean getEnabled() {
|
||||
return enabled();
|
||||
}
|
||||
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
public Boolean getRequired() {
|
||||
return required();
|
||||
}
|
||||
|
||||
public void setRequired(Boolean required) {
|
||||
this.required = required;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean enabled() {
|
||||
return nullSafe(enabled, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean required() {
|
||||
return nullSafe(required, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AddressingFeature.Responses responses() {
|
||||
return AddressingFeature.Responses.ALL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.xml.ws.soap.Addressing.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,109 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "binding-type")
|
||||
public class XmlBindingType implements javax.xml.ws.BindingType {
|
||||
|
||||
@XmlAttribute(name = "value")
|
||||
protected String value;
|
||||
|
||||
/**
|
||||
* Gets the value of the value property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the value property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value() {
|
||||
return nullSafe(value);
|
||||
}
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.xml.ws.BindingType.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,145 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.findClass;
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="className" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "fault-action")
|
||||
public class XmlFaultAction implements javax.xml.ws.FaultAction {
|
||||
|
||||
@XmlAttribute(name = "className", required = true)
|
||||
protected String className;
|
||||
@XmlAttribute(name = "value")
|
||||
protected String value;
|
||||
|
||||
/**
|
||||
* Gets the value of the className property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the className property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setClassName(String value) {
|
||||
this.className = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the value property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getValue() {
|
||||
return nullSafe(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the value property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public Class<? extends Exception> className() {
|
||||
return (Class<Exception>) findClass(className);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String value() {
|
||||
return nullSafe(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.xml.ws.FaultAction.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="file" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "handler-chain")
|
||||
public class XmlHandlerChain implements javax.jws.HandlerChain {
|
||||
|
||||
@XmlAttribute(name = "file")
|
||||
protected String file;
|
||||
|
||||
/**
|
||||
* Gets the value of the file property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getFile() {
|
||||
return file;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the file property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setFile(String value) {
|
||||
this.file = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String file() {
|
||||
return nullSafe(file);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String name() {
|
||||
return ""; // deprecated, so let's ignore it ...
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.jws.HandlerChain.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,153 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.ws.soap.MTOM;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
|
||||
* <attribute name="threshold" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "mtom")
|
||||
public class XmlMTOM implements MTOM {
|
||||
|
||||
@XmlAttribute(name = "enabled")
|
||||
protected Boolean enabled;
|
||||
@XmlAttribute(name = "threshold")
|
||||
protected Integer threshold;
|
||||
|
||||
/**
|
||||
* Gets the value of the enabled property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public boolean isEnabled() {
|
||||
if (enabled == null) {
|
||||
return true;
|
||||
} else {
|
||||
return enabled;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the enabled property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public void setEnabled(Boolean value) {
|
||||
this.enabled = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the threshold property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Integer }
|
||||
*
|
||||
*/
|
||||
public int getThreshold() {
|
||||
if (threshold == null) {
|
||||
return 0;
|
||||
} else {
|
||||
return threshold;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the threshold property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Integer }
|
||||
*
|
||||
*/
|
||||
public void setThreshold(Integer value) {
|
||||
this.threshold = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean enabled() {
|
||||
return nullSafe(enabled, Boolean.TRUE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int threshold() {
|
||||
return nullSafe(threshold, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return MTOM.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "oneway")
|
||||
public class XmlOneway implements javax.jws.Oneway {
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.jws.Oneway.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,203 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="local-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="target-namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="class-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="part-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "request-wrapper")
|
||||
public class XmlRequestWrapper implements javax.xml.ws.RequestWrapper {
|
||||
|
||||
@XmlAttribute(name = "local-name")
|
||||
protected String localName;
|
||||
@XmlAttribute(name = "target-namespace")
|
||||
protected String targetNamespace;
|
||||
@XmlAttribute(name = "class-name")
|
||||
protected String className;
|
||||
@XmlAttribute(name = "part-name")
|
||||
protected String partName;
|
||||
|
||||
/**
|
||||
* Gets the value of the localName property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getLocalName() {
|
||||
if (localName == null) {
|
||||
return "";
|
||||
} else {
|
||||
return localName;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the localName property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setLocalName(String value) {
|
||||
this.localName = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the targetNamespace property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getTargetNamespace() {
|
||||
if (targetNamespace == null) {
|
||||
return "";
|
||||
} else {
|
||||
return targetNamespace;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the targetNamespace property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setTargetNamespace(String value) {
|
||||
this.targetNamespace = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the className property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getClassName() {
|
||||
if (className == null) {
|
||||
return "";
|
||||
} else {
|
||||
return className;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the className property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setClassName(String value) {
|
||||
this.className = value;
|
||||
}
|
||||
|
||||
public String getPartName() {
|
||||
return partName;
|
||||
}
|
||||
|
||||
public void setPartName(String partName) {
|
||||
this.partName = partName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String localName() {
|
||||
return nullSafe(localName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String targetNamespace() {
|
||||
return nullSafe(targetNamespace);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String className() {
|
||||
return nullSafe(className);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String partName() {
|
||||
return nullSafe(partName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.xml.ws.RequestWrapper.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,202 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="local-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="target-namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="class-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="part-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "response-wrapper")
|
||||
public class XmlResponseWrapper implements javax.xml.ws.ResponseWrapper {
|
||||
|
||||
@XmlAttribute(name = "local-name")
|
||||
protected String localName;
|
||||
@XmlAttribute(name = "target-namespace")
|
||||
protected String targetNamespace;
|
||||
@XmlAttribute(name = "class-name")
|
||||
protected String className;
|
||||
@XmlAttribute(name = "part-name")
|
||||
protected String partName;
|
||||
|
||||
/**
|
||||
* Gets the value of the localName property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getLocalName() {
|
||||
if (localName == null) {
|
||||
return "";
|
||||
} else {
|
||||
return localName;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the localName property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setLocalName(String value) {
|
||||
this.localName = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the targetNamespace property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getTargetNamespace() {
|
||||
if (targetNamespace == null) {
|
||||
return "";
|
||||
} else {
|
||||
return targetNamespace;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the targetNamespace property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setTargetNamespace(String value) {
|
||||
this.targetNamespace = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the className property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getClassName() {
|
||||
if (className == null) {
|
||||
return "";
|
||||
} else {
|
||||
return className;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the className property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setClassName(String value) {
|
||||
this.className = value;
|
||||
}
|
||||
|
||||
public String getPartName() {
|
||||
return partName;
|
||||
}
|
||||
|
||||
public void setPartName(String partName) {
|
||||
this.partName = partName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String localName() {
|
||||
return nullSafe(localName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String targetNamespace() {
|
||||
return nullSafe(targetNamespace);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String className() {
|
||||
return nullSafe(className);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String partName() {
|
||||
return nullSafe(partName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.xml.ws.ResponseWrapper.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,186 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="style" type="{http://xmlns.oracle.com/webservices/jaxws-databinding}soap-binding-style" default="DOCUMENT" />
|
||||
* <attribute name="use" type="{http://xmlns.oracle.com/webservices/jaxws-databinding}soap-binding-use" default="LITERAL" />
|
||||
* <attribute name="parameter-style" type="{http://xmlns.oracle.com/webservices/jaxws-databinding}soap-binding-parameter-style" default="WRAPPED" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "soap-binding")
|
||||
public class XmlSOAPBinding implements javax.jws.soap.SOAPBinding {
|
||||
|
||||
@XmlAttribute(name = "style")
|
||||
protected SoapBindingStyle style;
|
||||
@XmlAttribute(name = "use")
|
||||
protected SoapBindingUse use;
|
||||
@XmlAttribute(name = "parameter-style")
|
||||
protected SoapBindingParameterStyle parameterStyle;
|
||||
|
||||
/**
|
||||
* Gets the value of the style property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link SoapBindingStyle }
|
||||
*
|
||||
*/
|
||||
public SoapBindingStyle getStyle() {
|
||||
if (style == null) {
|
||||
return SoapBindingStyle.DOCUMENT;
|
||||
} else {
|
||||
return style;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the style property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link SoapBindingStyle }
|
||||
*
|
||||
*/
|
||||
public void setStyle(SoapBindingStyle value) {
|
||||
this.style = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the use property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link SoapBindingUse }
|
||||
*
|
||||
*/
|
||||
public SoapBindingUse getUse() {
|
||||
if (use == null) {
|
||||
return SoapBindingUse.LITERAL;
|
||||
} else {
|
||||
return use;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the use property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link SoapBindingUse }
|
||||
*
|
||||
*/
|
||||
public void setUse(SoapBindingUse value) {
|
||||
this.use = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the parameterStyle property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link SoapBindingParameterStyle }
|
||||
*
|
||||
*/
|
||||
public SoapBindingParameterStyle getParameterStyle() {
|
||||
if (parameterStyle == null) {
|
||||
return SoapBindingParameterStyle.WRAPPED;
|
||||
} else {
|
||||
return parameterStyle;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the parameterStyle property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link SoapBindingParameterStyle }
|
||||
*
|
||||
*/
|
||||
public void setParameterStyle(SoapBindingParameterStyle value) {
|
||||
this.parameterStyle = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Style style() {
|
||||
return nullSafe(style, Style.DOCUMENT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Use use() {
|
||||
return nullSafe(use, Use.LITERAL);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ParameterStyle parameterStyle() {
|
||||
return nullSafe(parameterStyle, ParameterStyle.WRAPPED);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.jws.soap.SOAPBinding.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.ws.Service;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" default="PAYLOAD" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "service-mode")
|
||||
public class XmlServiceMode implements javax.xml.ws.ServiceMode {
|
||||
|
||||
@XmlAttribute(name = "value")
|
||||
protected String value;
|
||||
|
||||
/**
|
||||
* Gets the value of the value property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getValue() {
|
||||
if (value == null) {
|
||||
return "PAYLOAD";
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the value property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Service.Mode value() {
|
||||
return Service.Mode.valueOf(nullSafe(value, "PAYLOAD"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.xml.ws.ServiceMode.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "web-endpoint")
|
||||
public class XmlWebEndpoint implements javax.xml.ws.WebEndpoint {
|
||||
|
||||
@XmlAttribute(name = "name")
|
||||
protected String name;
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String name() {
|
||||
return nullSafe(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.xml.ws.WebEndpoint.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,183 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="targetNamespace" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="faultBean" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "web-fault")
|
||||
public class XmlWebFault implements javax.xml.ws.WebFault {
|
||||
|
||||
@XmlAttribute(name = "name")
|
||||
protected String name;
|
||||
@XmlAttribute(name = "targetNamespace")
|
||||
protected String targetNamespace;
|
||||
@XmlAttribute(name = "faultBean")
|
||||
protected String faultBean;
|
||||
@XmlAttribute(name = "messageName")
|
||||
protected String messageName;
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the targetNamespace property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getTargetNamespace() {
|
||||
return targetNamespace;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the targetNamespace property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setTargetNamespace(String value) {
|
||||
this.targetNamespace = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the faultBean property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getFaultBean() {
|
||||
return faultBean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the faultBean property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setFaultBean(String value) {
|
||||
this.faultBean = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String name() {
|
||||
return nullSafe(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String targetNamespace() {
|
||||
return nullSafe(targetNamespace);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String faultBean() {
|
||||
return nullSafe(faultBean);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String messageName() {
|
||||
return nullSafe(messageName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.xml.ws.WebFault.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,187 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="action" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="exclude" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
|
||||
* <attribute name="operation-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "web-method")
|
||||
public class XmlWebMethod implements javax.jws.WebMethod {
|
||||
|
||||
@XmlAttribute(name = "action")
|
||||
protected String action;
|
||||
@XmlAttribute(name = "exclude")
|
||||
protected Boolean exclude;
|
||||
@XmlAttribute(name = "operation-name")
|
||||
protected String operationName;
|
||||
|
||||
/**
|
||||
* Gets the value of the action property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getAction() {
|
||||
if (action == null) {
|
||||
return "";
|
||||
} else {
|
||||
return action;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the action property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setAction(String value) {
|
||||
this.action = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the exclude property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public boolean isExclude() {
|
||||
if (exclude == null) {
|
||||
return false;
|
||||
} else {
|
||||
return exclude;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the exclude property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public void setExclude(Boolean value) {
|
||||
this.exclude = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the operationName property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getOperationName() {
|
||||
if (operationName == null) {
|
||||
return "";
|
||||
} else {
|
||||
return operationName;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the operationName property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setOperationName(String value) {
|
||||
this.operationName = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String operationName() {
|
||||
return nullSafe(operationName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String action() {
|
||||
return nullSafe(action);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean exclude() {
|
||||
return nullSafe(exclude, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.jws.WebMethod.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,258 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="header" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
|
||||
* <attribute name="mode" type="{http://xmlns.oracle.com/webservices/jaxws-databinding}web-param-mode" default="IN" />
|
||||
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="part-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="target-namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "web-param")
|
||||
public class XmlWebParam implements javax.jws.WebParam {
|
||||
|
||||
@XmlAttribute(name = "header")
|
||||
protected Boolean header;
|
||||
@XmlAttribute(name = "mode")
|
||||
protected WebParamMode mode;
|
||||
@XmlAttribute(name = "name")
|
||||
protected String name;
|
||||
@XmlAttribute(name = "part-name")
|
||||
protected String partName;
|
||||
@XmlAttribute(name = "target-namespace")
|
||||
protected String targetNamespace;
|
||||
|
||||
/**
|
||||
* Gets the value of the header property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public boolean isHeader() {
|
||||
if (header == null) {
|
||||
return false;
|
||||
} else {
|
||||
return header;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the header property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public void setHeader(Boolean value) {
|
||||
this.header = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the mode property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link WebParamMode }
|
||||
*
|
||||
*/
|
||||
public WebParamMode getMode() {
|
||||
if (mode == null) {
|
||||
return WebParamMode.IN;
|
||||
} else {
|
||||
return mode;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the mode property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link WebParamMode }
|
||||
*
|
||||
*/
|
||||
public void setMode(WebParamMode value) {
|
||||
this.mode = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
if (name == null) {
|
||||
return "";
|
||||
} else {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the partName property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getPartName() {
|
||||
if (partName == null) {
|
||||
return "";
|
||||
} else {
|
||||
return partName;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the partName property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setPartName(String value) {
|
||||
this.partName = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the targetNamespace property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getTargetNamespace() {
|
||||
if (targetNamespace == null) {
|
||||
return "";
|
||||
} else {
|
||||
return targetNamespace;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the targetNamespace property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setTargetNamespace(String value) {
|
||||
this.targetNamespace = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String name() {
|
||||
return nullSafe(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String partName() {
|
||||
return nullSafe(partName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String targetNamespace() {
|
||||
return nullSafe(targetNamespace);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Mode mode() {
|
||||
return nullSafe(mode, Mode.IN);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean header() {
|
||||
return nullSafe(header, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.jws.WebParam.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,222 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="header" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
|
||||
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="part-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="target-namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "web-result")
|
||||
public class XmlWebResult implements javax.jws.WebResult {
|
||||
|
||||
@XmlAttribute(name = "header")
|
||||
protected Boolean header;
|
||||
@XmlAttribute(name = "name")
|
||||
protected String name;
|
||||
@XmlAttribute(name = "part-name")
|
||||
protected String partName;
|
||||
@XmlAttribute(name = "target-namespace")
|
||||
protected String targetNamespace;
|
||||
|
||||
/**
|
||||
* Gets the value of the header property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public boolean isHeader() {
|
||||
if (header == null) {
|
||||
return false;
|
||||
} else {
|
||||
return header;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the header property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public void setHeader(Boolean value) {
|
||||
this.header = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
if (name == null) {
|
||||
return "";
|
||||
} else {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the partName property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getPartName() {
|
||||
if (partName == null) {
|
||||
return "";
|
||||
} else {
|
||||
return partName;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the partName property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setPartName(String value) {
|
||||
this.partName = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the targetNamespace property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getTargetNamespace() {
|
||||
if (targetNamespace == null) {
|
||||
return "";
|
||||
} else {
|
||||
return targetNamespace;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the targetNamespace property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setTargetNamespace(String value) {
|
||||
this.targetNamespace = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String name() {
|
||||
return nullSafe(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String partName() {
|
||||
return nullSafe(partName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String targetNamespace() {
|
||||
return nullSafe(targetNamespace);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean header() {
|
||||
return nullSafe(header, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.jws.WebResult.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,296 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="endpoint-interface" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="port-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="service-name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="target-namespace" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* <attribute name="wsdl-location" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "web-service")
|
||||
public class XmlWebService implements javax.jws.WebService {
|
||||
|
||||
@XmlAttribute(name = "endpoint-interface")
|
||||
protected String endpointInterface;
|
||||
@XmlAttribute(name = "name")
|
||||
protected String name;
|
||||
@XmlAttribute(name = "port-name")
|
||||
protected String portName;
|
||||
@XmlAttribute(name = "service-name")
|
||||
protected String serviceName;
|
||||
@XmlAttribute(name = "target-namespace")
|
||||
protected String targetNamespace;
|
||||
@XmlAttribute(name = "wsdl-location")
|
||||
protected String wsdlLocation;
|
||||
|
||||
/**
|
||||
* Gets the value of the endpointInterface property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getEndpointInterface() {
|
||||
if (endpointInterface == null) {
|
||||
return "";
|
||||
} else {
|
||||
return endpointInterface;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the endpointInterface property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setEndpointInterface(String value) {
|
||||
this.endpointInterface = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
if (name == null) {
|
||||
return "";
|
||||
} else {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the portName property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getPortName() {
|
||||
if (portName == null) {
|
||||
return "";
|
||||
} else {
|
||||
return portName;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the portName property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setPortName(String value) {
|
||||
this.portName = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the serviceName property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getServiceName() {
|
||||
if (serviceName == null) {
|
||||
return "";
|
||||
} else {
|
||||
return serviceName;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the serviceName property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setServiceName(String value) {
|
||||
this.serviceName = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the targetNamespace property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getTargetNamespace() {
|
||||
if (targetNamespace == null) {
|
||||
return "";
|
||||
} else {
|
||||
return targetNamespace;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the targetNamespace property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setTargetNamespace(String value) {
|
||||
this.targetNamespace = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the wsdlLocation property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getWsdlLocation() {
|
||||
if (wsdlLocation == null) {
|
||||
return "";
|
||||
} else {
|
||||
return wsdlLocation;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the wsdlLocation property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setWsdlLocation(String value) {
|
||||
this.wsdlLocation = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String name() {
|
||||
return nullSafe(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String targetNamespace() {
|
||||
return nullSafe(targetNamespace);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String serviceName() {
|
||||
return nullSafe(serviceName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String portName() {
|
||||
return nullSafe(portName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String wsdlLocation() {
|
||||
return nullSafe(wsdlLocation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String endpointInterface() {
|
||||
return nullSafe(endpointInterface);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.jws.WebService.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,174 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="targetNamespace" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="wsdlLocation" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "web-service-client")
|
||||
public class XmlWebServiceClient implements javax.xml.ws.WebServiceClient {
|
||||
|
||||
@XmlAttribute(name = "name")
|
||||
protected String name;
|
||||
@XmlAttribute(name = "targetNamespace")
|
||||
protected String targetNamespace;
|
||||
@XmlAttribute(name = "wsdlLocation")
|
||||
protected String wsdlLocation;
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the targetNamespace property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getTargetNamespace() {
|
||||
return targetNamespace;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the targetNamespace property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setTargetNamespace(String value) {
|
||||
this.targetNamespace = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the wsdlLocation property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getWsdlLocation() {
|
||||
return wsdlLocation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the wsdlLocation property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setWsdlLocation(String value) {
|
||||
this.wsdlLocation = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String name() {
|
||||
return nullSafe(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String targetNamespace() {
|
||||
return nullSafe(targetNamespace);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String wsdlLocation() {
|
||||
return nullSafe(wsdlLocation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.xml.ws.WebServiceClient.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,206 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="targetNamespace" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="serviceName" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="portName" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="wsdlLocation" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "web-service-provider")
|
||||
public class XmlWebServiceProvider implements javax.xml.ws.WebServiceProvider {
|
||||
|
||||
@XmlAttribute(name = "targetNamespace")
|
||||
protected String targetNamespace;
|
||||
@XmlAttribute(name = "serviceName")
|
||||
protected String serviceName;
|
||||
@XmlAttribute(name = "portName")
|
||||
protected String portName;
|
||||
@XmlAttribute(name = "wsdlLocation")
|
||||
protected String wsdlLocation;
|
||||
|
||||
/**
|
||||
* Gets the value of the targetNamespace property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getTargetNamespace() {
|
||||
return targetNamespace;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the targetNamespace property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setTargetNamespace(String value) {
|
||||
this.targetNamespace = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the serviceName property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getServiceName() {
|
||||
return serviceName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the serviceName property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setServiceName(String value) {
|
||||
this.serviceName = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the portName property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getPortName() {
|
||||
return portName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the portName property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setPortName(String value) {
|
||||
this.portName = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the wsdlLocation property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getWsdlLocation() {
|
||||
return wsdlLocation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the wsdlLocation property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setWsdlLocation(String value) {
|
||||
this.wsdlLocation = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String wsdlLocation() {
|
||||
return nullSafe(wsdlLocation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String serviceName() {
|
||||
return nullSafe(serviceName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String targetNamespace() {
|
||||
return nullSafe(targetNamespace);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String portName() {
|
||||
return nullSafe(portName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.xml.ws.WebServiceProvider.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,262 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.ws.Service;
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.findClass;
|
||||
import static com.oracle.xmlns.internal.webservices.jaxws_databinding.Util.nullSafe;
|
||||
|
||||
|
||||
/**
|
||||
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
|
||||
* to implement appropriate Annotation
|
||||
*
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="mappedName" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="wsdlLocation" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
@XmlRootElement(name = "web-service-ref")
|
||||
public class XmlWebServiceRef implements javax.xml.ws.WebServiceRef {
|
||||
|
||||
@XmlAttribute(name = "name")
|
||||
protected String name;
|
||||
@XmlAttribute(name = "type")
|
||||
protected String type;
|
||||
@XmlAttribute(name = "mappedName")
|
||||
protected String mappedName;
|
||||
@XmlAttribute(name = "value")
|
||||
protected String value;
|
||||
@XmlAttribute(name = "wsdlLocation")
|
||||
protected String wsdlLocation;
|
||||
@XmlAttribute(name = "lookup")
|
||||
protected String lookup;
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the type property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the type property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setType(String value) {
|
||||
this.type = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the mappedName property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getMappedName() {
|
||||
return mappedName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the mappedName property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setMappedName(String value) {
|
||||
this.mappedName = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the value property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the value property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the wsdlLocation property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getWsdlLocation() {
|
||||
return wsdlLocation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the wsdlLocation property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setWsdlLocation(String value) {
|
||||
this.wsdlLocation = value;
|
||||
}
|
||||
|
||||
public String getLookup() {
|
||||
return lookup;
|
||||
}
|
||||
|
||||
public void setLookup(String lookup) {
|
||||
this.lookup = lookup;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String name() {
|
||||
return nullSafe(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<?> type() {
|
||||
if (type == null) {
|
||||
return Object.class;
|
||||
}
|
||||
return findClass(type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String mappedName() {
|
||||
return nullSafe(mappedName);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public Class<? extends Service> value() {
|
||||
if (value == null) {
|
||||
return Service.class;
|
||||
}
|
||||
return (Class<Service>) findClass(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String wsdlLocation() {
|
||||
return nullSafe(wsdlLocation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String lookup() {
|
||||
return nullSafe(lookup);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return javax.xml.ws.WebServiceRef.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
/*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
||||
*
|
||||
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* The contents of this file are subject to the terms of either the GNU
|
||||
* General Public License Version 2 only ("GPL") or the Common Development
|
||||
* and Distribution License("CDDL") (collectively, the "License"). You
|
||||
* may not use this file except in compliance with the License. You can
|
||||
* obtain a copy of the License at
|
||||
* http://glassfish.java.net/public/CDDL+GPL_1_1.html
|
||||
* or packager/legal/LICENSE.txt. See the License for the specific
|
||||
* language governing permissions and limitations under the License.
|
||||
*
|
||||
* When distributing the software, include this License Header Notice in each
|
||||
* file and include the License file at packager/legal/LICENSE.txt.
|
||||
*
|
||||
* GPL Classpath Exception:
|
||||
* Oracle designates this particular file as subject to the "Classpath"
|
||||
* exception as provided by Oracle in the GPL Version 2 section of the License
|
||||
* file that accompanied this code.
|
||||
*
|
||||
* Modifications:
|
||||
* If applicable, add the following below the License Header, with the fields
|
||||
* enclosed by brackets [] replaced by your own identifying information:
|
||||
* "Portions Copyright [year] [name of copyright owner]"
|
||||
*
|
||||
* Contributor(s):
|
||||
* If you wish your version of this file to be governed by only the CDDL or
|
||||
* only the GPL Version 2, indicate your decision by adding "[Contributor]
|
||||
* elects to include this software in this distribution under the [CDDL or GPL
|
||||
* Version 2] license." If you don't indicate a single choice of license, a
|
||||
* recipient has the option to distribute your version of this file under
|
||||
* either the CDDL, the GPL Version 2 or to extend the choice of license to
|
||||
* its licensees as provided above. However, if you add GPL Version 2 code
|
||||
* and therefore, elected the GPL Version 2 license, then the option applies
|
||||
* only if the new code is made subject to such option by the copyright
|
||||
* holder.
|
||||
*/
|
||||
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6-SNAPSHOT
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.03.21 at 10:57:01 AM CET
|
||||
//
|
||||
|
||||
@javax.xml.bind.annotation.XmlSchema(namespace = "http://xmlns.oracle.com/webservices/jaxws-databinding", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
|
||||
package com.oracle.xmlns.internal.webservices.jaxws_databinding;
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -59,5 +59,5 @@ public interface Localizable {
|
||||
* <p>
|
||||
* Use of "new" is to create an unique instance.
|
||||
*/
|
||||
public static final String NOT_LOCALIZABLE = new String("\u0000");
|
||||
public static final String NOT_LOCALIZABLE = "\u0000";
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,6 +25,8 @@
|
||||
|
||||
package com.sun.istack.internal.localization;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author WS Development Team
|
||||
*/
|
||||
@ -47,7 +49,7 @@ public final class LocalizableMessage implements Localizable {
|
||||
}
|
||||
|
||||
public Object[] getArguments() {
|
||||
return _args;
|
||||
return Arrays.copyOf(_args, _args.length);
|
||||
}
|
||||
|
||||
public String getResourceBundleName() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -88,8 +88,14 @@ public class Localizer {
|
||||
alternateBundleName,
|
||||
_locale);
|
||||
} catch (MissingResourceException e2) {
|
||||
// give up
|
||||
return getDefaultMessage(l);
|
||||
//try context classloader
|
||||
try {
|
||||
bundle = ResourceBundle.getBundle(bundlename, _locale, Thread.currentThread().getContextClassLoader());
|
||||
} catch (MissingResourceException e3) {
|
||||
// give up
|
||||
return getDefaultMessage(l);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,7 +23,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package com.sun.xml.internal.ws.util.localization;
|
||||
package com.sun.istack.internal.localization;
|
||||
|
||||
/**
|
||||
* {@link Localizable} that wraps a non-localizable string.
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,7 +31,7 @@ import java.util.StringTokenizer;
|
||||
import java.util.logging.Level;
|
||||
|
||||
/**
|
||||
* This is a helper class that provides some conveniece methods wrapped around the
|
||||
* This is a helper class that provides some convenience methods wrapped around the
|
||||
* standard {@link java.util.logging.Logger} interface.
|
||||
*
|
||||
* The class also makes sure that logger names of each Metro subsystem are consistent
|
||||
@ -129,6 +129,20 @@ public class Logger {
|
||||
logger.logp(level, componentClassName, getCallerMethodName(), message);
|
||||
}
|
||||
|
||||
public void log(final Level level, final String message, Object param1) {
|
||||
if (!this.logger.isLoggable(level)) {
|
||||
return;
|
||||
}
|
||||
logger.logp(level, componentClassName, getCallerMethodName(), message, param1);
|
||||
}
|
||||
|
||||
public void log(final Level level, final String message, Object[] params) {
|
||||
if (!this.logger.isLoggable(level)) {
|
||||
return;
|
||||
}
|
||||
logger.logp(level, componentClassName, getCallerMethodName(), message, params);
|
||||
}
|
||||
|
||||
public void log(final Level level, final String message, final Throwable thrown) {
|
||||
if (!this.logger.isLoggable(level)) {
|
||||
return;
|
||||
@ -143,6 +157,13 @@ public class Logger {
|
||||
logger.logp(Level.FINEST, componentClassName, getCallerMethodName(), message);
|
||||
}
|
||||
|
||||
public void finest(final String message, Object[] params) {
|
||||
if (!this.logger.isLoggable(Level.FINEST)) {
|
||||
return;
|
||||
}
|
||||
logger.logp(Level.FINEST, componentClassName, getCallerMethodName(), message, params);
|
||||
}
|
||||
|
||||
public void finest(final String message, final Throwable thrown) {
|
||||
if (!this.logger.isLoggable(Level.FINEST)) {
|
||||
return;
|
||||
@ -157,6 +178,13 @@ public class Logger {
|
||||
logger.logp(Level.FINER, componentClassName, getCallerMethodName(), message);
|
||||
}
|
||||
|
||||
public void finer(final String message, Object[] params) {
|
||||
if (!this.logger.isLoggable(Level.FINER)) {
|
||||
return;
|
||||
}
|
||||
logger.logp(Level.FINER, componentClassName, getCallerMethodName(), message, params);
|
||||
}
|
||||
|
||||
public void finer(final String message, final Throwable thrown) {
|
||||
if (!this.logger.isLoggable(Level.FINER)) {
|
||||
return;
|
||||
@ -185,6 +213,13 @@ public class Logger {
|
||||
logger.logp(Level.INFO, componentClassName, getCallerMethodName(), message);
|
||||
}
|
||||
|
||||
public void info(final String message, Object[] params) {
|
||||
if (!this.logger.isLoggable(Level.INFO)) {
|
||||
return;
|
||||
}
|
||||
logger.logp(Level.INFO, componentClassName, getCallerMethodName(), message, params);
|
||||
}
|
||||
|
||||
public void info(final String message, final Throwable thrown) {
|
||||
if (!this.logger.isLoggable(Level.INFO)) {
|
||||
return;
|
||||
@ -199,6 +234,13 @@ public class Logger {
|
||||
logger.logp(Level.CONFIG, componentClassName, getCallerMethodName(), message);
|
||||
}
|
||||
|
||||
public void config(final String message, Object[] params) {
|
||||
if (!this.logger.isLoggable(Level.CONFIG)) {
|
||||
return;
|
||||
}
|
||||
logger.logp(Level.CONFIG, componentClassName, getCallerMethodName(), message, params);
|
||||
}
|
||||
|
||||
public void config(final String message, final Throwable thrown) {
|
||||
if (!this.logger.isLoggable(Level.CONFIG)) {
|
||||
return;
|
||||
@ -213,6 +255,13 @@ public class Logger {
|
||||
logger.logp(Level.WARNING, componentClassName, getCallerMethodName(), message);
|
||||
}
|
||||
|
||||
public void warning(final String message, Object[] params) {
|
||||
if (!this.logger.isLoggable(Level.WARNING)) {
|
||||
return;
|
||||
}
|
||||
logger.logp(Level.WARNING, componentClassName, getCallerMethodName(), message, params);
|
||||
}
|
||||
|
||||
public void warning(final String message, final Throwable thrown) {
|
||||
if (!this.logger.isLoggable(Level.WARNING)) {
|
||||
return;
|
||||
@ -227,6 +276,13 @@ public class Logger {
|
||||
logger.logp(Level.SEVERE, componentClassName, getCallerMethodName(), message);
|
||||
}
|
||||
|
||||
public void severe(final String message, Object[] params) {
|
||||
if (!this.logger.isLoggable(Level.SEVERE)) {
|
||||
return;
|
||||
}
|
||||
logger.logp(Level.SEVERE, componentClassName, getCallerMethodName(), message, params);
|
||||
}
|
||||
|
||||
public void severe(final String message, final Throwable thrown) {
|
||||
if (!this.logger.isLoggable(Level.SEVERE)) {
|
||||
return;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -0,0 +1,324 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package com.sun.istack.internal.tools;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.lang.reflect.Field;
|
||||
import java.net.Authenticator;
|
||||
import java.net.Authenticator.RequestorType;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.PasswordAuthentication;
|
||||
import java.net.URL;
|
||||
import java.net.URLDecoder;
|
||||
import java.net.URLEncoder;
|
||||
import java.security.AccessController;
|
||||
import java.security.PrivilegedAction;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.regex.Pattern;
|
||||
import org.xml.sax.Locator;
|
||||
import org.xml.sax.helpers.LocatorImpl;
|
||||
|
||||
/**
|
||||
* @author Vivek Pandey
|
||||
* @author Lukas Jungmann
|
||||
*/
|
||||
public class DefaultAuthenticator extends Authenticator {
|
||||
|
||||
private static DefaultAuthenticator instance;
|
||||
private static Authenticator systemAuthenticator = getCurrentAuthenticator();
|
||||
private String proxyUser;
|
||||
private String proxyPasswd;
|
||||
private final List<AuthInfo> authInfo = new ArrayList<AuthInfo>();
|
||||
private static int counter = 0;
|
||||
|
||||
DefaultAuthenticator() {
|
||||
//try undocumented but often used properties
|
||||
if (System.getProperty("http.proxyUser") != null) {
|
||||
proxyUser = System.getProperty("http.proxyUser");
|
||||
} else {
|
||||
proxyUser = System.getProperty("proxyUser");
|
||||
}
|
||||
if (System.getProperty("http.proxyPassword") != null) {
|
||||
proxyPasswd = System.getProperty("http.proxyPassword");
|
||||
} else {
|
||||
proxyPasswd = System.getProperty("proxyPassword");
|
||||
}
|
||||
}
|
||||
|
||||
public static synchronized DefaultAuthenticator getAuthenticator() {
|
||||
if (instance == null) {
|
||||
instance = new DefaultAuthenticator();
|
||||
Authenticator.setDefault(instance);
|
||||
}
|
||||
counter++;
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static synchronized void reset() {
|
||||
--counter;
|
||||
if (instance != null && counter == 0) {
|
||||
Authenticator.setDefault(systemAuthenticator);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected PasswordAuthentication getPasswordAuthentication() {
|
||||
//If user sets proxy user and passwd and the RequestType is from proxy server then create
|
||||
// PasswordAuthentication using proxyUser and proxyPasswd;
|
||||
if ((getRequestorType() == RequestorType.PROXY) && proxyUser != null && proxyPasswd != null) {
|
||||
return new PasswordAuthentication(proxyUser, proxyPasswd.toCharArray());
|
||||
}
|
||||
for (AuthInfo auth : authInfo) {
|
||||
if (auth.matchingHost(getRequestingURL())) {
|
||||
return new PasswordAuthentication(auth.getUser(), auth.getPassword().toCharArray());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Proxy authorization string in form of username:password.
|
||||
*
|
||||
* @param proxyAuth
|
||||
*/
|
||||
public void setProxyAuth(String proxyAuth) {
|
||||
if (proxyAuth == null) {
|
||||
this.proxyUser = null;
|
||||
this.proxyPasswd = null;
|
||||
} else {
|
||||
int i = proxyAuth.indexOf(':');
|
||||
if (i < 0) {
|
||||
this.proxyUser = proxyAuth;
|
||||
this.proxyPasswd = "";
|
||||
} else if (i == 0) {
|
||||
this.proxyUser = "";
|
||||
this.proxyPasswd = proxyAuth.substring(1);
|
||||
} else {
|
||||
this.proxyUser = proxyAuth.substring(0, i);
|
||||
this.proxyPasswd = proxyAuth.substring(i + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setAuth(File f, Receiver l) {
|
||||
Receiver listener = l == null ? new DefaultRImpl() : l;
|
||||
BufferedReader in = null;
|
||||
FileInputStream fi = null;
|
||||
InputStreamReader is = null;
|
||||
try {
|
||||
String text;
|
||||
LocatorImpl locator = new LocatorImpl();
|
||||
locator.setSystemId(f.getAbsolutePath());
|
||||
try {
|
||||
fi = new FileInputStream(f);
|
||||
is = new InputStreamReader(fi, "UTF-8");
|
||||
in = new BufferedReader(is);
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
listener.onError(e, locator);
|
||||
return;
|
||||
} catch (FileNotFoundException e) {
|
||||
listener.onError(e, locator);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
int lineno = 1;
|
||||
locator.setSystemId(f.getCanonicalPath());
|
||||
while ((text = in.readLine()) != null) {
|
||||
locator.setLineNumber(lineno++);
|
||||
//ignore empty lines and treat those starting with '#' as comments
|
||||
if ("".equals(text.trim()) || text.startsWith("#")) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
AuthInfo ai = parseLine(text);
|
||||
authInfo.add(ai);
|
||||
} catch (Exception e) {
|
||||
listener.onParsingError(text, locator);
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
listener.onError(e, locator);
|
||||
Logger.getLogger(DefaultAuthenticator.class.getName()).log(Level.SEVERE, e.getMessage(), e);
|
||||
}
|
||||
} finally {
|
||||
try {
|
||||
if (in != null) {
|
||||
in.close();
|
||||
}
|
||||
if (is != null) {
|
||||
is.close();
|
||||
}
|
||||
if (fi != null) {
|
||||
fi.close();
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
Logger.getLogger(DefaultAuthenticator.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private AuthInfo parseLine(String text) throws Exception {
|
||||
URL url;
|
||||
try {
|
||||
url = new URL(text);
|
||||
} catch (MalformedURLException mue) {
|
||||
//possible cause of this can be that password contains
|
||||
//character which has to be encoded in URL,
|
||||
//such as '@', ')', '#' and few others
|
||||
//so try to recreate the URL with encoded string
|
||||
//between 2nd ':' and last '@'
|
||||
int i = text.indexOf(':', text.indexOf(':') + 1) + 1;
|
||||
int j = text.lastIndexOf('@');
|
||||
String encodedUrl =
|
||||
text.substring(0, i)
|
||||
+ URLEncoder.encode(text.substring(i, j), "UTF-8")
|
||||
+ text.substring(j);
|
||||
url = new URL(encodedUrl);
|
||||
}
|
||||
|
||||
String authinfo = url.getUserInfo();
|
||||
|
||||
if (authinfo != null) {
|
||||
int i = authinfo.indexOf(':');
|
||||
|
||||
if (i >= 0) {
|
||||
String user = authinfo.substring(0, i);
|
||||
String password = authinfo.substring(i + 1);
|
||||
return new AuthInfo(
|
||||
new URL(url.getProtocol(), url.getHost(), url.getPort(), url.getFile()),
|
||||
user, URLDecoder.decode(password, "UTF-8"));
|
||||
}
|
||||
}
|
||||
throw new Exception();
|
||||
}
|
||||
|
||||
static Authenticator getCurrentAuthenticator() {
|
||||
final Field f = getTheAuthenticator();
|
||||
if (f == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
try {
|
||||
AccessController.doPrivileged(new PrivilegedAction<Void>() {
|
||||
@Override
|
||||
public Void run() {
|
||||
f.setAccessible(true);
|
||||
return null;
|
||||
}
|
||||
});
|
||||
return (Authenticator) f.get(null);
|
||||
} catch (Exception ex) {
|
||||
return null;
|
||||
} finally {
|
||||
AccessController.doPrivileged(new PrivilegedAction<Void>() {
|
||||
@Override
|
||||
public Void run() {
|
||||
f.setAccessible(false);
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private static Field getTheAuthenticator() {
|
||||
try {
|
||||
return Authenticator.class.getDeclaredField("theAuthenticator");
|
||||
} catch (Exception ex) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static interface Receiver {
|
||||
|
||||
void onParsingError(String line, Locator loc);
|
||||
|
||||
void onError(Exception e, Locator loc);
|
||||
}
|
||||
|
||||
private static class DefaultRImpl implements Receiver {
|
||||
|
||||
@Override
|
||||
public void onParsingError(String line, Locator loc) {
|
||||
System.err.println(getLocationString(loc) + ": " + line);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Exception e, Locator loc) {
|
||||
System.err.println(getLocationString(loc) + ": " + e.getMessage());
|
||||
Logger.getLogger(DefaultAuthenticator.class.getName()).log(Level.SEVERE, e.getMessage(), e);
|
||||
}
|
||||
|
||||
private String getLocationString(Locator l) {
|
||||
return "[" + l.getSystemId() + "#" + l.getLineNumber() + "]";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents authorization information needed by
|
||||
* {@link DefaultAuthenticator} to authenticate access to remote resources.
|
||||
*
|
||||
* @author Vivek Pandey
|
||||
* @author Lukas Jungmann
|
||||
*/
|
||||
final static class AuthInfo {
|
||||
|
||||
private final String user;
|
||||
private final String password;
|
||||
private final Pattern urlPattern;
|
||||
|
||||
public AuthInfo(URL url, String user, String password) {
|
||||
String u = url.toExternalForm().replaceFirst("\\?", "\\\\?");
|
||||
this.urlPattern = Pattern.compile(u.replace("*", ".*"), Pattern.CASE_INSENSITIVE);
|
||||
this.user = user;
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getUser() {
|
||||
return user;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if the requesting host and port are associated with this
|
||||
* {@link AuthInfo}
|
||||
*/
|
||||
public boolean matchingHost(URL requestingURL) {
|
||||
return urlPattern.matcher(requestingURL.toExternalForm()).matches();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -72,6 +72,19 @@ class SecureLoader {
|
||||
}
|
||||
}
|
||||
|
||||
static ClassLoader getParentClassLoader(final ClassLoader cl) {
|
||||
if (System.getSecurityManager() == null) {
|
||||
return cl.getParent();
|
||||
} else {
|
||||
return (ClassLoader) java.security.AccessController.doPrivileged(
|
||||
new java.security.PrivilegedAction() {
|
||||
public java.lang.Object run() {
|
||||
return cl.getParent();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
static void setContextClassLoader(final ClassLoader cl) {
|
||||
if (System.getSecurityManager() == null) {
|
||||
Thread.currentThread().setContextClassLoader(cl);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.amx;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.amx;
|
||||
|
||||
import javax.management.ObjectName;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.amx;
|
||||
|
||||
import javax.management.MBeanServerConnection;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.amx;
|
||||
|
||||
import javax.management.ObjectName;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.amx;
|
||||
|
||||
import java.util.Set;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,10 +23,9 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.arc;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Taxonomy values.
|
||||
See http://opensolaris.org/os/community/arc/policies/interface-taxonomy/
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,8 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.arc;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -22,10 +22,8 @@
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.probe.provider;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,8 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.probe.provider;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,8 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.probe.provider;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,8 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.probe.provider;
|
||||
|
||||
import java.util.Vector;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,8 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.probe.provider;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,6 +24,7 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.probe.provider.annotations;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,8 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.probe.provider.annotations;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,6 +24,7 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.probe.provider.annotations;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,6 +24,7 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.probe.provider.annotations;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,8 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* AverageRangeStatistic.java
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,8 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.statistics;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.statistics;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,8 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.statistics;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,8 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.statistics;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,8 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.statistics;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,8 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.statistics;
|
||||
|
||||
public interface Stats {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,6 +23,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.org.glassfish.external.statistics;
|
||||
|
||||
/**
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user