In DFS example we can find a project HelloWorldService. Considering client-remote - HelloWorldClient.java we set a connection parameters to docbase:
.................
String moduleName = "example";
String repository = "docbasename";
String user = "superuser";
String password = "password";
ContextFactory contextFactory = ContextFactory.getInstance();
IServiceContext context = contextFactory.newContext();
RepositoryIdentity repoId = new RepositoryIdentity();
repoId.setRepositoryName(repository);
repoId.setUserName(user);
repoId.setPassword(password);
context.addIdentity(repoId);
.....
Connection establish successfully, but isn't a hard code to set parameters in my client application? Have any other way to do it without hardcoding?