...
The elements used to configure the Jetty runtime are defined in the namespace http://cxf.apache.org/transports/http-jetty/configuration
. It is commonly refered referred to using the prefix httpj
. In order to use the Jetty configuration elements you will need to add the lines shown below to the beans
element of your endpoint's configuration file. In addition, you will need to add the configuration elements' namespace to the xsi:schemaLocation
attribute.
Code Block | ||||
---|---|---|---|---|
| ||||
<beans ... xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration ... xsi:schemaLocation="... http://cxf.apache.org/transports/http-jetty/configuration http://cxf.apache.org/schemas/configuration/http-jetty.xsd ...> |
The engine-factory
element
...
Element | Description |
---|---|
httpj:engine | Specifies the configuration for a particular Jetty runtime instance. |
httpj:identifiedTLSServerParameters | Specifies a reusable set of properties for securing an HTTP server. It has a single attribute, |
httpj:identifiedThreadingParameters | Specifies a reusable set of properties for controlling a Jetty instance's thread pool. It has a single attribute, |
The engine
element
The httpj:engine
element is used to configure specific instances of the Jetty runtime. It has a single attribute, port
, that specifies the number of the port being managed by the Jetty instance.
...
Element | Description |
---|---|
httpj:tlsServerParameters | Specifies a set of properties for configuring the security used for the specific Jetty instance. |
httpj:tlsServerParametersRef | Refers to a set of security properties defined by a |
httpj:threadingParameters | Specifies the size of the thread pool used by the specific Jetty instance. |
httpj:threadingParametersRef | Refers to a set of properties defined by a |
httpj:connector | You can use spring beans syntax to instantiate a connector and set the connector's properties , this connector will be set to the Jetty server engine |
httpj:handlers | You can use spring beans syntax to instantiate a Jetty handler list and set these handlers' properties , the jetty handlers will be set to the Jetty server engine |
httpj:sessionSupport | If the value is true , the Jetty Engine will set up a session manager for the Jetty server engine to maintain the sessions. The default value of it is false. |
httpj:reuseAddress | The the value is true, the Jetty Engine connector's socket will enable the SO_REUSEADDR flage. The default value of it is true. (This feature is available in CXF 2.0.3) |
...