Sunday, February 13, 2011

Accessing the HTTP method within a WSO2 ESB Mediator

I couldn't find this in the ESB property documentation - so thought of keeping a note here.

Also - there is a chance that you can confuse the constant "HTTP_METHOD" with org.apache.axis2.transport.http.HTTPConstants.HTTP_METHOD - which internally refers to ""HTTP_METHOD_OBJECT""
public boolean mediate(org.apache.synapse.MessageContext synCtx) {
org.apache.synapse.core.axis2.Axis2MessageContext.Axis2MessageContext axis2Msgcontext = null;
org.apache.axis2.context.MessageContext msgContext  = null;
axis2Msgcontext = (Axis2MessageContext) synCtx;
msgContext = axis2Msgcontext.getAxis2MessageContext();
String httpMethod = (String) msgContext.getProperty("HTTP_METHOD");


阿童木 said...

Whether its Patek Philippe, Rolex or replica rolex added brands, their new accepted models are do altered and acquired from uk replica watches their best pieces we see a absolute retreat to the best market. There are beneath and beneath of these abundant best pieces that abide in aberrant condition and those absolutely aberrant pieces will alone abide to acknowledge over time, said Reginald Brack, chief carnality admiral and replica watches uk all-embracing arch of retail for watches at Christie's in an April, 2015 Cigar Aficionado annual feature.

caiyan said...

coach factory outlet
air jordan retro
adidas super color
coach factory outlet
canada goose outlet online
canada goose outlet
ray ban sunglasses discount
coach outlet
pandora charms

chenmeinv0 said...

polo shirts
canada goose jackets
tory burch outlet
moncler coats
adidas originals zx flux
pandora bracelet
clippers jerseys
retro jordan 7
coach outlet store online clearances
ray ban glasses

chenmeinv0 said...

christian louboutin outlet
true religion outlet
michael kors outlet
burberry scarf
coach outlet store online
cheap jordan shoes
pandora charms
nike air max 2017
coach outlet store online
ferragamo outlet

Hua Cai said...

coach outlet
cleveland cavaliers jerseys
sac louis vuitton pas cher
true religion outlet
cheap ray ban sunglasses
michael kors factory outlet
louis vuitton
longchamp outlet
oakley sunglasses
louis vuitton

dong dong23 said...

michael kors handbags
ray ban outlet
michael kors outlet clearance
coach outlet store online clearances
oakley sunglasses discount
air jordan shoes
kate spade purses
michael kors bags
michael kors purses
air max 2017