Top Description Fields Constructors Methods
org.eclipse.jetty.server

public abstract Class AbstractConnectionFactory

extends ContainerLifeCycle
implements ConnectionFactory
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.server.ConnectionFactory
Known Direct Subclasses
org.eclipse.jetty.server.HttpConnectionFactory, org.eclipse.jetty.server.NegotiatingServerConnectionFactory, org.eclipse.jetty.server.ProxyConnectionFactory.ProxyV1ConnectionFactory, org.eclipse.jetty.server.ProxyConnectionFactory.ProxyV2ConnectionFactory, org.eclipse.jetty.server.SslConnectionFactory, org.eclipse.jetty.server.DetectorConnectionFactory
Annotations
@ManagedObject
Imports
java.util.Iterator, .List, org.eclipse.jetty.io.AbstractConnection, .EndPoint, org.eclipse.jetty.util.ArrayUtil, org.eclipse.jetty.util.annotation.ManagedAttribute, .ManagedObject, org.eclipse.jetty.util.component.ContainerLifeCycle, org.eclipse.jetty.util.ssl.SslContextFactory

Provides the common handling for ConnectionFactory implementations.

Field Summary

Modifier and TypeField and Description
private int
private final String
private final List<String>

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
protected AbstractConnection
configure(AbstractConnection connection, Connector connector, EndPoint endPoint)

protected String
protected static String
findNextProtocol(Connector connector, String currentProtocol)

public static ConnectionFactory[]
getFactories(SslContextFactory.Server sslContextFactory, ConnectionFactory... factories)

public int
public String
public List<String>
public void
public String
toString()

Overrides org.eclipse.jetty.util.component.AbstractLifeCycle.toString.

Returns a string representation of the object.

Inherited from org.eclipse.jetty.util.component.ContainerLifeCycle:
addBeanaddBeanaddEventListeneraddManagedcontainsdestroydoStartdoStopdumpdumpdumpdumpObjectsdumpStdErrgetBeangetBeansgetBeansgetContainedBeansgetContainedBeansisAutoisManagedisUnmanagedmanageremoveBeanremoveBeansremoveEventListenersetBeansstartstopunmanageupdateBeanupdateBeanupdateBeansupdateBeans

Field Detail

_inputBufferSizeback to summary
private int _inputBufferSize
_protocolback to summary
private final String _protocol
_protocolsback to summary
private final List<String> _protocols

Constructor Detail

AbstractConnectionFactoryback to summary
protected AbstractConnectionFactory(String protocol)
AbstractConnectionFactoryback to summary
protected AbstractConnectionFactory(String... protocols)

Method Detail

configureback to summary
protected AbstractConnection configure(AbstractConnection connection, Connector connector, EndPoint endPoint)
findNextProtocolback to summary
protected String findNextProtocol(Connector connector)
findNextProtocolback to summary
protected static String findNextProtocol(Connector connector, String currentProtocol)
getFactoriesback to summary
public static ConnectionFactory[] getFactories(SslContextFactory.Server sslContextFactory, ConnectionFactory... factories)
getInputBufferSizeback to summary
public int getInputBufferSize()
Annotations
@ManagedAttribute:The buffer size used to read from the network
getProtocolback to summary
public String getProtocol()

Implements org.eclipse.jetty.server.ConnectionFactory.getProtocol.

Returns:String

Doc from org.eclipse.jetty.server.ConnectionFactory.getProtocol.

A string representing the primary protocol name.

Annotations
@Override
@ManagedAttribute:The protocol name
readonly:true
getProtocolsback to summary
public List<String> getProtocols()

Implements org.eclipse.jetty.server.ConnectionFactory.getProtocols.

Returns:List<String>

Doc from org.eclipse.jetty.server.ConnectionFactory.getProtocols.

A list of alternative protocol names/versions including the primary protocol.

Annotations
@Override
setInputBufferSizeback to summary
public void setInputBufferSize(int size)
toStringback to summary
public String toString()

Overrides org.eclipse.jetty.util.component.AbstractLifeCycle.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override