public static interface ConnectionFactory.Upgrading extends ConnectionFactory
ConnectionFactory.Upgrading
Modifier and Type | Method and Description |
---|---|
Connection |
upgradeConnection(Connector connector,
EndPoint endPoint,
MetaData.Request upgradeRequest,
HttpFields responseFields)
Create a connection for an upgrade request.
|
getProtocol, getProtocols, newConnection
Connection upgradeConnection(Connector connector, EndPoint endPoint, MetaData.Request upgradeRequest, HttpFields responseFields) throws BadMessageException
This is a variation of ConnectionFactory.newConnection(Connector, EndPoint)
that can create (and/or customise)
a connection for an upgrade request. Implementations may call ConnectionFactory.newConnection(Connector, EndPoint)
or
may construct the connection instance themselves.
connector
- The connector to upgrade for.endPoint
- The endpoint of the connection.upgradeRequest
- The meta data of the upgrade request.responseFields
- The fields to be sent with the 101 responseBadMessageException
- Thrown to indicate the upgrade attempt was illegal and that a bad message response should be sent.Copyright © 1995-2015 Webtide. All Rights Reserved.