You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by du...@apache.org on 2006/10/26 16:48:43 UTC
svn commit: r468024 - in
/webservices/axis/trunk/java/src/org/apache/axis/wsa:
EndpointReference.java MIHeader.java
Author: dug
Date: Thu Oct 26 07:48:42 2006
New Revision: 468024
URL: http://svn.apache.org/viewvc?view=rev&rev=468024
Log:
Remove unneeded "throws Exceptions"
wsa:Action is the only required header, not wsa:To or wsa:From
Modified:
webservices/axis/trunk/java/src/org/apache/axis/wsa/EndpointReference.java
webservices/axis/trunk/java/src/org/apache/axis/wsa/MIHeader.java
Modified: webservices/axis/trunk/java/src/org/apache/axis/wsa/EndpointReference.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/java/src/org/apache/axis/wsa/EndpointReference.java?view=diff&rev=468024&r1=468023&r2=468024
==============================================================================
--- webservices/axis/trunk/java/src/org/apache/axis/wsa/EndpointReference.java (original)
+++ webservices/axis/trunk/java/src/org/apache/axis/wsa/EndpointReference.java Thu Oct 26 07:48:42 2006
@@ -98,13 +98,13 @@
return epr ;
}
- public static EndpointReference Anonymous() throws Exception {
+ public static EndpointReference Anonymous() {
if ( staticNS.equals(WSAConstants.NS_WSA1) )
return EndpointReference.fromLocation( staticNS + "/role/anonymous" );
return EndpointReference.fromLocation( staticNS + "/anonymous" );
}
- public static EndpointReference Anonymous(String ns) throws Exception {
+ public static EndpointReference Anonymous(String ns) {
if ( ns.equals(WSAConstants.NS_WSA1) )
return EndpointReference.fromLocation( ns + "/role/anonymous" );
return EndpointReference.fromLocation( ns + "/anonymous" );
@@ -116,13 +116,13 @@
return this.address.equals( namespace + "/anonymous" );
}
- public static EndpointReference None() throws Exception {
+ public static EndpointReference None() {
if ( staticNS.equals(WSAConstants.NS_WSA1) ) // should fault or something
return EndpointReference.fromLocation( staticNS + "/role/none" );
return EndpointReference.fromLocation( staticNS + "/none" );
}
- public static EndpointReference None(String ns) throws Exception {
+ public static EndpointReference None(String ns) {
if ( ns.equals(WSAConstants.NS_WSA1) ) // should fault or something
return EndpointReference.fromLocation( ns + "/role/none" );
return EndpointReference.fromLocation( ns + "/none" );
Modified: webservices/axis/trunk/java/src/org/apache/axis/wsa/MIHeader.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/java/src/org/apache/axis/wsa/MIHeader.java?view=diff&rev=468024&r1=468023&r2=468024
==============================================================================
--- webservices/axis/trunk/java/src/org/apache/axis/wsa/MIHeader.java (original)
+++ webservices/axis/trunk/java/src/org/apache/axis/wsa/MIHeader.java Thu Oct 26 07:48:42 2006
@@ -130,7 +130,7 @@
mih = new MIHeader();
mih.removeOnGet = false ;
mih.fromEnvelope( (SOAPEnvelope) msg.getSOAPEnvelope() );
- if ( mih.getTo() == null && mih.getFrom() == null) return null ;
+ if ( mih.getAction() == null) return null ;
msgContext.setProperty( WSAConstants.REQ_MIH, mih );
}
return mih;
@@ -151,7 +151,7 @@
mih = new MIHeader();
mih.removeOnGet = false ;
mih.fromEnvelope( (SOAPEnvelope) msg.getSOAPEnvelope() );
- if ( mih.getTo() == null && mih.getFrom() == null ) return null ;
+ if ( mih.getAction() == null ) return null ;
msgContext.setProperty(WSAConstants.RES_MIH, mih );
}
return mih;
@@ -370,7 +370,11 @@
relatesTo.add( new RelatesToProperty(uri, type) );
}
- public EndpointReference getTo() { return to ; }
+ public EndpointReference getTo() {
+ if ( to == null )
+ to = EndpointReference.Anonymous( namespace );
+ return to ;
+ }
public void setTo(String _to) {
to = EndpointReference.fromLocation(_to,namespace) ;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org