You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by jk...@apache.org on 2008/02/04 08:03:24 UTC

svn commit: r618180 - in /webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions: WSDLExtensionConstants.java http/HTTPConstants.java rpc/RPCConstants.java soap/SOAPConstants.java

Author: jkaputin
Date: Sun Feb  3 23:03:21 2008
New Revision: 618180

URL: http://svn.apache.org/viewvc?rev=618180&view=rev
Log:
WODEN-47
Initial commit of new extension constants files
(moved from 'internal' packages to API). 

Added:
    webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/WSDLExtensionConstants.java   (with props)
    webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/http/HTTPConstants.java   (with props)
    webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/rpc/RPCConstants.java   (with props)
    webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/soap/SOAPConstants.java   (with props)

Added: webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/WSDLExtensionConstants.java
URL: http://svn.apache.org/viewvc/webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/WSDLExtensionConstants.java?rev=618180&view=auto
==============================================================================
--- webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/WSDLExtensionConstants.java (added)
+++ webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/WSDLExtensionConstants.java Sun Feb  3 23:03:21 2008
@@ -0,0 +1,43 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0 
+ * 
+ * Unless required by applicable law or agreed to in writing, software 
+ * distributed under the License is distributed on an "AS IS" BASIS, 
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+ * See the License for the specific language governing permissions and 
+ * limitations under the License.
+ */
+package org.apache.woden.wsdl20.extensions;
+
+import java.net.URI;
+
+import javax.xml.namespace.QName;
+
+
+public class WSDLExtensionConstants {
+
+    // Extension namespace Strings for extensions defined by WSDL 2.0
+    public static final String NS_STRING_WSDL_EXTENSIONS = "http://www.w3.org/ns/wsdl-extensions".intern();        
+
+    // Extension namespace URIs for extensions defined by WSDL 2.0
+    public static final URI NS_URI_WSDL_EXTENSIONS = URI.create(NS_STRING_WSDL_EXTENSIONS);
+    
+    // Extension namespace prefixes
+    public static final String PFX_WSDLX = "wsdlx";
+
+    // Extension attribute names
+    public static final String ATTR_SAFE = "safe";
+    
+    // Extension attribute QNames
+    public static final QName Q_ATTR_SAFE = new QName(NS_STRING_WSDL_EXTENSIONS, ATTR_SAFE, PFX_WSDLX);
+    
+    // Extension property names.
+    public static final String PROP_SAFE = "safe";
+}

