Skip to content

Instantly share code, notes, and snippets.

@lennartkoopmann
Created August 7, 2013 19:27
Show Gist options
  • Save lennartkoopmann/6177606 to your computer and use it in GitHub Desktop.
Save lennartkoopmann/6177606 to your computer and use it in GitHub Desktop.
@Override
public ConfigurationRequest getRequestedConfiguration() {
ConfigurationRequest r = new ConfigurationRequest();
r.addField(ConfigurationRequest.Templates.bindAddress(CK_BIND_ADDRESS));
r.addField(ConfigurationRequest.Templates.portNumber(CK_PORT));
r.addField(new TextField(
CK_OVERRIDE_SOURCE,
"Override source",
null,
"The source is a hostname derived from the received packet by default. Set this if you want to override " +
"it with a custom string.",
ConfigurationField.Optional.OPTIONAL
));
return r;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment