1 /*
2  * Copyright (C) 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.adservices.service.measurement.registration;
18 
19 import android.net.Uri;
20 
21 public class AsyncRedirect {
22     public enum RedirectBehavior {
23         /** Do not modify redirect path */
24         AS_IS,
25         /** Prepend well known path prefix to path of redirect url for Location type redirects */
26         LOCATION_TO_WELL_KNOWN,
27     }
28 
29     private final Uri mUri;
30     private final RedirectBehavior mRedirectBehavior;
31 
AsyncRedirect(Uri uri, RedirectBehavior redirectBehavior)32     public AsyncRedirect(Uri uri, RedirectBehavior redirectBehavior) {
33         mUri = uri;
34         mRedirectBehavior = redirectBehavior;
35     }
36 
getUri()37     public Uri getUri() {
38         return mUri;
39     }
40 
getRedirectBehavior()41     public RedirectBehavior getRedirectBehavior() {
42         return mRedirectBehavior;
43     }
44 
45 
46 
47 
48 }
49