Package org.lockss.laaws.rs.impl
Class ChecksumalgorithmsApiServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.rs.impl.ChecksumalgorithmsApiServiceImpl
- All Implemented Interfaces:
ChecksumalgorithmsApiDelegate
@Service
public class ChecksumalgorithmsApiServiceImpl
extends BaseSpringApiServiceImpl
implements ChecksumalgorithmsApiDelegate
Service for accessing the supported checksum algorithms.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lockss.spring.base.BaseSpringApiServiceImpl
BaseSpringApiServiceImpl.MapMessageListener -
Field Summary
Fields inherited from class org.lockss.spring.base.BaseSpringApiServiceImpl
DEFAULT_CONFIG_WAIT_TIME, DEFAULT_READY_WAIT_TIME, JMS_BOTH, JMS_RECEIVE, JMS_SEND, jmsConsumer, jmsProducer, PARAM_CONFIG_WAIT_TIME, PARAM_READY_WAIT_TIME -
Constructor Summary
ConstructorsConstructorDescriptionChecksumalgorithmsApiServiceImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, jakarta.servlet.http.HttpServletRequest request) Constructor for autowiring. -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.fasterxml.jackson.databind.ObjectMapper>GET /checksumalgorithms: Provides a list of checksum algorithms supported by this repository.Methods inherited from class org.lockss.spring.base.BaseSpringApiServiceImpl
configMgrCreated, getClassName, getConfigWaitTime, getJMSManager, getPluginManager, getReadyWaitTime, getRunningLockssDaemon, getStateManager, getWaitTime, jmsSetUpDone, jsonResponse, receiveMessage, registerConfigCallback, setUpJms, setUpJms, setUpJms, stopJms, stringResponse, waitConfig, waitConfig, waitReady, waitReadyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.lockss.laaws.rs.api.ChecksumalgorithmsApiDelegate
getAcceptHeader, getRequest
-
Constructor Details
-
ChecksumalgorithmsApiServiceImpl
@Autowired public ChecksumalgorithmsApiServiceImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, jakarta.servlet.http.HttpServletRequest request) Constructor for autowiring.- Parameters:
objectMapper- An ObjectMapper for JSON processing.request- An HttpServletRequest with the HTTP request.
-
-
Method Details
-
getSupportedChecksumAlgorithms
GET /checksumalgorithms: Provides a list of checksum algorithms supported by this repository.- Specified by:
getSupportedChecksumAlgorithmsin interfaceChecksumalgorithmsApiDelegate- Returns:
- a List
with the algorithm names. - See Also:
-
getObjectMapper
- Specified by:
getObjectMapperin interfaceChecksumalgorithmsApiDelegate
-