|
From: Bill B. <bb...@re...> - 2008-10-27 12:23:35
|
Yeah, client and server, although headers can be in response or request.
Michael Brackx wrote:
>> I will create a new @Provider interface for this. Something like
>>
>> public interface StringConverter<T>
>> {
>> T fromString(String val);
>> String toString(T val);
>> }
>>
>> And then allow its use with @HeaderParam, @QueryParam, @PathParam,
>> @MatrixParam, and @FormParam injected objects.
>>
>> Sound good?
> yes, it does.
>
> Should the interface not be split in 2 parts? I suppose the from will
> be used at the server side and the to at the client side.
>
> Michael Brackx
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
|