You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by chris sleeman <ch...@gmail.com> on 2007/03/07 13:43:26 UTC
Extracting Client IP and message size properties
Hi,
I am new to synapse/axis2 and would be glad if someone could give me any
pointers to this problem.
Basically I am trying to create a custom mediator which would drop messages,
if certain conditions are met - for e.g. if the incoming SOAP message
exceeds a certain size or if it say belongs to some prohibited IP address.
Just wanted to know whether there is any way to extract these properties
from the Synapse message context.
Thanks in advance,
Regards,
Chris
Re: Extracting Client IP and message size properties
Posted by "Asankha C. Perera" <as...@wso2.com>.
Hi Chris
I must warn you though, some of the changes are still in progress in the
SVN trunk and also some samples are not yet updated with the latest
language syntax - so please bear it in mind if you are not using the
0.91 release :-)
asankha
chris sleeman wrote:
> Hi Asankha,
>
> Thanks for the prompt response.
> I will check the latest SVN trunk and try this out.
>
> Regards,
> Chris.
>
> On 3/7/07, Asankha C. Perera <as...@wso2.com> wrote:
>>
>> Hi Chris
>>
>> Yes, you are able to extract transport headers from within Synapse for
>> incoming and outgoing messages as well as set them for a message before
>> you send it out through Synapse. This code however is not available in
>> the 0.91 release, but in the latest SVN trunk. We are in the process of
>> finalizing some changes for the configuration language, and a new
>> build/release candidate should be available shortly - in the next week
>> or two.
>>
>> If the content length header is available you will be able to read the
>> size of a message, but you may not be able to read the size for chunked
>> or identity messages. This is because Synapse may start processing the
>> message before its completely read from the wire.
>>
>> asankha
>>
>> chris sleeman wrote:
>> > Hi,
>> >
>> > I am new to synapse/axis2 and would be glad if someone could give
>> me any
>> > pointers to this problem.
>> >
>> > Basically I am trying to create a custom mediator which would drop
>> > messages,
>> > if certain conditions are met - for e.g. if the incoming SOAP message
>> > exceeds a certain size or if it say belongs to some prohibited IP
>> > address.
>> > Just wanted to know whether there is any way to extract these
>> properties
>> > from the Synapse message context.
>> >
>> > Thanks in advance,
>> > Regards,
>> > Chris
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: synapse-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: synapse-user-help@ws.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-user-help@ws.apache.org
Re: Extracting Client IP and message size properties
Posted by chris sleeman <ch...@gmail.com>.
Hi Asankha,
Thanks for the prompt response.
I will check the latest SVN trunk and try this out.
Regards,
Chris.
On 3/7/07, Asankha C. Perera <as...@wso2.com> wrote:
>
> Hi Chris
>
> Yes, you are able to extract transport headers from within Synapse for
> incoming and outgoing messages as well as set them for a message before
> you send it out through Synapse. This code however is not available in
> the 0.91 release, but in the latest SVN trunk. We are in the process of
> finalizing some changes for the configuration language, and a new
> build/release candidate should be available shortly - in the next week
> or two.
>
> If the content length header is available you will be able to read the
> size of a message, but you may not be able to read the size for chunked
> or identity messages. This is because Synapse may start processing the
> message before its completely read from the wire.
>
> asankha
>
> chris sleeman wrote:
> > Hi,
> >
> > I am new to synapse/axis2 and would be glad if someone could give me any
> > pointers to this problem.
> >
> > Basically I am trying to create a custom mediator which would drop
> > messages,
> > if certain conditions are met - for e.g. if the incoming SOAP message
> > exceeds a certain size or if it say belongs to some prohibited IP
> > address.
> > Just wanted to know whether there is any way to extract these properties
> > from the Synapse message context.
> >
> > Thanks in advance,
> > Regards,
> > Chris
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-user-help@ws.apache.org
>
>
Re: Extracting Client IP and message size properties
Posted by "Asankha C. Perera" <as...@wso2.com>.
Hi Chris
Yes, you are able to extract transport headers from within Synapse for
incoming and outgoing messages as well as set them for a message before
you send it out through Synapse. This code however is not available in
the 0.91 release, but in the latest SVN trunk. We are in the process of
finalizing some changes for the configuration language, and a new
build/release candidate should be available shortly - in the next week
or two.
If the content length header is available you will be able to read the
size of a message, but you may not be able to read the size for chunked
or identity messages. This is because Synapse may start processing the
message before its completely read from the wire.
asankha
chris sleeman wrote:
> Hi,
>
> I am new to synapse/axis2 and would be glad if someone could give me any
> pointers to this problem.
>
> Basically I am trying to create a custom mediator which would drop
> messages,
> if certain conditions are met - for e.g. if the incoming SOAP message
> exceeds a certain size or if it say belongs to some prohibited IP
> address.
> Just wanted to know whether there is any way to extract these properties
> from the Synapse message context.
>
> Thanks in advance,
> Regards,
> Chris
>
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-user-help@ws.apache.org