public class HttpConnectionFactory extends AbstractConnectionFactory implements HttpConfiguration.ConnectionFactory
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.
AbstractLifeCycle.AbstractLifeCycleListenerConnectionFactory.Detecting, ConnectionFactory.UpgradingContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Constructor and Description |
|---|
HttpConnectionFactory() |
HttpConnectionFactory(HttpConfiguration config) |
HttpConnectionFactory(HttpConfiguration config,
HttpCompliance compliance) |
| Modifier and Type | Method and Description |
|---|---|
HttpCompliance |
getHttpCompliance() |
HttpConfiguration |
getHttpConfiguration() |
boolean |
isRecordHttpComplianceViolations() |
Connection |
newConnection(Connector connector,
EndPoint endPoint)
Creates a new
Connection with the given parameters |
void |
setHttpCompliance(HttpCompliance httpCompliance) |
void |
setRecordHttpComplianceViolations(boolean recordHttpComplianceViolations) |
getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize, toStringaddBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopequals, getClass, hashCode, notify, notifyAll, wait, wait, waitdumpContainer, dumpIterable, dumpMapEntries, dumpObjects, dumpSelf, namedpublic HttpConnectionFactory()
public HttpConnectionFactory(@Name(value="config") HttpConfiguration config)
public HttpConnectionFactory(@Name(value="config") HttpConfiguration config, @Name(value="compliance") HttpCompliance compliance)
public HttpConfiguration getHttpConfiguration()
getHttpConfiguration in interface HttpConfiguration.ConnectionFactorypublic HttpCompliance getHttpCompliance()
public boolean isRecordHttpComplianceViolations()
public void setHttpCompliance(HttpCompliance httpCompliance)
httpCompliance - String value of HttpCompliancepublic Connection newConnection(Connector connector, EndPoint endPoint)
ConnectionFactoryCreates a new Connection with the given parameters
newConnection in interface ConnectionFactoryconnector - The Connector creating this connectionendPoint - the EndPoint associated with the connectionConnectionpublic void setRecordHttpComplianceViolations(boolean recordHttpComplianceViolations)
Copyright © 2010 - 2020 Adobe. All Rights Reserved