Package ipsk.net

Class EditableURL


  • public class EditableURL
    extends java.lang.Object
    An URL container whose contents can be modified.
    Author:
    K.Jaensch, klausj@phonetik.uni-muenchen.de
    • Constructor Summary

      Constructors 
      Constructor Description
      EditableURL​(java.net.URL url)
      Creates new editable URL object.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addQuerys​(java.util.Hashtable<java.lang.String,java.lang.String> queries)
      Adds some queries (key/value String pairs) to the URL.
      java.net.URL getUrl()
      Get the URL.
      static void main​(java.lang.String[] args)
      Test method.
      void setUrl​(java.net.URL url)
      Set the URL.
      • Methods inherited from class java.lang.Object

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

      • EditableURL

        public EditableURL​(java.net.URL url)
        Creates new editable URL object.
        Parameters:
        url - the url to modify
    • Method Detail

      • addQuerys

        public void addQuerys​(java.util.Hashtable<java.lang.String,java.lang.String> queries)
                       throws java.io.UnsupportedEncodingException
        Adds some queries (key/value String pairs) to the URL.
        Parameters:
        queries - query pairs
        Throws:
        java.io.UnsupportedEncodingException - if the queries cannot be URL encoded
      • getUrl

        public java.net.URL getUrl()
        Get the URL.
        Returns:
        url URL
      • setUrl

        public void setUrl​(java.net.URL url)
        Set the URL.
        Parameters:
        url - the URL to set
      • main

        public static void main​(java.lang.String[] args)
        Test method.
        Parameters:
        args -