Skip to content

Commit

Permalink
refactor(dsp-negotiation-api): clean up controller implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
juliapampus committed Apr 21, 2023
1 parent fdc9ed2 commit 3538129
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.eclipse.edc.connector.spi.contractnegotiation.ContractNegotiationService;
import org.eclipse.edc.jsonld.transformer.JsonLdTransformerRegistry;
import org.eclipse.edc.protocol.dsp.api.configuration.DspApiConfiguration;
import org.eclipse.edc.protocol.dsp.negotiation.api.controller.NegotiationController;
import org.eclipse.edc.protocol.dsp.negotiation.api.controller.DspNegotiationController;
import org.eclipse.edc.runtime.metamodel.annotation.Extension;
import org.eclipse.edc.runtime.metamodel.annotation.Inject;
import org.eclipse.edc.spi.iam.IdentityService;
Expand All @@ -29,7 +29,7 @@
import org.eclipse.edc.web.spi.WebService;

/**
* Creates and registers the controller for dataspace protocol catalog requests.
* Creates and registers the controller for dataspace protocol negotiation requests.
*/
@Extension(value = DspNegotiationApiExtension.NAME)
public class DspNegotiationApiExtension implements ServiceExtension {
Expand Down Expand Up @@ -68,7 +68,7 @@ public String name() {
@Override
public void initialize(ServiceExtensionContext context) {
var callbackAddress = apiConfiguration.getDspCallbackAddress();
var controller = new NegotiationController(monitor, typeManager, callbackAddress, identityService, transformerRegistry, negotiationService, protocolService);
var controller = new DspNegotiationController(monitor, typeManager, callbackAddress, identityService, transformerRegistry, negotiationService, protocolService);

webService.registerResource(apiConfiguration.getContextAlias(), controller);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

@OpenAPIDefinition
@Tag(name = "Dataspace Protocol: Contract Negotiation")
public interface NegotiationApi {
public interface DspNegotiationApi {

/**
* Provider-specific endpoint.
Expand Down
Loading

0 comments on commit 3538129

Please sign in to comment.