---------- Forwarded message ----------
From: Nirmal Fernando <[email protected]>
Date: Thu, Aug 9, 2012 at 9:53 AM
Subject: Re: [Dev] Any content type filter (.*) is not working
To: Hiranya Jayathilaka <[email protected]>



On Thu, Aug 9, 2012 at 9:46 AM, Hiranya Jayathilaka <[email protected]>wrote:

>
>
> On Thu, Aug 9, 2012 at 9:12 AM, Nirmal Fernando <[email protected]> wrote:
>
>> Hi All,
>>
>> In axis2.xml, We've added following configuration under messageBuilders
>> element.
>>
>> <messageBuilder contentType=".*"
>>                         class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
>>
>> Our expectation is to set "org.wso2.carbon.relay.BinaryRelayBuilder" as
>> the message builder of a request of any content type.
>>
>> But this seems to be broken in trunk.
>
>
> No, actually it never worked correctly. Axis2 special cases several
> content types (eg: text/xml, application/xml) and hence unless we
> explicitly set the builder in axis2.xml against the content type, this
> won't work as expected.
>

Thanks Hiranya for the reply. Yes, debugging revealed that it uses some
default builders for some content types [1], hence the above regex
*only*won't work.


[1]
{application/xml=org.apache.axis2.builder.ApplicationXMLBuilder@7224eaaa,
text/plain=org.apache.axis2.format.PlainTextBuilder@55aa7971,
application/xop+xml=org.apache.axis2.builder.MTOMBuilder@2b0b15a7,
multipart/related=org.apache.axis2.builder.MIMEBuilder@64ba9d04,
.*=org.wso2.carbon.relay.BinaryRelayBuilder@179aa546,
application/octet-stream=org.apache.axis2.format.BinaryBuilder@29d8a2c5,
application/x-www-form-urlencoded=org.apache.axis2.builder.XFormURLEncodedBuilder@4da648f9,
text/xml=org.apache.axis2.builder.SOAPBuilder@6000fb42,
application/soap+xml=org.apache.axis2.builder.SOAPBuilder@606fdb4b}




>
> Thanks,
> Hiranya
>
>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Software Engineer- Platform Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Hiranya Jayathilaka
> Senior Technical Lead;
> WSO2 Inc.;  http://wso2.org
> E-mail: [email protected];  Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
>



-- 

Thanks & regards,
Nirmal

Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/



-- 

Thanks & regards,
Nirmal

Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to