jicarilla-sandbox/platform/components/http/api/src/java/org/jicarilla/http HTTPMessage.java,1.3,1.4

[email protected]
Newsgroups gmane.comp.java.jicarilla.cvs
Message-ID <[email protected]>
Update of /cvsroot/jicarilla/jicarilla-sandbox/platform/components/http/api/src/java/org/jicarilla/http
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23839/platform/components/http/api/src/java/org/jicarilla/http

Modified Files:
	HTTPMessage.java 
Log Message:
Initial version of the really big message redirector.

Index: HTTPMessage.java
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/components/http/api/src/java/org/jicarilla/http/HTTPMessage.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- HTTPMessage.java	11 Jan 2004 12:28:11 -0000	1.3
+++ HTTPMessage.java	20 Feb 2004 14:21:42 -0000	1.4
@@ -281,6 +281,13 @@
         return (ByteBuffer[])m_bodyParts.toArray( new ByteBuffer[0] );
     }
 
+    public String getBodyAsString()
+    {
+        ByteBuffer[] buf = getBodyParts();
+        String body = NioUtil.toString( buf ); // ouch!
+        return body;
+    }
+
     // ----------------------------------------------------------------------
     //  Convenience response methods
     // ----------------------------------------------------------------------



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.