alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Jetty example source code file (configure.xml)

This example Jetty source code file (configure.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Jetty tags/keywords

arg, arg, call, call, configure, get, item, new, new, put, put, set, string, test

The Jetty configure.xml source code

<?xml version="1.0"  encoding="ISO-8859-1"?> 
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.2//EN" "http://jetty.mortbay.org/configure_1_2.dtd">

<Configure class="org.mortbay.xml.TestConfiguration">

  <Set name="Test">SetValue
  <Set name="Test" type="int">2

  <Put name="Test">PutValue
  <Put name="TestDft">2
  <Put name="TestInt" type="int">2

  <Put name="Trim">
    PutValue
  </Put>

  <Put name="Null">

  <Put name="NullTrim">
  </Put>

  <Put name="Object">
      <Arg>1.2345
  </New>
 
  <Put name="ObjectTrim">
    <New class="java.lang.Double">
      <Arg>1.2345
    </New>
  </Put>

  <Put name="Objects">
      <Arg>-1
  </New>
      <Arg>String
  </New>


  <Put name="ObjectsTrim">
    <New class="java.lang.Integer">
      <Arg>-1
  </New>
      <Arg>String
  </New>


  <Put name="String" type="String">
    PutValue
  </Put>

  <Put name="NullString" type="String">

  <Put name="WhiteSpace" type="String">
  </Put>

  <Put name="ObjectString" type="String">
    <New class="java.lang.Double">
      <Arg>1.2345
    </New>
  </Put>

  <Put name="ObjectsString" type="String">
      <Arg>-1
  </New>
      <Arg>String
  </New>


  <Put name="ObjectsWhiteString">
    <New class="java.lang.Integer">
      <Arg>-1
  </New>
  <New class="java.lang.String">
      <Arg>String
  </New>

  <Put name="SystemProperty" >/stuff
  <Put name="Property">
  <Put name="SomethingElse">
  <Put name="Boolean" type="Boolean">True
  <Put name="Float" type="Float">2.3

  <Call name="call">
  </Call>

  <Call name="call">
    <Arg type="boolean">false
  </Call>

  <Call name="call">
    <Arg type="boolean">true
    <Put name="nested">put
    <Set name="Test">Call1
    <Set name="Test" type="int">4
    <Call name="call">
      <Arg type="URL">http://www.mortbay.com/
      <Arg type="boolean">false
    </Call>
  </Call>

  <Get name="String">
     <Call name="toString"/>
  </Get>

  <Call name="callStatic" class="org.mortbay.xml.TestConfiguration"/>

  <Call name="call">
    <Arg>
      <Item>Blah
      <Item type="String">1.2.3.4:5678
      <Item>1.2345
      <Item>
    </Array>
  </Call>

  <Call name="call">
    <Arg>
      <Item type="int">1
      <Item type="int">2
      <Item type="int">3
      <Item>
    </Array>
  </Call>

  <Set name="testField1">
  <Set name="testField2">
  <Set name="VALUE" type="int">42

</Configure>


Other Jetty examples (source code examples)

Here is a short list of links related to this Jetty configure.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.