com.quorum.tessera.app.TesseraRestApplication Maven / Gradle / Ivy
package com.quorum.tessera.app;
import com.quorum.tessera.api.common.BaseResource;
import com.quorum.tessera.api.common.VersionResource;
import com.quorum.tessera.api.exception.*;
import com.quorum.tessera.config.CommunicationType;
import com.quorum.tessera.config.apps.TesseraApp;
import jakarta.ws.rs.core.Application;
import java.util.Set;
public abstract class TesseraRestApplication extends Application implements TesseraApp {
@Override
public Set> getClasses() {
return Set.of(
MandatoryRecipientsNotAvailableExceptionMapper.class,
MandatoryRecipientsNotSupportedExceptionMapper.class,
PrivacyGroupNotFoundExceptionMapper.class,
PrivacyGroupNotSupportedExceptionMapper.class,
EnhancedPrivacyNotSupportedExceptionMapper.class,
PrivacyViolationExceptionMapper.class,
AutoDiscoveryDisabledExceptionMapper.class,
DecodingExceptionMapper.class,
DefaultExceptionMapper.class,
EnclaveNotAvailableExceptionMapper.class,
EntityNotFoundExceptionMapper.class,
KeyNotFoundExceptionMapper.class,
NotFoundExceptionMapper.class,
SecurityExceptionMapper.class,
TransactionNotFoundExceptionMapper.class,
WebApplicationExceptionMapper.class,
NodeOfflineExceptionMapper.class,
VersionResource.class,
BaseResource.class);
}
@Override
public CommunicationType getCommunicationType() {
return CommunicationType.REST;
}
}