abstract class AbstractURIParser extends AnyRef
Common parser assisting methods for PG and MySQL URI parsers.
- Alphabetic
- By Inheritance
- AbstractURIParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AbstractURIParser()
Abstract Value Members
- abstract val DEFAULT: Configuration
The default for this particular URLParser, ie: appropriate and specific to PG or MySQL accordingly
- abstract val SCHEME: Regex
A Regex that will match the base name of the driver scheme, minus jdbc:.
A Regex that will match the base name of the driver scheme, minus jdbc:. Eg: postgres(?:ul)?
- Attributes
- protected
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assembleConfiguration(properties: Map[String, String], charset: Charset): Configuration
Assembles a configuration out of the provided property map.
Assembles a configuration out of the provided property map. This is the generic form, subclasses may override to handle additional properties.
- properties
the extracted properties from the URL.
- charset
the charset passed in to parse or parseOrDie.
- Attributes
- protected
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def handleJDBC(uri: URI): Map[String, String]
This method breaks out handling of the jdbc: prefixed uri's, allowing them to be handled differently without reimplementing all of parse.
This method breaks out handling of the jdbc: prefixed uri's, allowing them to be handled differently without reimplementing all of parse.
- Attributes
- protected
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val logger: Logger
- Attributes
- protected
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parse(uri: URI): Map[String, String]
- Attributes
- protected
- def parse(url: String, charset: Charset = DEFAULT.charset): Configuration
Parses the provided url and returns a Configuration based upon it.
Parses the provided url and returns a Configuration based upon it. On an error, a default configuration is returned.
- url
the URL to parse.
- charset
the charset to use.
- returns
a Configuration.
- def parseOrDie(url: String, charset: Charset = DEFAULT.charset): Configuration
Parses the provided url and returns a Configuration based upon it.
Parses the provided url and returns a Configuration based upon it. On an error,
- url
the URL to parse.
- charset
the charset to use.
- returns
a Configuration.
- Annotations
- @throws("if the URL does not match the expected type, or cannot be parsed for any reason")
- final def parseUserInfo(userInfo: Option[String]): (Option[String], Option[String])
Parses out userInfo into a tuple of optional username and password
Parses out userInfo into a tuple of optional username and password
- userInfo
the optional user info string
- returns
a tuple of optional username and password
- Attributes
- protected
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def unwrapIpv6address(server: String): String
- Attributes
- protected
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()