camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: RestDSL jetty access logs
Date Fri, 13 Feb 2015 03:19:29 GMT
Hi, 

You can setup the endpoint property inside of the restConfiguration
<restConfiguration component="jetty" port="8080" host="0.0.0.0">
 <endpointProperty>
   <restProperty key=“filters” value=“ref">
  </endpointProperty>
</restConfiguration>
--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On February 13, 2015 at 8:02:35 AM, Minh Tran (darth.minhster@gmail.com) wrote:
> Hi
>  
> I'm using the RestDSL in 2.14.1 and I want to enable access logs while using jetty.
>  
> I've configured the rest to point to jetty like this
>  
>  
> I would like to use Logback's TeeFilter servlet filter to do actual logging for me but
 
> I cannot seem to find out a way to register the filter against the JettyHttpComponent.
 
> The setFilters method on it is private. It seems to be only accessible when used in the
 
> uri like There's no place to do this while using  
> the RestDSL?
>  
> Does anyone have any suggestions? Thanks.


Mime
View raw message