ConnectionFactory
, HttpConfiguration.ConnectionFactory
public class HttpConnectionFactory extends AbstractConnectionFactory implements HttpConfiguration.ConnectionFactory
Accepts connections either directly or via SSL and/or ALPN chained connection factories. The accepted
HttpConnection
s are configured by a HttpConfiguration
instance that is either created by
default or passed in to the constructor.
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
ConnectionFactory.Upgrading
Constructor | Description |
---|---|
HttpConnectionFactory() |
|
HttpConnectionFactory(HttpConfiguration config) |
|
HttpConnectionFactory(HttpConfiguration config,
org.eclipse.jetty.http.HttpCompliance compliance) |
Modifier and Type | Method | Description |
---|---|---|
org.eclipse.jetty.http.HttpCompliance |
getHttpCompliance() |
|
HttpConfiguration |
getHttpConfiguration() |
|
boolean |
isRecordHttpComplianceViolations() |
|
org.eclipse.jetty.io.Connection |
newConnection(Connector connector,
org.eclipse.jetty.io.EndPoint endPoint) |
Creates a new
Connection with the given parameters |
void |
setHttpCompliance(org.eclipse.jetty.http.HttpCompliance httpCompliance) |
|
void |
setRecordHttpComplianceViolations(boolean recordHttpComplianceViolations) |
configure, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize, toString
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
public HttpConnectionFactory()
public HttpConnectionFactory(@Name("config") HttpConfiguration config)
public HttpConnectionFactory(@Name("config") HttpConfiguration config, @Name("compliance") org.eclipse.jetty.http.HttpCompliance compliance)
public HttpConfiguration getHttpConfiguration()
getHttpConfiguration
in interface HttpConfiguration.ConnectionFactory
public org.eclipse.jetty.http.HttpCompliance getHttpCompliance()
public boolean isRecordHttpComplianceViolations()
public void setHttpCompliance(org.eclipse.jetty.http.HttpCompliance httpCompliance)
httpCompliance
- String value of HttpCompliance
public org.eclipse.jetty.io.Connection newConnection(Connector connector, org.eclipse.jetty.io.EndPoint endPoint)
ConnectionFactory
Creates a new Connection
with the given parameters
newConnection
in interface ConnectionFactory
connector
- The Connector
creating this connectionendPoint
- the EndPoint
associated with the connectionConnection
public void setRecordHttpComplianceViolations(boolean recordHttpComplianceViolations)
Copyright © 1995–2018 Webtide. All rights reserved.