com.davfx.ninio.proxy.Forward Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ninio Show documentation
Show all versions of ninio Show documentation
A Java NIO HTTP client/server as light as possible
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