@Override
    protected SSLEngine createEngine(SSLEngineFactory factory) {
        if (mEngine == null) {
            String host = mRequest.host();
            if (host == null) {
                // Unable to get host.
                NetBareLog.e("Failed to get SSL host.");
                return null;
            }
            try {
                mEngine = factory.createServerEngine(host);
                mEngine.setUseClientMode(false);
                mEngine.setNeedClientAuth(false);
            } catch (ExecutionException e) {
                NetBareLog.e("Failed to create server SSLEngine: " + e.getMessage());
            }
        }
        return mEngine;
    }
Bind a {@link Request} to this codec.

@param request A request has terminated remote server host.
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/SSLRequestCodec.java