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 gd...@apache.org on 2003/08/12 05:59:27 UTC
cvs commit: xml-axis/java/src/org/apache/axis/client Call.java
gdaniels 2003/08/11 20:59:27
Modified: java/test/properties TestScopedProperties.java
java/samples/attachments TestRef.java EchoAttachment.java
java/src/org/apache/axis/client Call.java
Log:
Get rid of deprecated scopedProperties methods as planned now that
1.1 is out.
Revision Changes Path
1.5 +2 -2 xml-axis/java/test/properties/TestScopedProperties.java
Index: TestScopedProperties.java
===================================================================
RCS file: /home/cvs/xml-axis/java/test/properties/TestScopedProperties.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- TestScopedProperties.java 22 Apr 2003 19:36:54 -0000 1.4
+++ TestScopedProperties.java 12 Aug 2003 03:59:27 -0000 1.5
@@ -140,7 +140,7 @@
// Set a property on the Call which we expect to be available via
// the MessageContext in the client-side handler.
- call.setScopedProperty(PROP_NAME, CLIENT_VALUE);
+ call.setProperty(PROP_NAME, CLIENT_VALUE);
LocalTransport transport = new LocalTransport(server);
transport.setRemoteService("service");
@@ -206,7 +206,7 @@
// Set a property on the Call which we expect to be available via
// the MessageContext in the client-side handler.
- call.setScopedProperty(PROP_NAME, CLIENT_VALUE);
+ call.setProperty(PROP_NAME, CLIENT_VALUE);
LocalTransport transport = new LocalTransport(server);
transport.setRemoteService("service");
1.5 +1 -1 xml-axis/java/samples/attachments/TestRef.java
Index: TestRef.java
===================================================================
RCS file: /home/cvs/xml-axis/java/samples/attachments/TestRef.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- TestRef.java 22 Apr 2003 19:33:19 -0000 1.4
+++ TestRef.java 12 Aug 2003 03:59:27 -0000 1.5
@@ -140,7 +140,7 @@
* Currently httpsender won't handle this situation, this will require the resp. which it will handle.
*/
//myhttp.put(HTTPConstants.HEADER_EXPECT, HTTPConstants.HEADER_EXPECT_100_Continue);
- call.setScopedProperty(HTTPConstants.REQUEST_HEADERS,myhttp);
+ call.setProperty(HTTPConstants.REQUEST_HEADERS,myhttp);
call.setTargetEndpointAddress( new URL(opts.getURL()) ); //Set the target service host and service location,
1.22 +1 -1 xml-axis/java/samples/attachments/EchoAttachment.java
Index: EchoAttachment.java
===================================================================
RCS file: /home/cvs/xml-axis/java/samples/attachments/EchoAttachment.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- EchoAttachment.java 22 Apr 2003 19:33:19 -0000 1.21
+++ EchoAttachment.java 12 Aug 2003 03:59:27 -0000 1.22
@@ -236,7 +236,7 @@
* Currently httpsender won't handle this situation, this will require the resp. which it will handle.
*/
//myhttp.put(HTTPConstants.HEADER_EXPECT, HTTPConstants.HEADER_EXPECT_100_Continue);
- call.setScopedProperty(HTTPConstants.REQUEST_HEADERS, myhttp);
+ call.setProperty(HTTPConstants.REQUEST_HEADERS, myhttp);
call.setTargetEndpointAddress(new URL(opts.getURL())); //Set the target service host and service location,
1.208 +0 -52 xml-axis/java/src/org/apache/axis/client/Call.java
Index: Call.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Call.java,v
retrieving revision 1.207
retrieving revision 1.208
diff -u -r1.207 -r1.208
--- Call.java 29 May 2003 11:59:56 -0000 1.207
+++ Call.java 12 Aug 2003 03:59:27 -0000 1.208
@@ -450,58 +450,6 @@
} // removeProperty
/**
- * Set a scoped property on the call (i.e. one that propagates down into
- * the runtime).
- *
- * Deprecated, since setProperty() now does the right thing here. Expect
- * this to disappear in 1.1.
- *
- * @deprecated
- * @param name
- * @param value
- */
- public void setScopedProperty(String name, Object value) {
- if (name == null || value == null) {
- throw new JAXRPCException(
- Messages.getMessage(name == null ?
- "badProp03" : "badProp04"));
- }
- myProperties.put(name, value);
- } // setScopedProperty
-
- /**
- * Get a scoped property (i.e. one that propagates down into the runtime).
- *
- * Deprecated, since there's only one property bag now. Expect this to
- * disappear in 1.1.
- *
- * @deprecated
- * @param name
- * @return
- */
- public Object getScopedProperty(String name) {
- if (name != null) {
- return myProperties.get(name);
- }
- return null;
- } // getScopedProperty
-
- /**
- * Remove a scoped property (i.e. one that propagates down into the
- * runtime).
- *
- * Deprecated, since there's only one property bag now. Expect this to
- * disappear in 1.1.
- *
- * @deprecated
- * @param name
- */
- public void removeScopedProperty(String name) {
- if ( name == null || myProperties == null ) return ;
- myProperties.remove( name );
- } // removeScopedProperty
-
- /**
* Configurable properties supported by this Call object.
*/
private static ArrayList propertyNames = new ArrayList();