Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FIT-Connect-SDK - Java
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
FIT-Connect-SDK - Java
Commits
7286be35
Commit
7286be35
authored
2 years ago
by
Martin Vogel
Browse files
Options
Downloads
Patches
Plain Diff
chore: cleanup checkstyle issues
parent
31162bda
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/src/main/java/de/fitko/fitconnect/client/factory/ClientFactory.java
+9
-8
9 additions, 8 deletions
...ava/de/fitko/fitconnect/client/factory/ClientFactory.java
with
9 additions
and
8 deletions
client/src/main/java/de/fitko/fitconnect/client/factory/ClientFactory.java
+
9
−
8
View file @
7286be35
...
...
@@ -29,7 +29,10 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.springframework.web.client.RestTemplate
;
import
java.io.*
;
import
java.io.BufferedReader
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.InputStreamReader
;
import
java.nio.file.Files
;
import
java.nio.file.Path
;
import
java.util.stream.Collectors
;
...
...
@@ -104,7 +107,6 @@ public final class ClientFactory {
LOGGER
.
info
(
"Reading metadata schema from {} "
,
config
.
getMetadataSchemaPath
());
final
String
metadataSchema
=
readPath
(
config
.
getMetadataSchemaPath
());
// TODO read SET-Event Token schema
return
SubscriberClient
.
builder
(
subscriber
,
privateKey
,
metadataSchema
);
}
...
...
@@ -112,10 +114,9 @@ public final class ClientFactory {
final
CryptoService
cryptoService
=
getCryptoService
();
final
ValidationService
validator
=
getValidatorService
(
config
);
final
RestTemplate
restTemplate
=
getRestTemplate
(
config
);
final
OAuthService
authService
=
getSubscriberConfiguredAuthService
(
config
,
restTemplate
);
final
EventLogService
eventLogService
=
getEventLogService
(
config
,
restTemplate
,
authService
);
final
SubmissionService
submissionService
=
getSubmissionService
(
config
,
restTemplate
,
authService
);
final
EventLogService
eventLogService
=
getEventLogService
(
config
,
restTemplate
,
authService
);
final
SubmissionService
submissionService
=
getSubmissionService
(
config
,
restTemplate
,
authService
);
final
SecurityEventService
setService
=
getSecurityEventTokenService
(
config
);
return
new
SubmissionSubscriber
(
submissionService
,
eventLogService
,
cryptoService
,
validator
,
setService
);
}
...
...
@@ -125,9 +126,9 @@ public final class ClientFactory {
final
RestTemplate
restTemplate
=
getRestTemplate
(
config
);
final
ValidationService
validator
=
getValidatorService
(
config
);
final
OAuthService
authService
=
getSenderConfiguredAuthService
(
config
,
restTemplate
);
final
EventLogService
eventLogService
=
getEventLogService
(
config
,
restTemplate
,
authService
);
final
SubmissionService
submissionService
=
getSubmissionService
(
config
,
restTemplate
,
authService
);
final
DestinationService
destinationService
=
getDestinationApiService
(
config
,
restTemplate
,
authService
);
final
EventLogService
eventLogService
=
getEventLogService
(
config
,
restTemplate
,
authService
);
final
SubmissionService
submissionService
=
getSubmissionService
(
config
,
restTemplate
,
authService
);
final
DestinationService
destinationService
=
getDestinationApiService
(
config
,
restTemplate
,
authService
);
final
SecurityEventService
setService
=
getSecurityEventTokenService
(
config
);
return
new
SubmissionSender
(
destinationService
,
submissionService
,
eventLogService
,
cryptoService
,
validator
,
setService
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment