Class Handler

java.lang.Object
java.net.URLStreamHandler
io.bestquality.protocol.mock.Handler

public class Handler
extends java.net.URLStreamHandler
This class handles all URLs using the "mock:" scheme
  • Constructor Summary

    Constructors 
    Constructor Description
    Handler()  
  • Method Summary

    Modifier and Type Method Description
    java.net.URLConnection openConnection​(java.net.URL url)  
    protected java.net.URLConnection openConnection​(java.net.URL url, java.net.Proxy p)  

    Methods inherited from class java.net.URLStreamHandler

    equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm

    Methods inherited from class java.lang.Object

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

  • Method Details

    • openConnection

      public java.net.URLConnection openConnection​(java.net.URL url) throws java.io.IOException
      Specified by:
      openConnection in class java.net.URLStreamHandler
      Throws:
      java.io.IOException
    • openConnection

      protected java.net.URLConnection openConnection​(java.net.URL url, java.net.Proxy p) throws java.io.IOException
      Overrides:
      openConnection in class java.net.URLStreamHandler
      Throws:
      java.io.IOException