Propchange: webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/WSDLExtensionConstants.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/http/HTTPConstants.java
URL: http://svn.apache.org/viewvc/webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/http/HTTPConstants.java?rev=618180&view=auto
==============================================================================
--- webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/http/HTTPConstants.java (added)
+++ webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/http/HTTPConstants.java Sun Feb  3 23:03:21 2008
@@ -0,0 +1,85 @@
+package org.apache.woden.wsdl20.extensions.http;
+
+import java.net.URI;
+
+import javax.xml.namespace.QName;
+
+public class HTTPConstants {
+
+    // Extension namespace
+    public static final String NS_STRING_HTTP = "http://www.w3.org/ns/wsdl/http";
+    public static final URI NS_URI_HTTP = URI.create(NS_STRING_HTTP);
+    
+    // Extension namespace prefix
+    public static final String PFX_WHTTP = "whttp";
+
+    // Extension element names.
+    public static final String ELEM_HEADER = "header";
+    
+    // Extension attribute names
+    public static final String ATTR_AUTHENTICATION_REALM = "authenticationRealm";
+    public static final String ATTR_AUTHENTICATION_SCHEME = "authenticationScheme";
+    public static final String ATTR_CODE = "code";
+    public static final String ATTR_CONTENT_ENCODING = "contentEncoding";
+    public static final String ATTR_CONTENT_ENCODING_DEFAULT = "contentEncodingDefault";
+    public static final String ATTR_COOKIES = "cookies";
+    public static final String ATTR_FAULT_SERIALIZATION = "faultSerialization";
+    public static final String ATTR_IGNORE_UNCITED = "ignoreUncited";
+    public static final String ATTR_INPUT_SERIALIZATION = "inputSerialization";
+    public static final String ATTR_LOCATION = "location";
+    public static final String ATTR_METHOD = "method";
+    public static final String ATTR_METHOD_DEFAULT = "methodDefault";
+    public static final String ATTR_OUTPUT_SERIALIZATION = "outputSerialization";
+    public static final String ATTR_QUERY_PARAMETER_SEPARATOR = "queryParameterSeparator";
+    public static final String ATTR_QUERY_PARAMETER_SEPARATOR_DEFAULT = "queryParameterSeparatorDefault";
+    
+    // Extension element QNames
+    public static final QName Q_ELEM_HTTP_HEADER = new QName(NS_STRING_HTTP, ELEM_HEADER, PFX_WHTTP);
+   
+    // Extension attribute QNames
+    public static final QName Q_ATTR_AUTHENTICATION_REALM = new QName(NS_STRING_HTTP, ATTR_AUTHENTICATION_REALM, PFX_WHTTP);
+    public static final QName Q_ATTR_AUTHENTICATION_SCHEME = new QName(NS_STRING_HTTP, ATTR_AUTHENTICATION_SCHEME, PFX_WHTTP);
+    public static final QName Q_ATTR_CODE = new QName(NS_STRING_HTTP, ATTR_CODE, PFX_WHTTP);
+    public static final QName Q_ATTR_CONTENT_ENCODING = new QName(NS_STRING_HTTP, ATTR_CONTENT_ENCODING, PFX_WHTTP);
+    public static final QName Q_ATTR_CONTENT_ENCODING_DEFAULT = new QName(NS_STRING_HTTP, ATTR_CONTENT_ENCODING_DEFAULT, PFX_WHTTP);
+    public static final QName Q_ATTR_COOKIES = new QName(NS_STRING_HTTP, ATTR_COOKIES, PFX_WHTTP);
+    public static final QName Q_ATTR_FAULT_SERIALIZATION = new QName(NS_STRING_HTTP, ATTR_FAULT_SERIALIZATION, PFX_WHTTP);
+    public static final QName Q_ATTR_IGNORE_UNCITED = new QName(NS_STRING_HTTP, ATTR_IGNORE_UNCITED, PFX_WHTTP);
+    public static final QName Q_ATTR_INPUT_SERIALIZATION = new QName(NS_STRING_HTTP, ATTR_INPUT_SERIALIZATION, PFX_WHTTP);
+    public static final QName Q_ATTR_LOCATION = new QName(NS_STRING_HTTP, ATTR_LOCATION, PFX_WHTTP);
+    public static final QName Q_ATTR_METHOD = new QName(NS_STRING_HTTP, ATTR_METHOD, PFX_WHTTP);
+    public static final QName Q_ATTR_METHOD_DEFAULT = new QName(NS_STRING_HTTP, ATTR_METHOD_DEFAULT, PFX_WHTTP);
+    public static final QName Q_ATTR_OUTPUT_SERIALIZATION = new QName(NS_STRING_HTTP, ATTR_OUTPUT_SERIALIZATION, PFX_WHTTP);
+    public static final QName Q_ATTR_QUERY_PARAMETER_SEPARATOR = new QName(NS_STRING_HTTP, ATTR_QUERY_PARAMETER_SEPARATOR, PFX_WHTTP);
+    public static final QName Q_ATTR_QUERY_PARAMETER_SEPARATOR_DEFAULT = new QName(NS_STRING_HTTP, ATTR_QUERY_PARAMETER_SEPARATOR_DEFAULT, PFX_WHTTP);
+    
+    // Extension property names
+    public static final String PROP_HTTP_AUTHENTICATION_REALM = "http authentication realm";
+    public static final String PROP_HTTP_AUTHENTICATION_SCHEME = "http authentication scheme";
+    public static final String PROP_HTTP_CONTENT_ENCODING = "http content encoding";
+    public static final String PROP_HTTP_CONTENT_ENCODING_DEFAULT = "http content encoding default";
+    public static final String PROP_HTTP_COOKIES = "http cookies";
+    public static final String PROP_HTTP_ERROR_STATUS_CODE = "http error status code";
+    public static final String PROP_HTTP_FAULT_SERIALIZATION = "http fault serialization";
+    public static final String PROP_HTTP_HEADERS = "http headers";
+    public static final String PROP_HTTP_INPUT_SERIALIZATION = "http input serialization";
+    public static final String PROP_HTTP_LOCATION = "http location";
+    public static final String PROP_HTTP_LOCATION_IGNORE_UNCITED = "http location ignore uncited";
+    public static final String PROP_HTTP_METHOD = "http method";
+    public static final String PROP_HTTP_METHOD_DEFAULT = "http method default";
+    public static final String PROP_HTTP_OUTPUT_SERIALIZATION = "http output serialization";
+    public static final String PROP_HTTP_QUERY_PARAMETER_SEPARATOR = "http query parameter separator";
+    public static final String PROP_HTTP_QUERY_PARAMETER_SEPARATOR_DEFAULT = "http query parameter separator default";
+    
+    //{http method} constants
+    public static final String METHOD_GET = "GET";
+    public static final String METHOD_POST = "POST";
+    public static final String METHOD_PUT = "PUT";
+    public static final String METHOD_DELETE = "DELETE";
+    
+    //{input/output serialization} constants
+    public static final String SERIAL_APP_URLENCODED = "application/x-www-form-urlencoded";
+    public static final String SERIAL_APP_XML = "application/xml";
+    public static final String QUERY_SEP_AMPERSAND = "&";
+
+}

