Adds some generic checks to attempt to process URLs and Map context objects. Essentially queries
the ServiceExtension for the Service in order to determine whether it can handle the context objects.
The context objects this will process are:
URLs
Map
String - it will try to convert the string to a URL if other processing needs to be done to a string then the subclass will have to do it
author: Jesse since: 1.1.0
Method Summary
final public boolean
canProcess(Object context) Will use the service extension to try and determine if the context is useable.
createConnectionParameters(Object context) Returns the parameters using the Service extension if the context is a URL or String (provided that Service extension
claims to be able to process them).
createConnectionURL(Object context) Returns the URL if the context is a URL or can be made a URL from a String(provided that Service extension
claims to be able to process them).
doOtherChecks(Object context) If contexts other than URLs, Maps, and Strings (or if Strings need to be otherwise processed) then subclass must
perform those checks here.
Parameters: context - The object to be "processed" or "adapted" into connectioninformation.
getServiceExtension() Returns the Service extension for the extension in question.
Method Detail
canProcess
final public boolean canProcess(Object context)(Code)
Will use the service extension to try and determine if the context is useable.
Will try to process URLs, Maps and Strings. String processing is limited to trying
to create a URL from the string and then processing it with the ServiceExtension
AbstractUDIGConnectionFactory.doOtherChecks(Object) will be called if the context is not a URL or a Map or if the String cannot be processed as a URL.
Parameters: context - The object to be "processed" or "adapted" into connectioninformation. True if the info can be returned based on the conext, otherwisefalse.
Returns the parameters using the Service extension if the context is a URL or String (provided that Service extension
claims to be able to process them). If the context is a map it will be returned (again only if Service Extension claims to be
able to consume it). Otherwise
AbstractUDIGConnectionFactory.doCreateConnectionParameters(Object) will be called.
Returns the URL if the context is a URL or can be made a URL from a String(provided that Service extension
claims to be able to process them). If the context anything else then
AbstractUDIGConnectionFactory.doCreateConnectionURL(Object) will be called.
If contexts other than URLs, Maps, and Strings (or if Strings need to be otherwise processed) then subclass must
perform those checks here.
Parameters: context - The object to be "processed" or "adapted" into connectioninformation. True if the info can be returned based on the conext, otherwisefalse.