[Index]

web:ui-server


Provide an Oddjob Web UI Server. This provides an incredibly simple Server to get up and running quickly. For Basic Authentication or SSL then the web:server must be used with an web:remote-handler.

Property Summary

allowCrossOrigin Is cross-origin content allowed?
classLoader The classloader passed to Jetty.
jmxServer An Oddjob JMX Server.
multiPartConfig Set parameters for MultiPartConfig so that file upload from a form works.
name The name of service.
port The port number the server listens on.
root The root component to expose.
uploadDirectory Upload directory.
webappDir The directory for the html files for oddjob web.
webappResource The class path to the html files for oddjob web.

Example Summary

Example 1 The simplest web server without any handlers.

Property Detail

allowCrossOrigin

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo. Default to false.

Is cross-origin content allowed?

classLoader

Configured ByELEMENT
AccessREAD_WRITE
RequiredNo.

The classloader passed to Jetty. If not set then Jetty and RESTEasy use the Thread context classloader. This is set by Oddjob's service adapter to be the classloader that loaded this component which will be the Oddball classloader. Setting this classloader will be complicated as it may require the Oddball classloader as a parent.

jmxServer

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo, creates a default internal one.

An Oddjob JMX Server.

multiPartConfig

Configured ByELEMENT
AccessREAD_WRITE
RequiredNo. Defaults are used.

Set parameters for MultiPartConfig so that file upload from a form works.

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

The name of service. Can be any text.

port

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo, uses a random available port.

The port number the server listens on.

root

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo, but a Jmx Server must be provided instead.

The root component to expose.

uploadDirectory

Configured ByELEMENT
AccessREAD_WRITE
RequiredNo. Defaults tmp dir.

Upload directory. Required for an action form that specifies a file.

webappDir

Configured ByELEMENT
AccessREAD_WRITE
RequiredNo.

The directory for the html files for oddjob web. Mainly used for development to save stopping and starting Jetty.

webappResource

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo. Defaults to /dist on the class path.

The class path to the html files for oddjob web.


Examples

Example 1

The simplest web server without any handlers.

<oddjob id="this">
  <job>
    <web:server id="server" xmlns:web="oddjob:web"/>
  </job>
</oddjob>


(c) R Gordon Ltd 2005 - Present