Propchange: webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/http/HTTPConstants.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/rpc/RPCConstants.java
URL: http://svn.apache.org/viewvc/webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/rpc/RPCConstants.java?rev=618180&view=auto
==============================================================================
--- webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/rpc/RPCConstants.java (added)
+++ webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/rpc/RPCConstants.java Sun Feb  3 23:03:21 2008
@@ -0,0 +1,44 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0 
+ * 
+ * Unless required by applicable law or agreed to in writing, software 
+ * distributed under the License is distributed on an "AS IS" BASIS, 
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+ * See the License for the specific language governing permissions and 
+ * limitations under the License.
+ */
+package org.apache.woden.wsdl20.extensions.rpc;
+
+import java.net.URI;
+
+import javax.xml.namespace.QName;
+
+public class RPCConstants {
+
+    // Extension namespace
+    public static final String NS_STRING_RPC = "http://www.w3.org/ns/wsdl/rpc";
+    public static final URI NS_URI_RPC = URI.create(NS_STRING_RPC);
+    
+    // Style
+    public static final String STYLE_STRING_RPC = "http://www.w3.org/ns/wsdl/style/rpc";
+    public static final URI STYLE_URI_RPC = URI.create(STYLE_STRING_RPC);
+
+    // Extension namespace prefix
+    public static final String PFX_WRPC = "wrpc";
+
+    // Extension attribute names
+    public static final String ATTR_SIGNATURE = "signature";
+    
+    // Extension attribute QNames
+    public static final QName Q_ATTR_RPC_SIGNATURE = new QName(NS_STRING_RPC, ATTR_SIGNATURE, PFX_WRPC);
+    
+    // Extension property names
+    public static final String PROP_RPC_SIGNATURE = "rpc signature";
+}

