use of com.github.jh3nd3rs0n.jargyle.server.SelectionStrategy in project jargyle by jh3nd3rs0n.
the class Socks5RequestRoutingRule method toString.
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("routingRule=");
if (this.clientAddressRange != null) {
builder.append(" clientAddressRange=");
builder.append(this.clientAddressRange);
}
if (this.socksServerAddressRange != null) {
builder.append(" socksServerAddressRange=");
builder.append(this.socksServerAddressRange);
}
if (this.method != null) {
builder.append(" method=");
builder.append(this.method);
}
if (this.user != null) {
builder.append(" user=");
builder.append(this.user);
}
if (this.command != null) {
builder.append(" command=");
builder.append(this.command);
}
if (this.desiredDestinationAddressRange != null) {
builder.append(" desiredDestinationAddressRange=");
builder.append(this.desiredDestinationAddressRange);
}
if (this.desiredDestinationPortRange != null) {
builder.append(" desiredDestinationPortRange=");
builder.append(this.desiredDestinationPortRange);
}
List<String> routeIds = this.getRouteIds();
if (routeIds.size() > 0) {
for (String routeId : routeIds) {
builder.append(" routeId=");
builder.append(routeId);
}
}
SelectionStrategy routeIdSelectionStrategy = this.getRouteIdSelectionStrategy();
if (routeIdSelectionStrategy != null) {
builder.append(" routeIdSelectionStrategy=");
builder.append(routeIdSelectionStrategy);
}
LogAction logAction = this.getLogAction();
if (logAction != null) {
builder.append(" logAction=");
builder.append(logAction);
}
return builder.toString();
}
use of com.github.jh3nd3rs0n.jargyle.server.SelectionStrategy in project jargyle by jh3nd3rs0n.
the class ClientRoutingRule method toString.
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("routingRule=");
if (this.clientAddressRange != null) {
builder.append(" clientAddressRange=");
builder.append(this.clientAddressRange);
}
if (this.socksServerAddressRange != null) {
builder.append(" socksServerAddressRange=");
builder.append(this.socksServerAddressRange);
}
List<String> routeIds = this.getRouteIds();
if (routeIds.size() > 0) {
for (String routeId : routeIds) {
builder.append(" routeId=");
builder.append(routeId);
}
}
SelectionStrategy routeIdSelectionStrategy = this.getRouteIdSelectionStrategy();
if (routeIdSelectionStrategy != null) {
builder.append(" routeIdSelectionStrategy=");
builder.append(routeIdSelectionStrategy);
}
LogAction logAction = this.getLogAction();
if (logAction != null) {
builder.append(" logAction=");
builder.append(logAction);
}
return builder.toString();
}
Aggregations