You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ma...@apache.org on 2008/08/01 10:10:47 UTC
svn commit: r681627 - in /webservices/axis2/trunk/c/axiom/src/attachments:
data_handler.c mime_body_part.c mime_part.c
Author: manjula
Date: Fri Aug 1 01:10:46 2008
New Revision: 681627
URL: http://svn.apache.org/viewvc?rev=681627&view=rev
Log:
Adding some comments.
Modified:
webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c
webservices/axis2/trunk/c/axiom/src/attachments/mime_body_part.c
webservices/axis2/trunk/c/axiom/src/attachments/mime_part.c
Modified: webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c?rev=681627&r1=681626&r2=681627&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c Fri Aug 1 01:10:46 2008
@@ -459,7 +459,6 @@
if (data_handler->data_handler_type == AXIOM_DATA_HANDLER_TYPE_BUFFER)
{
- /*binary_part->part = (axis2_byte_t *)axutil_strdup(env, data_handler->buffer);*/
binary_part->part = (axis2_byte_t *)AXIS2_MALLOC(env->allocator,
(data_handler->buffer_len) * sizeof(axis2_byte_t));
memcpy(binary_part->part, data_handler->buffer, data_handler->buffer_len);
Modified: webservices/axis2/trunk/c/axiom/src/attachments/mime_body_part.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/mime_body_part.c?rev=681627&r1=681626&r2=681627&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/mime_body_part.c (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/mime_body_part.c Fri Aug 1 01:10:46 2008
@@ -262,7 +262,7 @@
}
/* Now we have the complete mime_headers string for a particular mime part.
- * First wrap it as a mime_output_part_t .Then add it to the array list so
+ * First wrap it as a mime_part_t .Then add it to the array list so
* later through the transport this can be written to the wire. */
mime_header_part = axiom_mime_part_create(env);
@@ -280,11 +280,6 @@
axutil_array_list_add(list, env, mime_header_part);
- /* TODO: We only support binary as of now,
- * Need to support "base64", "uuencode", "x-uuencode", "x-uue" and,
- * "quoted-printable"
- */
-
/* Then if the data_handler is there let's add the binary data, may be
* buffer , may be file name and information.
*/
Modified: webservices/axis2/trunk/c/axiom/src/attachments/mime_part.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/mime_part.c?rev=681627&r1=681626&r2=681627&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/mime_part.c (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/mime_part.c Fri Aug 1 01:10:46 2008
@@ -168,8 +168,8 @@
axiom_mime_part_t *crlf2 = NULL;
axis2_status_t status = AXIS2_SUCCESS;
- /* We adding the following format here.
- * --MimeBoundart
+ /* We are adding accoarding to the following format here.
+ * --MimeBoundary
* mime_header1
* mime_header2
* mime_header3 */
@@ -229,7 +229,7 @@
size = axutil_strlen(boundary);
byte_buffer = (axis2_byte_t *)boundary;
- /* There is -- before and after so the lenght of the
+ /* There is -- before and after so the length of the
* actual part is mime_boundary_len + 4 */
byte_stream =
@@ -261,7 +261,7 @@
byte_stream[size + 2] = AXIOM_MIME_BOUNDARY_BYTE;
byte_stream[size + 3] = AXIOM_MIME_BOUNDARY_BYTE;
- /* Now we add this as an mime_part part to
+ /* Now we add this as an mime_part to
* the list. */
final_part = axiom_mime_part_create(env);
@@ -478,10 +478,10 @@
AXIOM_MIME_BODY_PART_ADD_HEADER(root_mime_body_part, env,
AXIOM_MIME_HEADER_CONTENT_ID, content_id_string);
- /* Now first write the headers needed for SOAP */
+ /* Now first insert the headers needed for SOAP */
/* After calling this method we have mime_headers of the SOAP envelope
- * as an mime_part in the array_list */
+ * as a mime_part in the array_list */
status = axiom_mime_part_write_body_part_to_list(env, part_list,
root_mime_body_part, boundary);