Author: richard.opalka(a)jboss.com
Date: 2010-03-25 03:22:45 -0400 (Thu, 25 Mar 2010)
New Revision: 11855
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ProviderImpl.java
Log:
[JBPAPP-3983] throw IllegalStateException if not all information is provided
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ProviderImpl.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ProviderImpl.java 2010-03-24
18:57:36 UTC (rev 11854)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ProviderImpl.java 2010-03-25
07:22:45 UTC (rev 11855)
@@ -120,6 +120,11 @@
public W3CEndpointReference createW3CEndpointReference(String address, QName
serviceName, QName portName, List<Element> metadata, String wsdlDocumentLocation,
List<Element> referenceParameters)
{
+ if ((serviceName == null) && (address == null) && (portName ==
null))
+ throw new IllegalStateException();
+ if ((portName != null) && (serviceName == null))
+ throw new IllegalStateException();
+
NativeEndpointReference epr = new NativeEndpointReference();
epr.setAddress(address);
epr.setServiceName(serviceName);
Show replies by date