dev@glassfish.java.net

Re: name/value class?

From: Bill Shannon <bill.shannon_at_oracle.com>
Date: Wed, 28 Apr 2010 17:25:51 -0700

The API I'm working with uses HttpURLConnection underneath, but I wasn't
planning to expose it directly. I just want to expose the ability to
specify headers that will be added to it when it's created.


Tom Mueller wrote on 04/28/10 05:12 PM:
> Can you use an HttpURLConnection? That might be overkill if all you want
> is the header management. And there is the problem of where to get one
> if you don't actually have a URL.
>
> Tom
>
> On 4/28/2010 4:32 PM, Bill Shannon wrote:
>> I need to keep a list of (HTTP) headers, essentially a list of name/value
>> string pairs. Anyone want to suggest a class in the core/common GlassFish
>> packages that I could use?
>>
>> javax.mail.Header would be perfect (:-)), but I don't want to
>> introduce that
>> dependency.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> --
> Oracle <http://www.oracle.com>
> Tom Mueller | Principal Member of Technical Staff
> Phone: +1 4029169943 | Fax: +1 4029169943 | Mobile: +1 4027206872
> 21915 Hillandale Dr | Elkhorn, NE 68022
> Green Oracle <http://www.oracle.com/commitment> Oracle is committed to
> developing practices and products that help protect the environment