Search in sources :

Example 1 with RegisterTSBasResponseType

use of se.inera.intygstjanster.ts.services.RegisterTSBasResponder.v1.RegisterTSBasResponseType in project webcert by sklintyg.

the class RegisterTSBasResponderStub method registerTSBas.

@Override
@StubModeAware
public RegisterTSBasResponseType registerTSBas(String logicalAddress, RegisterTSBasType parameters) {
    intygStore.addIntyg(buildStubInternalCertificate(parameters));
    RegisterTSBasResponseType resp = new RegisterTSBasResponseType();
    ResultatTyp resultatTyp = new ResultatTyp();
    resultatTyp.setResultCode(ResultCodeType.OK);
    resp.setResultat(resultatTyp);
    return resp;
}
Also used : ResultatTyp(se.inera.intygstjanster.ts.services.v1.ResultatTyp) RegisterTSBasResponseType(se.inera.intygstjanster.ts.services.RegisterTSBasResponder.v1.RegisterTSBasResponseType) StubModeAware(se.inera.intyg.webcert.intygstjanststub.mode.StubModeAware)

Aggregations

StubModeAware (se.inera.intyg.webcert.intygstjanststub.mode.StubModeAware)1 RegisterTSBasResponseType (se.inera.intygstjanster.ts.services.RegisterTSBasResponder.v1.RegisterTSBasResponseType)1 ResultatTyp (se.inera.intygstjanster.ts.services.v1.ResultatTyp)1