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

public Class HttpConnectionFactory

extends AbstractConnectionFactory
implements ConnectionFactory
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.server.HttpConfiguration.ConnectionFactory
Imports
java.util.Objects, org.eclipse.jetty.http.ComplianceViolation, .HttpVersion, org.eclipse.jetty.io.Connection, .EndPoint, org.eclipse.jetty.server.internal.HttpConnection, org.eclipse.jetty.util.annotation.Name, org.slf4j.Logger, .LoggerFactory

A Connection Factory for HTTP Connections.

Accepts connections either directly or via SSL and/or ALPN chained connection factories. The accepted HttpConnections are configured by a HttpConfiguration instance that is either created by default or passed in to the constructor.

Field Summary

Modifier and TypeField and Description
private final HttpConfiguration
private boolean
private boolean
private static final Logger

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public HttpConfiguration
public boolean
isRecordHttpComplianceViolations()

Deprecated for removal since 12.0.6. use HttpConfiguration#getComplianceViolationListeners() instead to know if there are any ComplianceViolation.Listener to notify.
public boolean
public boolean
public Connection
newConnection(Connector
The Connector creating this connection
connector
,
EndPoint
the EndPoint associated with the connection
endPoint
)

Implements org.eclipse.jetty.server.ConnectionFactory.newConnection.

Creates a new Connection with the given parameters

public void
setRecordHttpComplianceViolations(boolean recordHttpComplianceViolations)

Deprecated for removal since 12.0.6. use HttpConfiguration#addComplianceViolationListener(ComplianceViolation.Listener) instead.
Does nothing.
public void
setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers)

public void
setUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers)

Inherited from org.eclipse.jetty.server.AbstractConnectionFactory:
configurefindNextProtocolfindNextProtocolgetFactoriesgetInputBufferSizegetProtocolgetProtocolssetInputBufferSizetoString

Field Detail

_configback to summary
private final HttpConfiguration _config
_useInputDirectByteBuffersback to summary
private boolean _useInputDirectByteBuffers
_useOutputDirectByteBuffersback to summary
private boolean _useOutputDirectByteBuffers
LOGback to summary
private static final Logger LOG

Hides org.eclipse.jetty.util.component.ContainerLifeCycle.LOG.

Constructor Detail

HttpConnectionFactoryback to summary
public HttpConnectionFactory()
HttpConnectionFactoryback to summary
public HttpConnectionFactory(HttpConfiguration config)

Method Detail

getHttpConfigurationback to summary
public HttpConfiguration getHttpConfiguration()

Implements org.eclipse.jetty.server.HttpConfiguration.ConnectionFactory.getHttpConfiguration.

Annotations
@Override
isRecordHttpComplianceViolationsback to summary
public boolean isRecordHttpComplianceViolations()

Deprecated

for removal since 12.0.6.

use HttpConfiguration#getComplianceViolationListeners() instead to know if there are any ComplianceViolation.Listener to notify. this method will be removed in Jetty 12.1.0

Annotations
@Deprecated
since:12.0.6
forRemoval:true
isUseInputDirectByteBuffersback to summary
public boolean isUseInputDirectByteBuffers()
isUseOutputDirectByteBuffersback to summary
public boolean isUseOutputDirectByteBuffers()
newConnectionback to summary
public Connection newConnection(Connector connector, EndPoint endPoint)

Implements org.eclipse.jetty.server.ConnectionFactory.newConnection.

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

Creates a new Connection with the given parameters

Parameters
connector:Connector

The Connector creating this connection

endPoint:EndPoint

the EndPoint associated with the connection

Returns:Connection

a new Connection

Annotations
@Override
setRecordHttpComplianceViolationsback to summary
public void setRecordHttpComplianceViolations(boolean recordHttpComplianceViolations)

Deprecated

for removal since 12.0.6.

use HttpConfiguration#addComplianceViolationListener(ComplianceViolation.Listener) instead. this method will be removed in Jetty 12.1.0

Does nothing.

Annotations
@Deprecated
since:12.0.6
forRemoval:true
setUseInputDirectByteBuffersback to summary
public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers)
setUseOutputDirectByteBuffersback to summary
public void setUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers)