package com.juick.components.url; import java.net.URLStreamHandler; import java.net.URLStreamHandlerFactory; /** * Created by vitalyster on 11.11.2016. */ public class JuickURLStreamHandlerFactory implements URLStreamHandlerFactory { @Override public URLStreamHandler createURLStreamHandler(String protocol) { if ("juick".equals(protocol)) { return new JuickURLStreamHandler(); } return null; } }