Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Administration Reference

- Previous: F
- Next: I

# H

## http-listener

Defines an HTTP listen socket.

### Superelements

http-service

### Subelements

The following table describes subelements for the `http-listener` element.

Table 1–45 `http-listener` Subelements

Element | Required | Description
--- | --- | ---
ssl | zero or one | Defines SSL parameters.
property | zero or more | Specifies a property or a variable.

### Attributes

The following table describes attributes for the `http-listener` element.

Table 1–46 `http-listener` Attributes

Attribute | Default | Description
--- | --- | ---
`id` | none | The unique listener name. An `http-listener` name cannot begin with a number.
`address` | none | IP address of the listener. Can be in dotted-pair or IPv6 notation. Can be `any` (for `INADDR_ANY`) to listen on all IP addresses. Can be a hostname.
`port` | none | Port number on which the listener listens. Legal values are `1` - `65535`. On UNIX, creating sockets that listen on ports `1` - `1024` requires superuser privileges. Configuring an SSL listener to listen on port 443 is standard.
`acceptor-threads` | `1` | (optional) Number of acceptor threads for the listener, typically the number of processors in the machine. Legal values are `1` - `1024` .
`security-enabled` | `false` | (optional) Determines whether the listener runs SSL. To turn SSL2 or SSL3 on or off and set ciphers, use an `ssl` subelement.
`default-virtual-server` | none | References the `id` attribute of the default virtual-server for this particular listener.
`server-name` | none | Tells the server what to put in the host name section of any URLs it sends to the client. This affects URLs the server automatically generates; it doesn’t affect the URLs for directories and files stored in the server. If your server uses an alias, the `server-name` should be the alias name. If a colon and port number are appended, that port is used in URLs the server sends to the client.
`redirect-port` | none | (optional) If the listener is supporting non-SSL requests and a request is received for which a matching `<security-constraint>` requires SSL transport, the request is automatically redirected to the port number specified here.
`xpowered-by` | `true` | (optional) If true, `X-Powered-By` headers are used according to the Servlet 2.4 and JSP 2.0 specifications.
`enabled` | `true` | (optional) Determines whether the listener is active.

## http-service

Defines the HTTP service.

### Superelements

config

### Subelements

The following table describes subelements for the `http-service` element.

Table 1–47 `http-service` Subelements

Element | Required | Description
--- | --- | ---
http-listener | one or more | Defines an HTTP listen socket.
virtual-server | one or more | Defines a virtual server.
property | zero or more | Specifies a property or a variable.

### Properties

The following table describes properties for the `http-service` element, which configure SSL for all http-listener subelements.

Table 1–48 `http-service` Properties

Property | Default | Description
--- | --- | ---
`monitoring-cache-enabled` | `true` | If `true`, enables the monitoring cache.
`monitoring-cache-refresh-in-millis` | `5000` | Specifies the interval between refreshes of the monitoring cache.
`ssl-cache-entries` | `10000` | Specifies the number of SSL sessions to be cached.
`ssl3-session-timeout` | `86400` | Specifies the interval at which SSL3 sessions are cached.
`ssl-client-auth-data-limit` | `1048576` | Specifies the maximum amount of data cached during the handshake phase.
`ssl-client-auth-timeout` | `60` | Specifies the timeout for the client certificate phase.
`ssl-session-timeout` | `100` | Specifies the interval at which SSL2 sessions are cached.
`keep-alive-query-mean-time` | `100` | Specifies the keep-alive latency.
`keep-alive-query-max-sleep-time` | `100` | Specifies the upper limit to the time slept after polling keep-alive connections for further requests.
`stack-size` | depends on operating system | Specifies the maximum stack size of the native thread.

- Previous: F
- Next: I

- © 2010, Oracle Corporation and/or its affiliates