14846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com/*
24846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com * Copyright (C) 2010 Google Inc.
34846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com *
44846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com * Licensed under the Apache License, Version 2.0 (the "License");
54846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com * you may not use this file except in compliance with the License.
64846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com * You may obtain a copy of the License at
74846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com *
84846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com * http://www.apache.org/licenses/LICENSE-2.0
94846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com *
104846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com * Unless required by applicable law or agreed to in writing, software
114846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com * distributed under the License is distributed on an "AS IS" BASIS,
124846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
134846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com * See the License for the specific language governing permissions and
144846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com * limitations under the License.
154846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com */
164846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com
174846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.compackage com.android.i18n.addressinput;
184846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com
194846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com/**
204846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com *  Used by AddressWidget to handle caching in client-specific ways.
214846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com */
224846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.compublic interface ClientCacheManager {
2343406579f28a0377414cfe7befba76bdd2bd069bshaopengjia@google.com    /** Get the data that is cached for the given key. */
244846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com    public String get(String key);
2543406579f28a0377414cfe7befba76bdd2bd069bshaopengjia@google.com    /** Put the data for the given key into the cache. */
264846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com    public void put(String key, String data);
2743406579f28a0377414cfe7befba76bdd2bd069bshaopengjia@google.com    /** Get the Url of the server that serves address metadata. */
28af414e4304e0b008fb52d2f25d4b476c758ad1f9shaopengjia@google.com    public String getAddressServerUrl();
294846244b97f572c866738a8eef50e530cd73257ashaopengjia@google.com}
30