Skip to main content

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

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>


Back to the top