cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Diephouse <...@envoisolutions.com>
Subject Re: Http path
Date Thu, 26 Oct 2006 13:24:33 GMT
James Mao wrote:

> In JettyHTTPDestination.setMessageObserver we have
> pathInContext.equals(getName())
> May i change to pathInContext.startWith(getName()) ?
>
> The reason is that in REST demo, we should be able to do this:
> http://localhost:8080/jaxws-restful/addnumbers?num1=10&num2=20
> And we also should be able to do this:
> http://localhost:8080/jaxws-restful/addnumbers/num1/10/num2/20
>
> In jaxws ri they support both, i think we should also support the last.
>
> Thoughts?
>
> James.

You can change this by doing:

endpointInfo.setProperty("contextMatchStrategy", "stem")

If you're using the ServerFactoryBean you can set the properties on 
that, which will set the properties on the endpointinfo that is being 
created:

http://fisheye3.cenqua.com/browse/celtixfire/trunk/rt/bindings/http/src/test/java/org/apache/cxf/binding/http/wrapped/WrappedServiceTest.java?r=467687#l46

- Dan

-- 
Dan Diephouse
(616) 971-2053
Envoi Solutions LLC
http://netzooid.com


Mime
View raw message