com.ibm.websphere.cache.webservices

Interface IdGenerator


  1. public interface IdGenerator
The IdGenerator is responsible for generating cache entry ids, dependency ids or invalidation ids. These ids are used by WebService client cache.

When implementing this interface, be aware that multiple threads may be using the same IdGenerator concurrently.


Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getId(javax.xml.rpc.handler.soap.SOAPMessageContext messageContext)
This method is called once on every SOAP request for a cacheable WebService.

Method Detail

getId

  1. java.lang.String getId(javax.xml.rpc.handler.soap.SOAPMessageContext messageContext)
This method is called once on every SOAP request for a cacheable WebService. It generates the id that is used as a key by the cache to identify the SOAP response.
Parameters:
messageContext - The messageContext object used to access to the SOAP message
Returns:
a String uniquely identifying this invocation of a cacheable WebService.