com.quorum.tessera.app.TesseraRestApplication Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-jaxrs Show documentation
Show all versions of common-jaxrs Show documentation
Tessera is a stateless Java system that is used to enable the encryption, decryption, and distribution of private transactions for Quorum.
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;
}
}