diff options
Diffstat (limited to 'org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/http/AbstractWebLocation.java')
-rw-r--r-- | org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/http/AbstractWebLocation.java | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/http/AbstractWebLocation.java b/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/http/AbstractWebLocation.java new file mode 100644 index 00000000..bb6f745b --- /dev/null +++ b/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/http/AbstractWebLocation.java @@ -0,0 +1,67 @@ +/******************************************************************************* + * Copyright (c) 2004, 2008 Tasktop Technologies 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: + * Tasktop Technologies - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.commons.http; + +import java.net.Proxy; + +import javax.net.ssl.X509TrustManager; + +import org.eclipse.core.runtime.IProgressMonitor; + +/** + * @since 3.6 + * @author Steffen Pingel + */ +public abstract class AbstractWebLocation { + + private final String url; + + /** + * @since 3.6 + */ + public AbstractWebLocation(String url) { + this.url = url; + } + + /** + * @since 3.6 + */ + public abstract AuthenticationCredentials getCredentials(AuthenticationType type); + + /** + * @since 3.6 + */ + public abstract Proxy getProxyForHost(String host, String proxyType); + + /** + * @since 3.6 + */ + public X509TrustManager getTrustManager() { + return null; + } + + /** + * @since 3.6 + */ + public String getUrl() { + return url; + } + + /** + * @since 3.6 + */ + public void requestCredentials(AuthenticationType type, String message, IProgressMonitor monitor) + throws UnsupportedRequestException { + throw new UnsupportedRequestException(); + } + +}
\ No newline at end of file |