Connection instances for Connectors.
A Connection factory is responsible for instantiating and configuring a Connection instance
to handle an EndPoint accepted by a Connector.
A ConnectionFactory has a protocol name that represents the protocol of the Connections created. Example of protocol names include:
| Modifier and Type | Class and Description |
|---|---|
| public static interface | ConnectionFactory.
A ConnectionFactory that can configure the connector. |
| public static interface | ConnectionFactory.
Connections created by this factory MUST implement |
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public List | getProtocols()
Returns: A list of alternative protocol names/versions including the primary protocol. |
| public Connection | Returns: a newConnectionThe connector, EndPoint Connector creating this connectionthe endPoint)EndPoint associated with the connectionCreates a new |
| getProtocol | back to summary |
|---|---|
public String getProtocol()
| |
| getProtocols | back to summary |
|---|---|
| public List | |
| newConnection | back to summary |
|---|---|
| public Connection newConnection(Connector connector, EndPoint endPoint) Creates a new
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| configure | back to summary |
|---|---|
| public void configure(Connector connector) Called during
| |
Connections created by this factory MUST implement Connection..
| Modifier and Type | Class and Description |
|---|---|
| public static enum | ConnectionFactory.
The possible outcomes of the |
| Modifier and Type | Method and Description |
|---|---|
| public ConnectionFactory. | Returns: One of:
the buffer. buffer)Check the bytes in the given |
| detect | back to summary |
|---|---|
| public ConnectionFactory. Check the bytes in the given The
| |
detect(ByteBuffer) method.
| Modifier and Type | Field and Description |
|---|---|
| public static final ConnectionFactory. | NEED_MORE_BYTES
A |
| public static final ConnectionFactory. | NOT_RECOGNIZED
A |
| public static final ConnectionFactory. | RECOGNIZED
A |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ConnectionFactory. | |
| public static ConnectionFactory. |
| NEED_MORE_BYTES | back to summary |
|---|---|
| public static final ConnectionFactory. A | |
| NOT_RECOGNIZED | back to summary |
|---|---|
| public static final ConnectionFactory. A | |
| RECOGNIZED | back to summary |
|---|---|
| public static final ConnectionFactory. A | |
| Detection | back to summary |
|---|---|
| private Detection() | |
| valueOf | back to summary |
|---|---|
| public static ConnectionFactory. | |
| values | back to summary |
|---|---|
| public static ConnectionFactory. | |
| Modifier and Type | Method and Description |
|---|---|
| public Connection | Returns: Null to indicate that request processing should continue normally without upgrading. A new connection instance to indicate that the upgrade should proceed.The connector to upgrade for. connector, EndPoint The endpoint of the connection. endPoint, MetaData.The meta data of the upgrade request. upgradeRequest,The fields to be sent with the 101 response responseFieldsCreate a connection for an upgrade request. |
| upgradeConnection | back to summary |
|---|---|
| public Connection upgradeConnection(Connector connector, EndPoint endPoint, MetaData. Create a connection for an upgrade request. This is a variation of
| |