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.UpgradingContainer.InheritedListener, Container.ListenerLifeCycle.ListenerFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING| 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) |
configure, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize, toStringaddBean, 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, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic 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 © 1995–2017 Webtide. All rights reserved.