// Implementation methods
//-------------------------------------------------------------------------
protected MinaEndpoint createVmEndpoint(String uri, URI connectUri) {
IoAcceptor acceptor = new VmPipeAcceptor();
SocketAddress address = new VmPipeAddress(connectUri.getPort());
IoConnector connector = new VmPipeConnector();
// connector config
configureCodecFactory("MinaProducer", connector.getDefaultConfig(), textline, encoding, codec);
if (minaLogger) {
connector.getFilterChain().addLast("logger", new LoggingFilter());
}
// acceptor connectorConfig
configureCodecFactory("MinaConsumer", acceptor.getDefaultConfig(), textline, encoding, codec);
if (minaLogger) {
acceptor.getFilterChain().addLast("logger", new LoggingFilter());
}
MinaEndpoint endpoint = new MinaEndpoint(uri, this, address, acceptor, null, connector, null, false, timeout, transferExchange, sync);
if (encoding != null) {
endpoint.setCharsetName(getEncodingParameter("MinaProducer", encoding).name());