Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32e520ed authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Really remove NetworkBoundURLFactory.

The code using it was removed, but the file itself was not.

Bug: 17112978
Change-Id: I35bc254fd3a5e7b19297b959c7310e7054ab77e1
parent de18420a
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -17227,10 +17227,6 @@ package android.net {
    field public static final android.os.Parcelable.Creator CREATOR;
    field public static final android.os.Parcelable.Creator CREATOR;
  }
  }
  public abstract interface NetworkBoundURLFactory {
    method public abstract java.net.URL getBoundURL(android.net.Network, java.net.URL) throws java.net.MalformedURLException;
  }
  public final class NetworkCapabilities implements android.os.Parcelable {
  public final class NetworkCapabilities implements android.os.Parcelable {
    ctor public NetworkCapabilities(android.net.NetworkCapabilities);
    ctor public NetworkCapabilities(android.net.NetworkCapabilities);
    method public int describeContents();
    method public int describeContents();
+0 −35
Original line number Original line Diff line number Diff line
/*
 * Copyright (C) 2014 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.net;

import java.net.MalformedURLException;
import java.net.URL;

/**
 * An interface that describes a factory for network-specific {@link URL} objects.
 */
public interface NetworkBoundURLFactory {
    /**
     * Returns a {@link URL} based on the given URL but bound to the specified {@code Network},
     * such that opening the URL will send all network traffic on the specified Network.
     *
     * @return a {@link URL} bound to this {@code Network}.
     * @throws MalformedURLException if the URL was not valid, or this factory cannot handle the
     *         specified URL (e.g., if it does not support the protocol of the URL).
     */
    public URL getBoundURL(Network network, URL url) throws MalformedURLException;
}