Class AttributeLinkURL


  • public class AttributeLinkURL
    extends java.lang.Object
    Simple class that parses provided url. Contains methods that return base url (without query string) and request parameters from url.
    Author:
    Jakub Kulaviak
    • Constructor Summary

      Constructors 
      Constructor Description
      AttributeLinkURL​(java.lang.String urlString)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBaseURL()  
      java.util.Map<java.lang.String,​java.lang.String> getParameters()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AttributeLinkURL

        public AttributeLinkURL​(java.lang.String urlString)
                         throws java.net.MalformedURLException
        Constructor.
        Parameters:
        urlString - parsed url
        Throws:
        java.net.MalformedURLException - if url is invalid
    • Method Detail

      • getBaseURL

        public java.lang.String getBaseURL()
        Returns:
        original URL without query string and without '?'
      • getParameters

        public java.util.Map<java.lang.String,​java.lang.String> getParameters()
        Returns:
        parameters of original URL