Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 90475 invoked from network); 28 Mar 2007 08:17:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Mar 2007 08:17:23 -0000 Received: (qmail 45699 invoked by uid 500); 28 Mar 2007 08:17:31 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 45550 invoked by uid 500); 28 Mar 2007 08:17:30 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 45534 invoked by uid 99); 28 Mar 2007 08:17:30 -0000 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 01:17:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3DF19714064 for ; Wed, 28 Mar 2007 01:16:32 -0700 (PDT) Message-ID: <29641278.1175069792221.JavaMail.jira@brutus> Date: Wed, 28 Mar 2007 01:16:32 -0700 (PDT) From: "Samisa Abeysinghe (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2C-269) Try to clean up axis2_stream In-Reply-To: <21230756.1157799682281.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2C-269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Samisa Abeysinghe resolved AXIS2C-269. -------------------------------------- Resolution: Fixed Added flush and close as well. Other issues were also resolved as per the previous comments > Try to clean up axis2_stream > ---------------------------- > > Key: AXIS2C-269 > URL: https://issues.apache.org/jira/browse/AXIS2C-269 > Project: Axis2-C > Issue Type: Improvement > Components: util > Affects Versions: Current (Nightly) > Reporter: James Clark > Assigned To: Samisa Abeysinghe > Priority: Minor > Fix For: 1.0.0 > > > For doing encryption and signing right, it will be important to have a clean, minimal stream interface. axis2_stream is a bit crufty at the moment. > Specifically, the get_type method is bogus: if you have an OO type (which stream should be), then you shouldn't have a method returning a type-code for each implementation. It only seems to be used in axis2_http_transport_utils_on_data_request. I don't understand what that's doing, but I'm fairly sure get_type is not the best way to it. > I would also suggest having separate input and output streams (unless there are really cases where you need to have a random access stream that can be both read and written). > Having both get_char and read in an interface is a bad idea. Have just read. You can implement get_char as a function on top of read. > unget is a bad idea on your fundamental stream type. If you really need it, create a lookahead_stream derived from stream that provides this additional operation and forwards to an underlying regular stream. Providing a peek method is better than unget (it's clear what the semantics of multiple peeks are). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org