Package org.lockss.laaws.config.impl
Class AususpecturlsApiServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.laaws.config.impl.AususpecturlsApiServiceImpl
- All Implemented Interfaces:
AususpecturlsApiDelegate
@Service
public class AususpecturlsApiServiceImpl
extends BaseSpringApiServiceImpl
implements AususpecturlsApiDelegate
Service for accessing Archival Unit suspect URL versions.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String>Provides the suspect URL versions of an AU given the AU identifier.org.springframework.http.ResponseEntityputAuSuspectUrlVersions(String auid, String auSuspectUrlVersions, String xLockssRequestCookie) Updates the suspect URL versions of an Archival Unit with the provided values.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.config.api.AususpecturlsApiDelegate
getAcceptHeader, getObjectMapper, getRequest
-
Constructor Details
-
AususpecturlsApiServiceImpl
public AususpecturlsApiServiceImpl()
-
-
Method Details
-
getAuSuspectUrlVersions
Provides the suspect URL versions of an AU given the AU identifier.- Specified by:
getAuSuspectUrlVersionsin interfaceAususpecturlsApiDelegate- Parameters:
auid- A String with the AU identifier.- Returns:
- a
ResponseEntity<String>with the Archival Unit suspect URL versions if successful, or aResponseEntity<String>with the error information otherwise. - See Also:
-
putAuSuspectUrlVersions
public org.springframework.http.ResponseEntity putAuSuspectUrlVersions(String auid, String auSuspectUrlVersions, String xLockssRequestCookie) Updates the suspect URL versions of an Archival Unit with the provided values.- Specified by:
putAuSuspectUrlVersionsin interfaceAususpecturlsApiDelegate- Parameters:
auid- A String with the AU identifier.auSuspectUrlVersions- A String with the Archival Unit suspect URL versions changes.xLockssRequestCookie- A String with "X-Lockss-Request-Cookie" request header.- Returns:
- a
ResponseEntity<Void>if successful, or aResponseEntity<String>with the error information otherwise. - See Also:
-