Class HasherServiceImpl

All Implemented Interfaces:
LockssConfigurableService, HasherService

@Service public class HasherServiceImpl extends BaseServiceImpl implements HasherService
The Hasher SOAP web service implementation.
  • Constructor Details

    • HasherServiceImpl

      public HasherServiceImpl()
  • Method Details

    • hash

      public org.lockss.ws.entities.HasherWsResult hash(org.lockss.ws.entities.HasherWsParams wsParams) throws org.lockss.ws.entities.LockssWebServicesFault
      Performs the hashing of an AU or a URL.
      Specified by:
      hash in interface HasherService
      Parameters:
      wsParams - A HasherWsParams with the parameters of the hashing operation.
      Returns:
      a HasherWsResult with the result of the hashing operation.
      Throws:
      org.lockss.ws.entities.LockssWebServicesFault - if there are problems.
    • hashAsynchronously

      public org.lockss.ws.entities.HasherWsAsynchronousResult hashAsynchronously(org.lockss.ws.entities.HasherWsParams wsParams) throws org.lockss.ws.entities.LockssWebServicesFault
      Performs asynchronously the hashing of an AU or a URL.
      Specified by:
      hashAsynchronously in interface HasherService
      Parameters:
      wsParams - A HasherWsParams with the parameters of the hashing operation.
      Returns:
      a HasherWsAsynchronousResult with the result of the hashing operation.
      Throws:
      org.lockss.ws.entities.LockssWebServicesFault - if there are problems.
    • getAsynchronousHashResult

      public org.lockss.ws.entities.HasherWsAsynchronousResult getAsynchronousHashResult(String requestId) throws org.lockss.ws.entities.LockssWebServicesFault
      Provides the result of an asynchronous hashing operation.
      Specified by:
      getAsynchronousHashResult in interface HasherService
      Parameters:
      requestId - A String with the identifier of the requested asynchronous hashing operation.
      Returns:
      a HasherWsAsynchronousResult with the result of the hashing operation.
      Throws:
      org.lockss.ws.entities.LockssWebServicesFault - if there are problems.
    • getAllAsynchronousHashResults

      public List<org.lockss.ws.entities.HasherWsAsynchronousResult> getAllAsynchronousHashResults() throws org.lockss.ws.entities.LockssWebServicesFault
      Provides the results of all the asynchronous hashing operations.
      Specified by:
      getAllAsynchronousHashResults in interface HasherService
      Returns:
      a List<HasherWsAsynchronousResult> with the results of the hashing operations.
      Throws:
      org.lockss.ws.entities.LockssWebServicesFault - if there are problems.
    • removeAsynchronousHashRequest

      public org.lockss.ws.entities.HasherWsAsynchronousResult removeAsynchronousHashRequest(String requestId) throws org.lockss.ws.entities.LockssWebServicesFault
      Removes from the system an asynchronous hashing operation, terminating it if it's still running.
      Specified by:
      removeAsynchronousHashRequest in interface HasherService
      Parameters:
      requestId - A String with the identifier of the requested asynchronous hashing operation.
      Returns:
      a HasherWsAsynchronousResult with the result of the removal of the hashing operation.
      Throws:
      org.lockss.ws.entities.LockssWebServicesFault - if there are problems.