Class WSConnector

    • Field Detail

      • LOG

        public static final Logger LOG
    • Constructor Detail

      • WSConnector

        public WSConnector()
    • Method Detail

      • createBrowser

        public Browser createBrowser​(BrowseContext context)
        Returns an instance of WSBrowser for executing web service browsing.
        Specified by:
        createBrowser in interface Connector
        Overrides:
        createBrowser in class BaseConnector
        Parameters:
        context - the context for this browse operation. this context is considered to be owned by the Browser after this call and may be held by the Browser for use in subsequent method calls.
        Returns:
        a Browser for use when browsing this connector
      • createConnection

        public <C extends BrowseContextWSConnection<C> createConnection​(C context)
        Returns an instance of WSConnection for use by various classes in this connector implementation to handle some of the common functionality of interacting with the web service on a per-context basis.
      • createCache

        public WSCache createCache​(WSCache.Key key,
                                   BrowseContext context)
        Returns an instance of WSCache for use across multiple connections to the same web service for the same account. The given BrowseContext may be used to establish the cache, but should not be held by the cache instance as it may live longer than the current connection (to which the given context is tied).
        Specified by:
        createCache in interface ConnectorCacheFactory<WSCache.Key,​WSCache,​BrowseContext>
        Parameters:
        key - the key by which this ConnectorCache will be cached in the connector cache
        context - the current connector context. Note, this context should not be held by the ConnectorCache instance, but may be used to retrieve connection properties.
        Returns:
        a valid ConnectorCache instance