Package net.officefloor.server.ssl
Class SslSocketServicerFactory<R>
- java.lang.Object
-
- net.officefloor.server.ssl.SslSocketServicerFactory<R>
-
- All Implemented Interfaces:
RequestServicerFactory<R>
,SocketServicerFactory<R>
public class SslSocketServicerFactory<R> extends java.lang.Object implements SocketServicerFactory<R>, RequestServicerFactory<R>
- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description SslSocketServicerFactory(javax.net.ssl.SSLContext sslContext, SocketServicerFactory<R> delegateSocketServicerFactory, RequestServicerFactory<R> delegateRequestServicerFactory, java.util.concurrent.Executor executor)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestServicer<R>
createRequestServicer(SocketServicer<R> socketServicer)
Creates theRequestServicer
for theSocketServicer
.SocketServicer<R>
createSocketServicer(RequestHandler<R> requestHandler)
Creates theSocketServicer
.
-
-
-
Constructor Detail
-
SslSocketServicerFactory
public SslSocketServicerFactory(javax.net.ssl.SSLContext sslContext, SocketServicerFactory<R> delegateSocketServicerFactory, RequestServicerFactory<R> delegateRequestServicerFactory, java.util.concurrent.Executor executor)
Instantiate.- Parameters:
sslContext
-SSLContext
.delegateSocketServicerFactory
- DelegateSocketServicerFactory
.delegateRequestServicerFactory
- DelegateRequestServicerFactory
.executor
-Executor
.
-
-
Method Detail
-
createSocketServicer
public SocketServicer<R> createSocketServicer(RequestHandler<R> requestHandler)
Description copied from interface:SocketServicerFactory
Creates theSocketServicer
.- Specified by:
createSocketServicer
in interfaceSocketServicerFactory<R>
- Parameters:
requestHandler
-RequestHandler
.- Returns:
SocketServicer
.
-
createRequestServicer
public RequestServicer<R> createRequestServicer(SocketServicer<R> socketServicer)
Description copied from interface:RequestServicerFactory
Creates theRequestServicer
for theSocketServicer
.- Specified by:
createRequestServicer
in interfaceRequestServicerFactory<R>
- Parameters:
socketServicer
-SocketServicer
.- Returns:
RequestServicer
.
-
-