Top Description Fields Constructors Methods
org.mortbay.jetty.nio

public Class InheritedChannelConnector

extends SelectChannelConnector
Class Inheritance
Imports
java.io.IOException, java.lang.reflect.Method, java.nio.channels.Channel, .ServerSocketChannel, org.mortbay.log.Log

An implementation of the SelectChannelConnector which first tries to inherit from a channel provided by the system. If there is no inherited channel available, or if the inherited channel provided not usable, then it will fall back upon normal ServerSocketChannel creation.

Note that System.inheritedChannel() is only available from Java 1.5 onwards. Trying to use this class under Java 1.4 will be the same as using a normal SelectChannelConnector.

Use it with xinetd/inetd, to launch an instance of Jetty on demand. The port used to access pages on the Jetty instance is the same as the port used to launch Jetty.

Author
athena

Field Summary

Inherited from org.mortbay.jetty.nio.SelectChannelConnector:
_acceptChannel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.mortbay.jetty.nio.SelectChannelConnector:
acceptclosecustomizedoStartdoStopgetConnectiongetDelaySelectKeyUpdategetLocalPortgetLowResourcesConnectionsgetLowResourcesMaxIdleTimenewConnectionnewContinuationnewEndPointpersistsetDelaySelectKeyUpdatesetLowResourceMaxIdleTimesetLowResourcesConnectionssetLowResourcesMaxIdleTimesetMaxIdleTime

Constructor Detail

InheritedChannelConnectorback to summary
public InheritedChannelConnector()

Method Detail

openback to summary
public void open() throws IOException

Overrides org.mortbay.jetty.nio.SelectChannelConnector.open.

Implements org.mortbay.jetty.Connector.open.

Doc from org.mortbay.jetty.Connector.open.

Opens the connector