Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Calling a static method within a jetty context xml file

https://www.eclipse.org/jetty/documentation/current/reference-section.html#jetty-xml-call

Jan

On 12 March 2015 at 02:46,  <phiroc@xxxxxxx> wrote:
> Hi,
>
> I need to call the static Resource.newResource(...) (cf. http://download.eclipse.org/jetty/stable-9/apidocs/org/eclipse/jetty/util/resource/Resource.html)
>  method within this xml file.
>
> How do I do that?
>
> Cheers,
>
> Philippe
>
>
>
> <?xml version="1.0"?>
> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd";>
> <Configure class="org.eclipse.jetty.webapp.WebAppContext">
>   <Set name="contextPath">/apdf0c</Set>
>   <Set name="handler">
>          <New id="contextHandler0" class="org.eclipse.jetty.server.handler.ContextHandler" >
>           <Set name="contextPath">/apdf0c</Set>
>           <Set name="handler">
>                 <New id="resourceHandler0" class="org.eclipse.jetty.server.handler.ResourceHandler" >
>                         <Set name="baseResource">
>                                 -- Add Resource here ---
>                         </Set>
>                 </New>
>           </Set>
>          </New>
>   </Set>
> </Configure>
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users



-- 
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'


Back to the top