Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProtocolBuilder add sslEnabled and extProtocol fields #13515

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,13 @@ public class ProtocolBuilder extends AbstractBuilder<ProtocolConfig, ProtocolBui
*/
private Map<String, String> parameters;

private Boolean sslEnabled;

/*
* Extra Protocol for this service, using Port Unification Server
*/
private String extProtocol;

/**
* If it's default
*/
Expand Down Expand Up @@ -375,6 +382,16 @@ public ProtocolBuilder appendParameters(Map<String, String> appendParameters) {
return getThis();
}

public ProtocolBuilder isSslEnabled(Boolean sslEnabled) {
this.sslEnabled = sslEnabled;
return getThis();
}

public ProtocolBuilder extProtocol(String extProtocol) {
this.extProtocol = extProtocol;
return getThis();
}

public ProtocolBuilder isDefault(Boolean isDefault) {
this.isDefault = isDefault;
return getThis();
Expand Down Expand Up @@ -416,6 +433,8 @@ public ProtocolConfig build() {
protocolConfig.setThreadpool(threadpool);
protocolConfig.setThreads(threads);
protocolConfig.setTransporter(transporter);
protocolConfig.setSslEnabled(sslEnabled);
protocolConfig.setExtProtocol(extProtocol);

return protocolConfig;
}
Expand Down
Loading