Top Fields Constructors Methods
org.eclipse.jetty.server

public Class SslConnectionFactory

extends AbstractConnectionFactory
implements Detecting, Configuring
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.server.ConnectionFactory.Configuring, org.eclipse.jetty.server.ConnectionFactory, org.eclipse.jetty.server.ConnectionFactory.Detecting
Imports
java.net.InetSocketAddress, .SocketAddress, java.nio.ByteBuffer, javax.net.ssl.SSLEngine, .SSLSession, org.eclipse.jetty.http.HttpVersion, org.eclipse.jetty.io.AbstractConnection, .Connection, .EndPoint, org.eclipse.jetty.io.ssl.SslConnection, .SslHandshakeListener, org.eclipse.jetty.util.annotation.Name, org.eclipse.jetty.util.component.ContainerLifeCycle, org.eclipse.jetty.util.ssl.SslContextFactory

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private boolean
private final String
private final SslContextFactory.Server
private static final int
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public void
configure(Connector
The connector to configure
connector
)

Implements org.eclipse.jetty.server.ConnectionFactory.Configuring.configure.

Called during Connector#start().
protected AbstractConnection
public ConnectionFactory.Detecting.Detection
detect(ByteBuffer
the buffer.
buffer
)

Implements org.eclipse.jetty.server.ConnectionFactory.Detecting.detect.

Check the bytes in the given buffer to figure out if this Detecting instance can work with them or not.

protected void
doStart()

Overrides org.eclipse.jetty.util.component.ContainerLifeCycle.doStart.

Starts the managed lifecycle beans in the order they were added.
public String
public SslContextFactory.Server
public boolean
public boolean
public boolean
public Connection
newConnection(Connector
The Connector creating this connection
connector
,
EndPoint
the EndPoint associated with the connection
endPoint
)

Implements org.eclipse.jetty.server.ConnectionFactory.newConnection.

Creates a new Connection with the given parameters

protected SslConnection
newSslConnection(Connector connector, EndPoint endPoint, SSLEngine engine)

public void
setDirectBuffersForDecryption(boolean useDirectBuffers)

public void
setDirectBuffersForEncryption(boolean useDirectBuffers)

public void
setEnsureSecureRequestCustomizer(boolean
True if this factory ensures that all HttpConfigurations on associated Connectors have an SecureRequestCustomizer instance.
ensureSecureRequestCustomizer
)

public String
toString()

Overrides org.eclipse.jetty.server.AbstractConnectionFactory.toString.

Returns a string representation of the object.
Inherited from org.eclipse.jetty.server.AbstractConnectionFactory:
findNextProtocolfindNextProtocolgetFactoriesgetInputBufferSizegetProtocolgetProtocolssetInputBufferSize

Field Detail

_directBuffersForDecryptionback to summary
private boolean _directBuffersForDecryption
_directBuffersForEncryptionback to summary
private boolean _directBuffersForEncryption
_ensureSecureRequestCustomizerback to summary
private boolean _ensureSecureRequestCustomizer
_nextProtocolback to summary
private final String _nextProtocol
_sslContextFactoryback to summary
private final SslContextFactory.Server _sslContextFactory
TLS_ALERT_FRAME_TYPEback to summary
private static final int TLS_ALERT_FRAME_TYPE
TLS_HANDSHAKE_FRAME_TYPEback to summary
private static final int TLS_HANDSHAKE_FRAME_TYPE
TLS_MAJOR_VERSIONback to summary
private static final int TLS_MAJOR_VERSION

Constructor Detail

SslConnectionFactoryback to summary
public SslConnectionFactory()
SslConnectionFactoryback to summary
public SslConnectionFactory(String nextProtocol)
SslConnectionFactoryback to summary
public SslConnectionFactory(SslContextFactory.Server factory, String nextProtocol)

Method Detail

configureback to summary
public void configure(Connector connector)

Implements org.eclipse.jetty.server.ConnectionFactory.Configuring.configure.

Doc from org.eclipse.jetty.server.ConnectionFactory.Configuring.configure.

Called during Connector#start().

Parameters
connector:Connector

The connector to configure

Annotations
@Override
configureback to summary
protected AbstractConnection configure(AbstractConnection connection, Connector connector, EndPoint endPoint)

Overrides org.eclipse.jetty.server.AbstractConnectionFactory.configure.

Annotations
@Override
detectback to summary
public ConnectionFactory.Detecting.Detection detect(ByteBuffer buffer)

Implements org.eclipse.jetty.server.ConnectionFactory.Detecting.detect.

Doc from org.eclipse.jetty.server.ConnectionFactory.Detecting.detect.

Check the bytes in the given buffer to figure out if this Detecting instance can work with them or not.

The buffer MUST be left untouched by this method: bytes MUST NOT be consumed and MUST NOT be modified.

Parameters
buffer:ByteBuffer

the buffer.

Returns:ConnectionFactory.Detecting.Detection

One of:

Annotations
@Override
doStartback to summary
protected void doStart() throws Exception

Overrides org.eclipse.jetty.util.component.ContainerLifeCycle.doStart.

Doc from org.eclipse.jetty.util.component.ContainerLifeCycle.doStart.

Starts the managed lifecycle beans in the order they were added.

Annotations
@Override
Exceptions
Exception:

Doc from org.eclipse.jetty.util.component.AbstractLifeCycle.doStart.

If there was a problem starting. Will cause a transition to FAILED state

getNextProtocolback to summary
public String getNextProtocol()
getSslContextFactoryback to summary
public SslContextFactory.Server getSslContextFactory()
isDirectBuffersForDecryptionback to summary
public boolean isDirectBuffersForDecryption()
isDirectBuffersForEncryptionback to summary
public boolean isDirectBuffersForEncryption()
isEnsureSecureRequestCustomizerback to summary
public boolean isEnsureSecureRequestCustomizer()
newConnectionback to summary
public Connection newConnection(Connector connector, EndPoint endPoint)

Implements org.eclipse.jetty.server.ConnectionFactory.newConnection.

Doc from org.eclipse.jetty.server.ConnectionFactory.newConnection.

Creates a new Connection with the given parameters

Parameters
connector:Connector

The Connector creating this connection

endPoint:EndPoint

the EndPoint associated with the connection

Returns:Connection

a new Connection

Annotations
@Override
newSslConnectionback to summary
protected SslConnection newSslConnection(Connector connector, EndPoint endPoint, SSLEngine engine)
setDirectBuffersForDecryptionback to summary
public void setDirectBuffersForDecryption(boolean useDirectBuffers)
setDirectBuffersForEncryptionback to summary
public void setDirectBuffersForEncryption(boolean useDirectBuffers)
setEnsureSecureRequestCustomizerback to summary
public void setEnsureSecureRequestCustomizer(boolean ensureSecureRequestCustomizer)
Parameters
ensureSecureRequestCustomizer:boolean

True if this factory ensures that all HttpConfigurations on associated Connectors have an SecureRequestCustomizer instance.

See Also
Configuring
toStringback to summary
public String toString()

Overrides org.eclipse.jetty.server.AbstractConnectionFactory.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override