All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.davfx.ninio.proxy.Forward Maven / Gradle / Ivy

There is a newer version: 1.0.99
Show newest version
package com.davfx.ninio.proxy;

import java.io.DataInputStream;
import java.io.IOException;

import com.davfx.ninio.common.Address;
import com.davfx.ninio.common.ReadyFactory;

public class Forward {
	private Forward() {
	}

	public static ProxyUtils.ServerSideConfigurator forward(Address reproxyAddress) {
		final ProxyClient c = new ProxyClient(reproxyAddress);
		return new ProxyUtils.ServerSideConfigurator() {
			@Override
			public ReadyFactory configure(String connecterType, DataInputStream in) throws IOException {
				return c.of(connecterType);
			}
		};
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy