Package org.lockss.laaws.rs.impl
Class RepoinfoApiServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.rs.impl.RepoinfoApiServiceImpl
- All Implemented Interfaces:
RepoinfoApiDelegate
@Service
public class RepoinfoApiServiceImpl
extends BaseSpringApiServiceImpl
implements RepoinfoApiDelegate
Service for obtaining the properties of a repository.
-
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
ConstructorsConstructorDescriptionRepoinfoApiServiceImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper, jakarta.servlet.http.HttpServletRequest request) Constructor for autowiring. -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.fasterxml.jackson.databind.ObjectMapper>org.springframework.http.ResponseEntity<RepositoryInfo>GET /repoinfo: Provides the properties of the repository in the system.org.springframework.http.ResponseEntity<org.lockss.util.storage.StorageInfo>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.RepoinfoApiDelegate
getAcceptHeader, getRequest
-
Constructor Details
-
RepoinfoApiServiceImpl
@Autowired public RepoinfoApiServiceImpl(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
-
getRepositoryInformation
GET /repoinfo: Provides the properties of the repository in the system.- Specified by:
getRepositoryInformationin interfaceRepoinfoApiDelegate- Returns:
- a
ResponseEntity<RepositoryInfo>with the results. - See Also:
-
getStorageInfo
public org.springframework.http.ResponseEntity<org.lockss.util.storage.StorageInfo> getStorageInfo()- Specified by:
getStorageInfoin interfaceRepoinfoApiDelegate- See Also:
-
getObjectMapper
- Specified by:
getObjectMapperin interfaceRepoinfoApiDelegate
-