Propchange: webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/rpc/RPCConstants.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/soap/SOAPConstants.java
URL: http://svn.apache.org/viewvc/webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/soap/SOAPConstants.java?rev=618180&view=auto
==============================================================================
--- webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/soap/SOAPConstants.java (added)
+++ webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/soap/SOAPConstants.java Sun Feb  3 23:03:21 2008
@@ -0,0 +1,81 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0 
+ * 
+ * Unless required by applicable law or agreed to in writing, software 
+ * distributed under the License is distributed on an "AS IS" BASIS, 
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+ * See the License for the specific language governing permissions and 
+ * limitations under the License.
+ */
+package org.apache.woden.wsdl20.extensions.soap;
+
+import java.net.URI;
+
+import javax.xml.namespace.QName;
+
+public class SOAPConstants {
+
+    // Extension namespace
+    public static final String NS_STRING_SOAP = "http://www.w3.org/ns/wsdl/soap";
+    public static final URI NS_URI_SOAP = URI.create(NS_STRING_SOAP);
+    
+    // Extension namespace prefix
+    public static final String PFX_WSOAP = "wsoap";
+
+    // Extension element names.
+    public static final String ELEM_HEADER = "header";
+    public static final String ELEM_MODULE = "module";
+    
+    // Extension attribute names
+    public static final String ATTR_ACTION = "action";
+    public static final String ATTR_CODE = "code";
+    public static final String ATTR_MEP = "mep";
+    public static final String ATTR_MEPDEFAULT = "mepDefault";
+    public static final String ATTR_MUSTUNDERSTAND = "mustUnderstand";
+    public static final String ATTR_PROTOCOL = "protocol";
+    public static final String ATTR_SUBCODES = "subcodes";
+    public static final String ATTR_VERSION = "version";
+    
+    // Extension element QNames
+    public static final QName Q_ELEM_SOAP_HEADER = new QName(NS_STRING_SOAP, ELEM_HEADER, PFX_WSOAP);
+    public static final QName Q_ELEM_SOAP_MODULE = new QName(NS_STRING_SOAP, ELEM_MODULE, PFX_WSOAP);
+    
+    // Extension attribute QNames
+    public static final QName Q_ATTR_SOAP_ACTION = new QName(NS_STRING_SOAP, ATTR_ACTION, PFX_WSOAP);
+    public static final QName Q_ATTR_SOAP_CODE = new QName(NS_STRING_SOAP, ATTR_CODE, PFX_WSOAP);
+    public static final QName Q_ATTR_SOAP_MEP = new QName(NS_STRING_SOAP, ATTR_MEP, PFX_WSOAP);
+    public static final QName Q_ATTR_SOAP_MEPDEFAULT = new QName(NS_STRING_SOAP, ATTR_MEPDEFAULT, PFX_WSOAP);
+    public static final QName Q_ATTR_SOAP_PROTOCOL = new QName(NS_STRING_SOAP, ATTR_PROTOCOL, PFX_WSOAP);
+    public static final QName Q_ATTR_SOAP_SUBCODES = new QName(NS_STRING_SOAP, ATTR_SUBCODES, PFX_WSOAP);
+    public static final QName Q_ATTR_SOAP_VERSION = new QName(NS_STRING_SOAP, ATTR_VERSION, PFX_WSOAP);
+    
+    // Extension property names
+    public static final String PROP_SOAP_ACTION = "soap action";
+    public static final String PROP_SOAP_FAULT_CODE = "soap fault code";
+    public static final String PROP_SOAP_FAULT_SUBCODES = "soap fault subcodes";
+    public static final String PROP_SOAP_HEADERS = "soap headers";
+    public static final String PROP_SOAP_MEP = "soap mep";
+    public static final String PROP_SOAP_MEP_DEFAULT = "soap mep default";
+    public static final String PROP_SOAP_MODULES = "soap modules";
+    public static final String PROP_SOAP_UNDERLYING_PROTOCOL = "soap underlying protocol";
+    public static final String PROP_SOAP_VERSION = "soap version";
+
+    // Protocol values
+    public static final String PROTOCOL_STRING_SOAP11_HTTP = "http://www.w3.org/2006/01/soap11/bindings/HTTP/";
+    public static final String PROTOCOL_STRING_SOAP12_HTTP = "http://www.w3.org/2003/05/soap/bindings/HTTP/";
+    public static final URI PROTOCOL_URI_SOAP11_HTTP = URI.create(PROTOCOL_STRING_SOAP11_HTTP);
+    public static final URI PROTOCOL_URI_SOAP12_HTTP = URI.create(PROTOCOL_STRING_SOAP12_HTTP);
+    
+    // Version values
+    public static final String VERSION_1_1 = "1.1";
+    public static final String VERSION_1_2 = "1.2";
+    
+
+}

Propchange: webservices/woden/branches/woden47/src/org/apache/woden/wsdl20/extensions/soap/SOAPConstants.java
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org