| /******************************************************************************* |
| * Copyright (c) 2013 Christian Pontesegger and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christian Pontesegger - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.ease.urlhandler; |
| |
| import java.io.IOException; |
| import java.net.URL; |
| import java.net.URLConnection; |
| |
| import org.osgi.service.url.AbstractURLStreamHandlerService; |
| |
| public class WorkspaceURLStreamHandlerService extends AbstractURLStreamHandlerService { |
| |
| public WorkspaceURLStreamHandlerService() { |
| } |
| |
| @Override |
| public URLConnection openConnection(final URL u) throws IOException { |
| return new WorkspaceURLConnection(u); |
| } |
| } |