Package com.webmethods.rtl.locator
Interface IStreamLocatorFactory
- All Superinterfaces:
IStreamLocator
A special type of
IStreamLocator
that allows registration and delegation to other IStreamLocator
s-
Method Summary
Modifier and TypeMethodDescriptionReturns default locator specified for the current thread or globallygetLocatorForProtocol
(String location) Based upon the location find the correct locatorReturns map of registered stream locatorsregisterLocator
(IStreamLocator streamLocator) register a new locatorregisterLocator
(String className, String protocol, String root) register a new locatorvoid
setDefaultLocator
(IStreamLocator streamLocator) Sets the given locator as a default locator for the current thread only.void
unregisterLocator
(IStreamLocator streamLocator) Unregisters given locatorMethods inherited from interface com.webmethods.rtl.locator.IStreamLocator
getLocationStream, getPersistentStream, getProtocol, getRealLocation, init
-
Method Details
-
registerLocator
register a new locator- Parameters:
streamLocator
-- Returns:
- the registered locator
- Throws:
IOException
-
registerLocator
register a new locator- Parameters:
className
-protocol
-root
-- Returns:
- Throws:
IOException
-
getLocatorForProtocol
Based upon the location find the correct locator- Parameters:
location
-- Returns:
-
getLocators
Map<String,IStreamLocator> getLocators()Returns map of registered stream locators- Returns:
-
unregisterLocator
Unregisters given locator- Parameters:
streamLocator
- the locator to unregister
-
getDefaultLocator
IStreamLocator getDefaultLocator()Returns default locator specified for the current thread or globally- Returns:
- never null
- See Also:
-
setDefaultLocator
Sets the given locator as a default locator for the current thread only.- Parameters:
streamLocator
- default locator
-