Class WSCacheKey
java.lang.Object
com.webmethods.caf.wsclient.cache.impl.WSCacheKey
- All Implemented Interfaces:
IWSCacheKey
Default implementation of the
IWSCacheKey
interface
Cache entry uniqueness is determined by
- Session ID
- Host ID
- Web service method
- Classloader
- Web service arguments
-
Constructor Summary
ConstructorsConstructorDescriptionWSCacheKey
(String sessionID, String method, ClassLoader classLoader, Object[] args) Construct a new WSCacheKey will all of the info needed to populate the key -
Method Summary
Modifier and TypeMethodDescriptionboolean
(non-Javadoc)Object[]
getArgs()
Get the array of web service method arguments used as part of the unique cache keyGet the web service interface classloader used as part of the unique cache keyGet the web service method used as part of the unique cache keyGet the session ID of the current HTTP session with the web service endpoint, used as part of the unique cache keyint
hashCode()
-
Constructor Details
-
WSCacheKey
Construct a new WSCacheKey will all of the info needed to populate the key- Parameters:
sessionID
- the session ID of the curren HTTP sessio, preventing caching collisions when a browser is multiple tabs open with the same sessionIDmethod
- the name of the web service method to be invokedclassLoader
- the classloader of the web service interface, preventing caching collisions when the same global WsClient instance is shared by multiple web applications.args
- the web service arguments
-
-
Method Details
-
getMethod
Get the web service method used as part of the unique cache key- Returns:
- the web service method name
-
getArgs
Get the array of web service method arguments used as part of the unique cache key- Returns:
- array of argument Objects
-
getClassLoader
Get the web service interface classloader used as part of the unique cache key- Returns:
- the web service interface's ClassLoader instance
-
getSessionId
Get the session ID of the current HTTP session with the web service endpoint, used as part of the unique cache key- Returns:
- the HTTP session ID
-
equals
(non-Javadoc) -
hashCode
public int hashCode()
-