cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Mao <james....@iona.com>
Subject Re: Http path
Date Fri, 27 Oct 2006 06:22:57 GMT
Hi Dan,

Thanks for your reply, but i'm not using in the test, i would like to 
enable this by default, and i also think that we should allow user to 
get the httpcontext, from that we can get the context path etc.

Thanks,
James.

Dan Diephouse 写道:
> 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
>


Mime
View raw message