tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http MimeHeaders.java
Date Sun, 10 Mar 2002 06:35:54 GMT
You really like making work for me, don't you? ;-)

I'll port this to 3.3 branch unless somebody objects.  Adding a method that
isn't currently called by 3.3 doesn't hurt anything, and o.a.t.* classes
should (need to) be the same in j-t-c and 3.3 for now.
----- Original Message -----
From: <remm@apache.org>
To: <jakarta-tomcat-connectors-cvs@apache.org>
Sent: Saturday, March 09, 2002 10:54 AM
Subject: cvs commit:
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http
MimeHeaders.java


> remm        02/03/09 10:54:28
>
>   Modified:    util/java/org/apache/tomcat/util/http MimeHeaders.java
>   Log:
>   - Add a method allowing to create a header using a char buffer.
>
>   Revision  Changes    Path
>   1.3       +9 -0
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/MimeHeaders.
java
>
>   Index: MimeHeaders.java
>   ===================================================================
>   RCS file:
/home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/Mi
meHeaders.java,v
>   retrieving revision 1.2
>   retrieving revision 1.3
>   diff -u -r1.2 -r1.3
>   --- MimeHeaders.java 31 Dec 2001 18:20:05 -0000 1.2
>   +++ MimeHeaders.java 9 Mar 2002 18:54:28 -0000 1.3
>   @@ -288,6 +288,15 @@
>    return mhf.getValue();
>        }
>
>   +    /** Create a new named header using translated char[].
>   +     */
>   +    public MessageBytes addValue(char c[], int startN, int endN)
>   +    {
>   + MimeHeaderField mhf=createHeader();
>   + mhf.getName().setChars(c, startN, endN);
>   + return mhf.getValue();
>   +    }
>   +
>        /** Allow "set" operations -
>            return a MessageBytes container for the
>    header value ( existing header or new
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-dev-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message