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 sa...@apache.org on 2004/12/20 09:23:30 UTC
cvs commit: ws-axis/c/src/transport/axis2 Axis2Transport.cpp Axis2Transport.h
samisa 2004/12/20 00:23:30
Modified: c/src/transport SOAPTransport.h
c/src/transport/axis2 Axis2Transport.cpp Axis2Transport.h
Log:
Fixed AXISCPP-316 - Spelling mistakes in API names. Changed 'Trasport' to 'Transport'.
Revision Changes Path
1.11 +125 -24 ws-axis/c/src/transport/SOAPTransport.h
Index: SOAPTransport.h
===================================================================
RCS file: /home/cvs/ws-axis/c/src/transport/SOAPTransport.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- SOAPTransport.h 23 Nov 2004 17:21:06 -0000 1.10
+++ SOAPTransport.h 20 Dec 2004 08:23:30 -0000 1.11
@@ -370,9 +370,9 @@
*
* Setting the proxy is useful for users who are behind proxies.
*
- * For some trasports this method may not make sense.
+ * For some transports this method may not make sense.
* Hence this method is not pure virtual.
- * Those trasports that implement this interface, that wish to use proxy, must provide an implementation.
+ * Those transports that implement this interface, that wish to use proxy, must provide an implementation.
* Also, the hadling of the proxy is the responsibility of the deriving classes
*
* @param pcProxyHost Host name of proxy server
@@ -388,86 +388,98 @@
virtual void setTimeout(const long lSeconds) = 0;
/**
- * Iterator initiatior for trasport property keys
+ * @deprecated To fix spelling mistake.
+ *
+ * Iterator initiatior for transport property keys
*
* This method must be called first to initiate access to the list of
* transport property keys.
*
- * @return First transport property key. If there are no trasport
+ * @return First transport property key. If there are no transport
* properties set, returns NULL.
*/
virtual const char* getFirstTrasportPropertyKey() { return 0; };
/**
- * Iterator for trasport property keys
+ * @deprecated To fix spelling mistake.
+ *
+ * Iterator for transport property keys
*
- * getFirstTrasportPropertyKey() method must have been called at least once
+ * getFirstTransportPropertyKey() method must have been called at least once
* before this method is called. If not behaviour is undefined.
*
* This method advances the iterator by one position.
* Repeated calls always retuen the next value.
*
- * @return Next transport property key. If there are no trasport
+ * @return Next transport property key. If there are no transport
* properties set or if iterator is at the end of the list, returns NULL.
*/
virtual const char* getNextTrasportPropertyKey() { return 0; };
/**
- * Accessor for trasport property keys.
+ * @deprecated To fix spelling mistake.
+ *
+ * Accessor for transport property keys.
*
- * This method gives access to the key corresponding to the trasport key
- * currently being pointed by trasport property key iterator.
+ * This method gives access to the key corresponding to the transport key
+ * currently being pointed by transport property key iterator.
*
- * getFirstTrasportPropertyKey() method must have been called at least once
+ * getFirstTransportPropertyKey() method must have been called at least once
* before this method is called. If not behaviour is undefined.
*
* This method does not advance the iterator.
* Repeated calls always retuen the same key unless
- * getNextTrasportPropertyKey() is called in between.
+ * getNextTransportPropertyKey() is called in between.
*
- * @return Current transport property key. If there are no trasport
+ * @return Current transport property key. If there are no transport
* properties set or if iterator is at the end of the list, returns NULL.
*/
virtual const char* getCurrentTrasportPropertyKey() { return 0; };
/**
- * Accessor for trasport property values.
+ * @deprecated To fix spelling mistake.
*
- * This method gives access to the value corresponding to the trasport key
- * currently being pointed by trasport property key iterator.
+ * Accessor for transport property values.
+ *
+ * This method gives access to the value corresponding to the transport key
+ * currently being pointed by transport property key iterator.
* As keys and values are treated as paires, access to the value field is
* based on the access to the key field.
*
- * getFirstTrasportPropertyKey() method must have been called at least once
+ * getFirstTransportPropertyKey() method must have been called at least once
* before this method is called. If not behaviour is undefined.
*
* This method does not advance the iterator.
* Repeated calls always retuen the same value unless
- * getNextTrasportPropertyKey() is called in between.
+ * getNextTransportPropertyKey() is called in between.
*
- * @return Current transport property value. If there are no trasport
+ * @return Current transport property value. If there are no transport
* properties set or if iterator is at the end of the list, returns NULL.
*/
virtual const char* getCurrentTrasportPropertyValue() { return 0; };
/**
- * Deletes the trasport property key:value pair currently pointed to by
+ * @deprecated To fix spelling mistake.
+ *
+ * Deletes the transport property key:value pair currently pointed to by
* the iterator.
*/
virtual void deleteCurrentTrasportProperty() {};
/**
- * Deletes the given occerance of the trasport property key:value pair
+ * @deprecated To fix spelling mistake.
+ *
+ * Deletes the given occerance of the transport property key:value pair
* corresponding to the given key.
*
* This method does not advance the iterator in line with the deletes done.
- * In case you want to access the trasport properties after using this
+ * In case you want to access the transport properties after using this
* method, it is advisable to reinitialize the iterator using
- * getFirstTrasportPropertyKey();
+ * getFirstTransportPropertyKey();
* However you can use this method despite where the iterator is
* pointing currently.
*
- * @param pcKey Key of the trasport property key:value pair to be deleted
+ * @param pcKey Key of the transport property key:value pair to be deleted
* If the given key is not set currently, nothing will happen.
* @param uiOccurance Which occerance of the key to be deleted, because
* there can be multiple values for the same key.
@@ -476,6 +488,95 @@
*/
virtual void deleteTrasportProperty(char* pcKey, unsigned int uiOccurance = 1) {};
+ /**
+ * Iterator initiatior for transport property keys
+ *
+ * This method must be called first to initiate access to the list of
+ * transport property keys.
+ *
+ * @return First transport property key. If there are no transport
+ * properties set, returns NULL.
+ */
+ virtual const char* getFirstTransportPropertyKey() { return 0; };
+
+ /**
+ * Iterator for transport property keys
+ *
+ * getFirstTransportPropertyKey() method must have been called at least once
+ * before this method is called. If not behaviour is undefined.
+ *
+ * This method advances the iterator by one position.
+ * Repeated calls always retuen the next value.
+ *
+ * @return Next transport property key. If there are no transport
+ * properties set or if iterator is at the end of the list, returns NULL.
+ */
+ virtual const char* getNextTransportPropertyKey() { return 0; };
+
+ /**
+ * Accessor for transport property keys.
+ *
+ * This method gives access to the key corresponding to the transport key
+ * currently being pointed by transport property key iterator.
+ *
+ * getFirstTransportPropertyKey() method must have been called at least once
+ * before this method is called. If not behaviour is undefined.
+ *
+ * This method does not advance the iterator.
+ * Repeated calls always retuen the same key unless
+ * getNextTransportPropertyKey() is called in between.
+ *
+ * @return Current transport property key. If there are no transport
+ * properties set or if iterator is at the end of the list, returns NULL.
+ */
+ virtual const char* getCurrentTransportPropertyKey() { return 0; };
+
+ /**
+ * Accessor for transport property values.
+ *
+ * This method gives access to the value corresponding to the transport key
+ * currently being pointed by transport property key iterator.
+ * As keys and values are treated as paires, access to the value field is
+ * based on the access to the key field.
+ *
+ * getFirstTransportPropertyKey() method must have been called at least once
+ * before this method is called. If not behaviour is undefined.
+ *
+ * This method does not advance the iterator.
+ * Repeated calls always retuen the same value unless
+ * getNextTransportPropertyKey() is called in between.
+ *
+ * @return Current transport property value. If there are no transport
+ * properties set or if iterator is at the end of the list, returns NULL.
+ */
+ virtual const char* getCurrentTransportPropertyValue() { return 0; };
+
+ /**
+ * Deletes the transport property key:value pair currently pointed to by
+ * the iterator.
+ */
+ virtual void deleteCurrentTransportProperty() {};
+
+ /**
+ * Deletes the given occerance of the transport property key:value pair
+ * corresponding to the given key.
+ *
+ * This method does not advance the iterator in line with the deletes done.
+ * In case you want to access the transport properties after using this
+ * method, it is advisable to reinitialize the iterator using
+ * getFirstTransportPropertyKey();
+ * However you can use this method despite where the iterator is
+ * pointing currently.
+ *
+ * @param pcKey Key of the transport property key:value pair to be deleted
+ * If the given key is not set currently, nothing will happen.
+ * @param uiOccurance Which occerance of the key to be deleted, because
+ * there can be multiple values for the same key.
+ * Default is to delete the first occurance.
+ * Count starts from 1.
+ */
+ virtual void deleteTransportProperty(char* pcKey, unsigned int uiOccurance = 1) {};
+
/**
* Set whether to Maitain session with service ot not.
* @param bSession - true is session should be maintained. False otherwise.
1.30 +7 -7 ws-axis/c/src/transport/axis2/Axis2Transport.cpp
Index: Axis2Transport.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/transport/axis2/Axis2Transport.cpp,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- Axis2Transport.cpp 6 Dec 2004 10:13:06 -0000 1.29
+++ Axis2Transport.cpp 20 Dec 2004 08:23:30 -0000 1.30
@@ -156,7 +156,7 @@
Axis2Transport::openConnection ()
{
//Samisa: I wonder whether this should be a SOAPTransport API call.
- //It should not be the job of the upper layers to tell the trasport
+ //It should not be the job of the upper layers to tell the transport
//to open and close connections. Rather the transport should determine
//when to do that, when sendBytes is called.
@@ -1358,7 +1358,7 @@
return NULL;
}
-const char* Axis2Transport::getFirstTrasportPropertyKey()
+const char* Axis2Transport::getFirstTransportPropertyKey()
{
m_viCurrentHeader = m_vHTTPHeaders.begin();
@@ -1368,7 +1368,7 @@
return (*m_viCurrentHeader).first.c_str();
}
-const char* Axis2Transport::getNextTrasportPropertyKey()
+const char* Axis2Transport::getNextTransportPropertyKey()
{
//already at the end?
if (m_viCurrentHeader == m_vHTTPHeaders.end())
@@ -1383,7 +1383,7 @@
}
-const char* Axis2Transport::getCurrentTrasportPropertyKey()
+const char* Axis2Transport::getCurrentTransportPropertyKey()
{
if (m_viCurrentHeader == m_vHTTPHeaders.end())
return NULL;
@@ -1391,7 +1391,7 @@
return (*m_viCurrentHeader).first.c_str();
}
-const char* Axis2Transport::getCurrentTrasportPropertyValue()
+const char* Axis2Transport::getCurrentTransportPropertyValue()
{
if (m_viCurrentHeader == m_vHTTPHeaders.end())
return NULL;
@@ -1399,7 +1399,7 @@
return (*m_viCurrentHeader).second.c_str();
}
-void Axis2Transport::deleteCurrentTrasportProperty()
+void Axis2Transport::deleteCurrentTransportProperty()
{
if (m_viCurrentHeader != m_vHTTPHeaders.end())
{
@@ -1407,7 +1407,7 @@
}
}
-void Axis2Transport::deleteTrasportProperty(char* pcKey, unsigned int uiOccurance)
+void Axis2Transport::deleteTransportProperty(char* pcKey, unsigned int uiOccurance)
{
vector <std::pair < std::string, std::string > >::iterator currentHeader = m_vHTTPHeaders.begin();
unsigned int uiCount = 1;
1.19 +29 -29 ws-axis/c/src/transport/axis2/Axis2Transport.h
Index: Axis2Transport.h
===================================================================
RCS file: /home/cvs/ws-axis/c/src/transport/axis2/Axis2Transport.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- Axis2Transport.h 6 Dec 2004 10:13:06 -0000 1.18
+++ Axis2Transport.h 20 Dec 2004 08:23:30 -0000 1.19
@@ -113,93 +113,93 @@
void setSocket (unsigned int);
/**
- * Iterator initiatior for trasport property keys
+ * Iterator initiatior for transport property keys
*
* This method must be called first to initiate access to the list of
* transport property keys.
*
- * @return First transport property key. If there are no trasport
+ * @return First transport property key. If there are no transport
* properties set, returns NULL.
*/
- const char* getFirstTrasportPropertyKey();
+ const char* getFirstTransportPropertyKey();
/**
- * Iterator for trasport property keys
+ * Iterator for transport property keys
*
- * getFirstTrasportPropertyKey() method must have been called at least once
+ * getFirstTransportPropertyKey() method must have been called at least once
* before this method is called. If not behaviour is undefined.
*
* This method advances the iterator by one position.
* Repeated calls always retuen the next value.
*
- * @return Next transport property key. If there are no trasport
+ * @return Next transport property key. If there are no transport
* properties set or if iterator is at the end of the list, returns NULL.
*/
- const char* getNextTrasportPropertyKey();
+ const char* getNextTransportPropertyKey();
/**
- * Accessor for trasport property keys.
+ * Accessor for transport property keys.
*
- * This method gives access to the key corresponding to the trasport key
- * currently being pointed by trasport property key iterator.
+ * This method gives access to the key corresponding to the transport key
+ * currently being pointed by transport property key iterator.
*
- * getFirstTrasportPropertyKey() method must have been called at least once
+ * getFirstTransportPropertyKey() method must have been called at least once
* before this method is called. If not behaviour is undefined.
*
* This method does not advance the iterator.
* Repeated calls always retuen the same key unless
- * getNextTrasportPropertyKey() is called in between.
+ * getNextTransportPropertyKey() is called in between.
*
- * @return Current transport property key. If there are no trasport
+ * @return Current transport property key. If there are no transport
* properties set or if iterator is at the end of the list, returns NULL.
*/
- const char* getCurrentTrasportPropertyKey();
+ const char* getCurrentTransportPropertyKey();
/**
- * Accessor for trasport property values.
+ * Accessor for transport property values.
*
- * This method gives access to the value corresponding to the trasport key
- * currently being pointed by trasport property key iterator.
+ * This method gives access to the value corresponding to the transport key
+ * currently being pointed by transport property key iterator.
* As keys and values are treated as paires, access to the value field is
* based on the access to the key field.
*
- * getFirstTrasportPropertyKey() method must have been called at least once
+ * getFirstTransportPropertyKey() method must have been called at least once
* before this method is called. If not behaviour is undefined.
*
* This method does not advance the iterator.
* Repeated calls always retuen the same value unless
- * getNextTrasportPropertyKey() is called in between.
+ * getNextTransportPropertyKey() is called in between.
*
- * @return Current transport property value. If there are no trasport
+ * @return Current transport property value. If there are no transport
* properties set or if iterator is at the end of the list, returns NULL.
*/
- const char* getCurrentTrasportPropertyValue();
+ const char* getCurrentTransportPropertyValue();
/**
- * Deletes the trasport property key:value pair currently pointed to by
+ * Deletes the transport property key:value pair currently pointed to by
* the iterator.
*/
- void deleteCurrentTrasportProperty();
+ void deleteCurrentTransportProperty();
/**
- * Deletes the given occerance of the trasport property key:value pair
+ * Deletes the given occerance of the transport property key:value pair
* corresponding to the given key.
*
* This method does not advance the iterator in line with the deletes done.
- * In case you want to access the trasport properties after using this
+ * In case you want to access the transport properties after using this
* method, it is advisable to reinitialize the iterator using
- * getFirstTrasportPropertyKey();
+ * getFirstTransportPropertyKey();
* However you can use this method despite where the iterator is
* pointing currently.
*
- * @param pcKey Key of the trasport property key:value pair to be deleted
+ * @param pcKey Key of the transport property key:value pair to be deleted
* If the given key is not set currently, nothing will happen.
* @param uiOccurance Which occerance of the key to be deleted, because
* there can be multiple values for the same key.
* Default is to delete the first occurance.
* Count starts from 1.
*/
- void deleteTrasportProperty(char* pcKey, unsigned int uiOccurance = 1);
+ void deleteTransportProperty(char* pcKey, unsigned int uiOccurance = 1);
/**
* Set whether to Maitain session with service ot not.
@@ -240,7 +240,7 @@
std::vector < std::pair < std::string, std::string > >m_vHTTPHeaders;
/**
- * Trasport header iterator
+ * Transport header iterator
*/
vector <std::pair < std::string, std::string > >::iterator m_viCurrentHeader;