Calling a static method within a jetty context xml file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Calling a static method within a jetty context xml file

phiroc
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
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Calling a static method within a jetty context xml file

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

Jan

On 12 March 2015 at 02:46,  <[hidden email]> 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
> [hidden email]
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Jan Bartel <[hidden email]>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'
_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users