Package io.bestquality.protocol.mock
Class Handler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- io.bestquality.protocol.mock.Handler
-
public class Handler extends URLStreamHandler
This class handles all URLs using the "mock:" scheme
-
-
Constructor Summary
Constructors Constructor Description Handler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLConnectionopenConnection(URL url)protected URLConnectionopenConnection(URL url, Proxy p)-
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm
-
-
-
-
Method Detail
-
openConnection
public URLConnection openConnection(URL url) throws IOException
- Specified by:
openConnectionin classURLStreamHandler- Throws:
IOException
-
openConnection
protected URLConnection openConnection(URL url, Proxy p) throws IOException
- Overrides:
openConnectionin classURLStreamHandler- Throws:
IOException
-
-