Author: richard.opalka(a)jboss.com
Date: 2010-02-03 04:37:55 -0500 (Wed, 03 Feb 2010)
New Revision: 11532
Added:
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/Action.java
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/ActionNotSupportedException.java
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/DestinationUnreachableException.java
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/EndpointUnavailableException.java
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/FaultAction.java
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/InvalidMapException.java
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/MapRequiredException.java
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/soap/SOAPAddressingElement.java
Log:
[JBWS-2751] rollback for now - svn merge -r 11527:11526 .
Copied: stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/Action.java
(from rev 11526,
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/Action.java)
===================================================================
--- stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/Action.java
(rev 0)
+++
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/Action.java 2010-02-03
09:37:55 UTC (rev 11532)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package javax.xml.ws.addressing;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Documented
+(a)Retention(RetentionPolicy.RUNTIME)
+(a)Target(ElementType.METHOD)
+public @interface Action
+{
+
+ String input() default "##default";
+
+ String output() default "##default";
+
+ String[] fault() default "##default";
+}
Copied:
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/ActionNotSupportedException.java
(from rev 11526,
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/ActionNotSupportedException.java)
===================================================================
---
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/ActionNotSupportedException.java
(rev 0)
+++
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/ActionNotSupportedException.java 2010-02-03
09:37:55 UTC (rev 11532)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package javax.xml.ws.addressing;
+
+import javax.xml.namespace.QName;
+
+public class ActionNotSupportedException extends AddressingException
+{
+ private static final long serialVersionUID = -2281268200778671820L;
+
+ static
+ {
+ fMessage = ac.getActionNotSupportedText();
+ }
+
+ private String action;
+
+ protected ActionNotSupportedException()
+ {
+ super();
+ }
+
+ public ActionNotSupportedException(String action)
+ {
+ super(fMessage + ": " + action);
+ this.action = action;
+ }
+
+ public String getAction()
+ {
+ return action;
+ }
+
+ public QName getSubcode()
+ {
+ return ac.getActioNotSupportedQName();
+ }
+}
Copied:
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/DestinationUnreachableException.java
(from rev 11526,
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/DestinationUnreachableException.java)
===================================================================
---
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/DestinationUnreachableException.java
(rev 0)
+++
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/DestinationUnreachableException.java 2010-02-03
09:37:55 UTC (rev 11532)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package javax.xml.ws.addressing;
+
+import javax.xml.namespace.QName;
+
+public class DestinationUnreachableException extends AddressingException
+{
+ private static final long serialVersionUID = 7420697131368408456L;
+
+ static
+ {
+ fMessage = ac.getDestinationUnreachableText();
+ }
+
+ public DestinationUnreachableException()
+ {
+ }
+
+ public DestinationUnreachableException(String problemIRI)
+ {
+ super(fMessage + ": " + problemIRI);
+ }
+
+ public QName getSubcode()
+ {
+ return ac.getDestinationUnreachableQName();
+ }
+}
Copied:
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/EndpointUnavailableException.java
(from rev 11526,
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/EndpointUnavailableException.java)
===================================================================
---
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/EndpointUnavailableException.java
(rev 0)
+++
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/EndpointUnavailableException.java 2010-02-03
09:37:55 UTC (rev 11532)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package javax.xml.ws.addressing;
+
+import javax.xml.namespace.QName;
+
+public class EndpointUnavailableException extends AddressingException
+{
+ private static final long serialVersionUID = 4098776568071868541L;
+
+ static
+ {
+ fMessage = ac.getEndpointUnavailableText();
+ }
+
+ public EndpointUnavailableException()
+ {
+ }
+
+ public EndpointUnavailableException(int retryAfter, String problemIRI)
+ {
+ super(fMessage + ": [retry=" + retryAfter + ",iri=" +
problemIRI + "]");
+ }
+
+ public QName getSubcode()
+ {
+ return ac.getEndpointUnavailableQName();
+ }
+}
Copied:
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/FaultAction.java
(from rev 11526,
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/FaultAction.java)
===================================================================
---
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/FaultAction.java
(rev 0)
+++
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/FaultAction.java 2010-02-03
09:37:55 UTC (rev 11532)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package javax.xml.ws.addressing;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Documented
+(a)Retention(RetentionPolicy.RUNTIME)
+(a)Target(ElementType.METHOD)
+public @interface FaultAction
+{
+
+ Class className();
+
+ String value() default "##default";
+}
Copied:
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/InvalidMapException.java
(from rev 11526,
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/InvalidMapException.java)
===================================================================
---
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/InvalidMapException.java
(rev 0)
+++
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/InvalidMapException.java 2010-02-03
09:37:55 UTC (rev 11532)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package javax.xml.ws.addressing;
+
+import javax.xml.namespace.QName;
+
+public class InvalidMapException extends AddressingException
+{
+ private static final long serialVersionUID = 1760077070006214469L;
+
+ static
+ {
+ fMessage = ac.getInvalidMapText();
+ }
+
+ protected InvalidMapException()
+ {
+ }
+
+ public InvalidMapException(QName name)
+ {
+ super(fMessage + ": " + name);
+ }
+
+ public QName getSubcode()
+ {
+ return ac.getInvalidMapQName();
+ }
+}
Copied:
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/MapRequiredException.java
(from rev 11526,
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/MapRequiredException.java)
===================================================================
---
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/MapRequiredException.java
(rev 0)
+++
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/MapRequiredException.java 2010-02-03
09:37:55 UTC (rev 11532)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package javax.xml.ws.addressing;
+
+import javax.xml.namespace.QName;
+
+public class MapRequiredException extends AddressingException
+{
+ private static final long serialVersionUID = 7593796661805754938L;
+
+ static
+ {
+ fMessage = ac.getMapRequiredText();
+ }
+
+ public MapRequiredException()
+ {
+ }
+
+ public MapRequiredException(QName name)
+ {
+ super(fMessage + ": " + name);
+ }
+
+ public QName getSubcode()
+ {
+ return ac.getMapRequiredQName();
+ }
+}
Copied:
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/soap/SOAPAddressingElement.java
(from rev 11526,
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/soap/SOAPAddressingElement.java)
===================================================================
---
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/soap/SOAPAddressingElement.java
(rev 0)
+++
stack/native/trunk/modules/core/src/main/java/javax/xml/ws/addressing/soap/SOAPAddressingElement.java 2010-02-03
09:37:55 UTC (rev 11532)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package javax.xml.ws.addressing.soap;
+
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPElement;
+import javax.xml.ws.addressing.AddressingException;
+import javax.xml.ws.addressing.AddressingType;
+
+public interface SOAPAddressingElement extends AddressingType
+{
+
+ public void read(SOAPElement element) throws AddressingException;
+
+ public SOAPElement write(SOAPElement parent, QName name) throws AddressingException;
+
+}